-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<English>
Colaboratory is a Jupyter notebook environment that requires no setup to use.
All you need is a Google account and a browser (Google chrome is recommended, but Firefox is also OK).
Here is a quick guide for using colaboratory.
0. Prepare a Google account and a browser.
(Previously, users have to request an invitation from Google, but now we can use without invitation.)
1. Visit the following site (Social Network Analysis with Python and NetworkX) and download .ipynb files from the Github shown at the bottom of the site.
https://pydata.org/barcelona2017/schedule/presentation/7/
2. Save the files in your Google Drive.
3. Visit the site of Colaboratory, and open the files.
file -> open Notebook in Google Drive -> select the .ipynb file
https://colab.research.google.com/
4. There are some instructions for creating graphs and analyzing them using networkX.
In order to run the codes in the file, just click the parenthesis ("[ ]").
You can modify the codes directly in the browser, and run the modified codes to see the differences.
Available python libraries in colaboratory cam be checked with "!pip freeze".
You can install other libraries with pip or apt.
NetworkX is already installed. Igraph can be installed easily with "!pip install igraph". Graph-tool cannot be installed.
The following tutorial notebooks are available so you can learn with them.
"Overview of Collaboratory Features"
"Hello, Colaboratory"
"Markdown Guide"
"Charts in Colaboratory"
"External data: Drive, Sheets, and Cloud Storage"
"Getting started with BigQuery"
"Forms"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<Japanese>
colaboratoryは環境設定なしでJupyter notebookを使うことができる環境です。
必要なものはGoogleアカウントとブラウザだけです(Google chromeが推奨されていますが、FirefoxでもOKです)。
colaboratoryを使うための短いガイドです。
0. Googleアカウントとブラウザを用意する。
(以前はGoogleに招待してもらう必要がありましたが、今は招待は不要のようです)
1. 以下のサイト(Social Network Analysis with Python and NetworkX)の末尾にあるGithubから .ipynbファイルをダウンロードする。
https://pydata.org/barcelona2017/schedule/presentation/7/
2. そのファイルをGoogle Drive上に保存する。
3. Colaboratoryのサイトに行き、そのファイルを開く。
ファイル->ドライブのノートブックを開く-> .ipynbファイルを選択e
https://colab.research.google.com/
4. networkXを用いたグラフ生成や分析の説明があります。コードを実行するには、括弧 ("[ ]")をクリックするだけです。
ブラウザ上でコードを修正することができ、そのコードを再度実行して違いを確かめることができます。
colaboratoryで使えるpythonライブラリは"!pip freeze"で調べられます。
pipやaptを使えば他のライブラリもインストールできます。
networkXはインストール済みです。igraphも"!pip install igraph"で簡単にインストールできます。graph-toolはインストールできません。
以下のようなチュートリアルのnotebookがあるのでそれで学べます。
"Overview of Collaboratory Features"
"Hello, Colaboratory"
"Markdown Guide"
"Charts in Colaboratory"
"External data: Drive, Sheets, and Cloud Storage"
"Getting started with BigQuery"
"Forms"
参考リンク
データ分析や機械学習にバリバリ使える上にブラウザで使用できて環境構築不要のPython実行環境「Google Colaboratory」
https://gigazine.net/news/20180326-google-colab-notebook/
Google Colaboratory事始め
https://qiita.com/kouki_outstand/items/cd24dccbaa92274be39e
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------