Difference between revisions of "IPython"

From stgo
Jump to: navigation, search
(ToDo)
Line 1: Line 1:
new [4.Feb.2016]: iPython is now jupyter: http://ipython.org/
+
== Installing and using iPython ==
 +
=== new ===
 +
[4.Feb.2016]: iPython is now jupyter: http://ipython.org/
 
* to install jupyter (on MacOSX): see documentation : here http://jupyter.readthedocs.org/en/latest/install.html
 
* to install jupyter (on MacOSX): see documentation : here http://jupyter.readthedocs.org/en/latest/install.html
 
** install anaconda from http://www.continuum.io/downloads#_macosx
 
** install anaconda from http://www.continuum.io/downloads#_macosx
Line 8: Line 10:
 
* note, there are also additional jupyter kernels for other languages such as IDL, PhP, Javascript, Scilab, http://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages  
 
* note, there are also additional jupyter kernels for other languages such as IDL, PhP, Javascript, Scilab, http://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages  
  
old:
+
Btw. after starting I got an ''UTF-8 error'' when calling pandas.
 +
The key was here to enter in the console the following lines:  
 +
export LC_ALL=en_US.UTF-8
 +
export LANG=en_US.UTF-8
 +
 
 +
=== old ===
 
* for installing iPython see here: http://ipython.org/ipython-doc/2/install/install.html
 
* for installing iPython see here: http://ipython.org/ipython-doc/2/install/install.html
 
* start iPython notebook, run in a normal terminal  
 
* start iPython notebook, run in a normal terminal  

Revision as of 18:05, 11 March 2016

Installing and using iPython

new

[4.Feb.2016]: iPython is now jupyter: http://ipython.org/

Btw. after starting I got an UTF-8 error when calling pandas. The key was here to enter in the console the following lines:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

old

  • for installing iPython see here: http://ipython.org/ipython-doc/2/install/install.html
  • start iPython notebook, run in a normal terminal
    ipython notebook --pylab inline
  • for the command line version on Ubuntu go to the menu and start development>ipython
  • run the code with <shift+enter>
  • updating pandas (I had 0.7 installed but needed 0.9 for doing some str ops) simply type sudo pip install --upgrade pandas

ToDo