Jupyter

<Python, iPython, Jupyter> Historyをファイルに保存する。

iPythonで、ちょろちょろ実行した結果のhistoryをファイルに保存saveする。 In [170]: %history -f aaa.py File 'aaa.py' exists. Overwrite? y Overwriting file. 29個目の回答がそれだった。 さんきゅー。 stackoverflow.com

<iPython, python> ipywidgets を試してみた。

iPython上でインタラクティブinteractiveな動作ができるipywidgetsを試してみた。 これで、スライダーsliderとかできる。 まずは、インストール。 conda install ipywidgets で、jupyter notebook立ち上げて、 次のコード書き込み。 %matplotlib inline impo…

<Jupyter, iPython> 00-first.ipy

Jupyterになった後、iPythonで設定していた、設定ファイルはどうなるか? いろいろやった結果わかったこと。 1 Jupyterで起動後も、iPythonの設定は、かわらず、~/.ipython の下にあるものを参照しに行く。 2 ただ、00-first.pyは、拡張子をipyにしないとい…

<Python, Jupyter, Vim> JupyterでVim。

JupyterでVimのキーバインドを使う。 lambdalisue.hatenablog.com これはすごい。 ちょー便利。 すごいなー。 個人的には、Jupyter modeでCtrl+kとkが逆だとうれしいな。。。 でも、まったく便利。

<Python, iPython, Jupyter> qtconsole

なんだかよくわからないが、ipython qtconsoleが立ち上がらない。 ImportError: No module named 'qtconsole' とエラーを吐く。 pandas-highchartsをアンインストールしてから、アップデートしたからか、、な? pip install qtconsole としたら、 ipython qt…

<Python, iPython> ipython notebookで起動ブラウザを指定

ipython notebookで起動ブラウザを指定する方法。 ipython_config.pyに下記を書き込む。(firefoxの場合) c.NotebookApp.browser = u'/usr/bin/firefox %s' ipyhton_config.pyはprofileがdefaultならば下記にあるはず。 /home/hage/.ipython/profile_default…