Skip to content

Instantly share code, notes, and snippets.

@za
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save za/a6d61a1f182fec1f0ccd to your computer and use it in GitHub Desktop.
Save za/a6d61a1f182fec1f0ccd to your computer and use it in GitHub Desktop.
Setting Up Python3 Pandas and IPython3 on Ubuntu

Search for python3 pandas package

$ apt-cache search pandas

python-pandas - data structures for "relational" or "labeled" data
python-pandas-lib - low-level implementations and bindings for pandas
python3-pandas - data structures for "relational" or "labeled" data - Python 3
python3-pandas-lib - low-level implementations and bindings for pandas - Python3

Install python3 pandas package

# apt-get install python3-pandas python3-pandas-lib

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  fonts-lyx libhdf5-7 liblz4-1 libsnappy1 python-matplotlib-data
  python-tables-data python3-bs4 python3-dateutil python3-decorator
  python3-html5lib python3-imaging python3-matplotlib python3-nose
  python3-numexpr python3-numpy python3-pil python3-scipy python3-tables
  python3-tables-lib python3-tk python3-tornado python3-tz
Suggested packages:
  python3-genshi dvipng inkscape ipython3 python-matplotlib-doc python3-pyqt4
  python3-sip texlive-latex-extra ttf-staypuft python-nose-doc
  python-numpy-doc python3-numpy-dbg python-pandas-doc python-pil-doc
  python3-pil-dbg python-tables-doc python-netcdf vitables tix python3-tk-dbg
The following NEW packages will be installed:
  fonts-lyx libhdf5-7 liblz4-1 libsnappy1 python-matplotlib-data
  python-tables-data python3-bs4 python3-dateutil python3-decorator
  python3-html5lib python3-imaging python3-matplotlib python3-nose
  python3-numexpr python3-numpy python3-pandas python3-pandas-lib python3-pil
  python3-scipy python3-tables python3-tables-lib python3-tk python3-tornado
  python3-tz
0 upgraded, 24 newly installed, 0 to remove and 3 not upgraded.
Need to get 18.1 MB of archives.
After this operation, 75.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

Search for IPython3 packages

root@kwazii:~# apt-cache search ipython

ipython - enhanced interactive Python shell
ipython-doc - enhanced interactive Python shell - Documentation
ipython-notebook - interactive Python html notebook
ipython-notebook-common - interactive Python html notebook data package
ipython-qtconsole - enhanced interactive Python shell - Qt console
ipython3 - enhanced interactive Python 3 shell
ipython3-notebook - interactive Python 3 html notebook
ipython3-qtconsole - enhanced interactive Python 3 shell - Qt console
mpich2python - MPI-enhanced Python interpreter (MPICH2 based version)
openmpipython - MPI-enhanced Python interpreter (OpenMPI based version)
polybori - polynomials over Boolean Rings, custom ipython shell
pry - powerfull irb alternative and runtime developer console
python-ipdb - IPython-based pdb replacement
python-mvpa2-doc - documentation and examples for PyMVPA v. 2
python3-ipdb - IPython-based pdb replacement (Python 3 version)
snimpy - interactive SNMP tool with Python

Install IPython3 notebook

# apt-get install ipython3 ipython3-notebook

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  python3-jinja2 python3-simplegeneric python3-zmq
Suggested packages:
  ipython3-qtconsole python-jinja2-doc
The following NEW packages will be installed:
  ipython3 ipython3-notebook python3-jinja2 python3-simplegeneric python3-zmq
0 upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
Need to get 977 kB of archives.
After this operation, 5,574 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

Start IPython3 notebook

$ ipython3 notebook

Create new 'Notebook'. Try to import pandas library.

import pandas as pd

Start IPython3 notebook with plotting graphs support.

$ ipython3 notebook --pylab inline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment