Blog

Blog

pyDrive利用時のOAuth 2.0 クライアント ID設定

環境

Windows 10 Home

Python 3.6.10 :: Anaconda, Inc.

conda 4.8.3

PyDrive 1.3.1

JupyterLab 1.2.6

 

PyDriveのドキュメント( https://pythonhosted.org/PyDrive/index.html )のとおりPyDriveをインストール。Quickstartに従ってGoogle Drive APIの設定、OAuth 2.0 クライアント IDの取得を行い、JupyterLabからPyDriveを使ってみるとhttp://localhost:8080へのredirectionのエラーが出てうまくいかない。

OAuth 2.0 クライアント IDの種類を「ウェブ アプリケーション」から「デスクトップ」に変えたらうまくいった。原因不明。

 

 

0

To show the same blog in English researchmap site

After login to the researchmap site and change to the setting mode;

  1. Click the "edit" icon on the right side of "Manu."
  2. Click the "Add new page" and add the blog name. 
  3. In the added page, click the "Add plugin to center" and select "Blog."
  4. In the setting page of the added blog, check the prefer content(s) of your blog and also check both languages "Japanese" and "English" for display.
  5. Close the setting mode and enjoy your blogging.

In default, there is only one menu "My portal" in the English version of researchmap. And bit difficult to introduce the blog site to the English version.

 

0

Running Icy with OpenJDK instead Oracle JDK

On Windows 10.

  1. Install OpenJDK, for example, Java Platform, Standard Edition 8 Reference Implementations (this didn't work well. Icy could not find the java environment) or AdoptOpenJDK. (I used the version of "OpenJDK 8" and "HotSpot")
  2. Download Icy and extract the downloaded file.
  3. Create a batch file icy.bat with the following content: "JAVA install folder"\bin\java -jar "Icy install folder"\icy.jar This can't load the vtk libraries. The 3D viewer won't work successfully although the Icy itself will run. 
  4. Run icy.bat Just double click "icy.exe" and enjoy the image analysis with Icy.

 

0