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: https://cdn.mathjax.org/mathjax/latest/MathJax.js
[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.


Link:
http://ipython.org/notebook.html



Friday, April 10, 2015

How to install Anaconda (Python)

What is Anaconda?

Anaconda is a completely free Python distribution (including for commercial use and redistribution). It includes over 195 of the most popular Python packages for science, math, engineering, data analysis.

How to install Anaconda (Python) step by step

1) Download Anaconda-2.2.0-MacOSX-x86_64.pkg from http://continuum.io/downloads

2) Double click on the file Anaconda-2.2.0-MacOSX-x86_64.pkg and then next, next and next.

3) On your terminal type spyder and that's it.



Thursday, April 09, 2015

So live a life you will remember

"When I was 16, my father said, 'You can do anything you want with your life. You just have to be willing to work hard to get it.' That's when I decided, when I die, I want to be remembered for the life I lived—not the money I made." (Song The Nights - Avicci)


Tuesday, March 31, 2015