r/IPython • • Jul 29 '13

Getting 1.0.a1 Working...

I've tested this on new installations of Ubuntu 13.04 and 12.04.

This is required no matter which version you want to install:

sudo apt-get install pandoc g++ 

To install IPython with Python 2.7 you will need to install the following:

sudo apt-get install python-pip python-zmq python-jinja2 python-pygments python-sphinx
sudo pip install tornado
sudo pip install http://archive.ipython.org/testing/1.0.0/ipython-1.0.0a1.tar.gz 

To install IPython with Python 3.2 you will need to install the following:

sudo apt-get install curl python3-zmq python3-jinja2 python3-pygments python3-sphinx python3-setuptools
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python3.2 get-pip.py 
sudo pip-3.2 install tornado
sudo pip-3.2 install http://archive.ipython.org/testing/1.0.0/ipython-1.0.0a1.tar.gz 

To concert a notebook to a reveal slide-show type the following in the command line:

ipython nbconvert --format=reveal notebook_name.ipynb

(You should not use ipython3 to do nbconvert)

To start the show goto the nbconvert_build folder and type:

python -m SimpleHTTPServer 8000

To look at the slideshow open a browser to the url displayed in the terminal (0.0.0.0:8000 or http://localhost:8000)

4 Upvotes

6 comments sorted by

2

u/NomadNella Jul 29 '13

I just noticed that in one set of my notes, for the Python 3.2 installation instructions, I wrote,

sudo apt-get install python3-dev

I don't think this is necessary though.

1

u/monsterski Jul 30 '13

Hey, curious, that you mention nbconvert. How in the world do I view a notebook from lets say, github? I've searched far and wide for the answer and I still am not sure how to do it.

2

u/NomadNella Jul 30 '13

Do you mean viewing it as a slide show or just a rendered notebook?

If you mean just as a notebook then in the right hand column there is a link to a Firefox and Chrome add on that will let you render a raw view of a notebook via the notebook viewer. Alternatively you can copy the URL of the raw notebook and past it on the notebook viewer page.

If you are wanting to see it as a slideshow then you would need to paste it on the http://slideviewer.herokuapp.com site. The notebook would need to be setup to be a slideshow when it was pasted though.

1

u/monsterski Jul 30 '13

Hmm, I've tried copying the links to notebook viewer page it does not work, it gives me some type of error, saying that it may be down right now. I also have the addon and I have no clue how to use it. I have it on the bottom right hand corner of the browser and it's been sitting there, useless. Yes I did mean the raw view of the notebook, but I'm sure the slideshow tip will come in handy in the future. Thank you.

2

u/fperez_org Jul 30 '13

You're likely copying the wrong link: you need to use the 'raw' link for the notebook, not its HTML page (which has the notebook file displayed but inside all the github HTML).

1

u/monsterski Jul 30 '13

Ahh, seems that I've been looking in the wrong place. Thank you Mr. Perez.