Google Ads

Saturday, April 11, 2015

Run notebook with ipython

1) Create a folder called notebook on your computer (Mac OS):

mkdir /Users/caiomsouza/ipyton/notebook

2) Run notebook on your terminal (Mac OS):

ipython notebook

Real log:

Caios-MacBook-Pro:notebook caiomsouza$ ipython notebook
[I 13:36:04.314 NotebookApp] Using existing profile dir: u'/Users/caiomsouza/.ipython/profile_default'
[I 13:36:04.317 NotebookApp] Writing notebook server cookie secret to /Users/caiomsouza/.ipython/profile_default/security/notebook_cookie_secret
[I 13:36:04.318 NotebookApp] Using MathJax from CDN:
[I 13:36:04.357 NotebookApp] Serving notebooks from local directory: /Users/caiomsouza/python/notebook
[I 13:36:04.357 NotebookApp] 0 active kernels
[I 13:36:04.357 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 13:36:04.357 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

As you can see in the image below you can now run your codes with notebook.


No comments: