How to use IPython notebook on Portable Python (Windows XP/7/8)
Have you tried IPython Notebook yet? There are lots of buzz around.. Those of you who do not know or need some update should check the talk by Brian Granger from 14:35.
Also, here is the official documentation: An HTML Notebook IPython
It looks really cool! Ok, let’s start installing.
Usually the best way to install python scientific packages in Windows is to use Python(x,y) but IPython Notebook requires newer IPython than what Python(x,y) currently packages (IPython 0.10.2.5). They are working on it to update. Meanwhile, we can test IPython Notebook using Portable Python.
Why Portable Python? A nice thing about Portable Python is that it will be completely separated from the system python or even older versions of Portable Python, because it will just create a new folder for it and its designed to be portable! IMO, in Windows, Portable Python is much better than virtualenv.
So, first of all, we need the Portable Python 2.7.3.2 or higher which installs PyQt4 along with other libraries (QtConsole and Notebook need PyQt4).
Installing new packages in Portable Python is easy: just use easy_install provided in Portable Python.
- go to app/scripts folder and locate “easy_install.exe” there.
- now open a command prompt (cmd) and cd to this folder.
- then, easy_install [package_name]
So, let’s install the latest release version of ipython by:
easy_install ipython
This grabbed ipython-0.13.1-py2.7 for me.
Now still from app/scripts, let's test ipython.exe
ipython.exe
This should work, but will complain about pyreadline and ctypes (this can be ignored, because we are using Python 2.7). So, let’s get pyreadline:
easy_install pyreadline
After you made sure that ipython is working, type in:
easy_install ipython[zmq,qtconsole,notebook,test]
This should grab all the dependencies for IPython Notebook.
Then still from app/scripts folder, run ipython with notebook option.
ipython notebook
Done!
Reading this pointed me to use "--no-browser" option. Now, I can use my favorite browser Firefox (any modern browsers that support web-socket, like latest chrome and Firefox, will do) and go to the server address (e.g. http://127.0.0.1:8892/). Your port number will be found on the console output after lunching the server.
ipython.exe notebook --no-browser
« matplotlibをつかってxkcd風のプロット | トップページ | IPython Notebook使ってみた。 »
「学問・資格」カテゴリの記事
- ウイルスを殺すのは簡単。人に無害でやるのが難しいの!! 二酸化塩素「こう?えい!」(2020.03.11)
- 老化はエピジェネティクスな影響が積り、スプライシングに影響を与えるのかも(2017.11.20)
- シネッセンス細胞がアツい。不老不死とハゲの治療が同時に可能か?(2017.11.18)
- 古めの論文でテキスト選択がおかしい時の対処法(2017.09.08)
- Juliaやってみよう。五日目。Pythonと速度比較。(2017.08.01)
「Python」カテゴリの記事
- Noteの記事をPythonでバックアップしといた。(2021.05.05)
- JupyterLabでも好きな外部エディターを使いたい!(2018.05.02)
- ローカルエリア内のJupyterLabサーバーにLAN経由で接続する。(2018.05.02)
- Juliaやってみよう。五日目。Pythonと速度比較。(2017.08.01)
- Juliaやってみよう。四日目。@timeでプロファイリング(2017.07.16)
「見栄」カテゴリの記事
- デイビッド・ビーズリーのユニットテストで魚が死んだ話。(2016.01.03)
- noteflightでブラウザ上でちょちょいと作曲してみる。(2015.11.30)
- ブルーサムライとサムライブルーの違い(2015.01.16)
- XPS 13 ridiculous noise from CPU cooling fan fixed(2015.01.04)
- エボラから生き延びた3歳児が看護婦さんにプロポーズ(2014.10.18)
「英語」カテゴリの記事
- brasserie(ブラッスリー)とbrassiere(ブラジャー)(2016.09.25)
- デイビッド・ビーズリーのユニットテストで魚が死んだ話。(2016.01.03)
- WindowsでLANネットワーク上にリモートGitレポを作成。(2015.10.17)
- 村上春樹はなぜノーベル賞候補なのか。(2015.10.09)
- Windows -> systemd -> MongoDB -> Sharepoint -> ActiveX(2015.07.30)
« matplotlibをつかってxkcd風のプロット | トップページ | IPython Notebook使ってみた。 »
コメント