"LIVE" HTML presentation with IPython 3.0.0-dev, IPython Notebook

Author's environment: Ubuntu 14.04, Python 2.7.6

The progress of IPython development was announced at SciPy2014, and what was particularly interesting was the addition of Notebook features.

Even with the existing IPython Notebook, after converting it to HTML format, Reveal.js (: git I was able to display the slideshow with the help of .js /)), but what is currently being developed is "Alive", that is, not static HTML, as you can see from the video. , It is possible to advance the slide while executing Cell on the spot (however, it currently exists as an extension function). In addition, IPython Notebook features tab key method completion (close to jedi), autocomplete, and more.

So, I will summarize the procedure to insert the dev version.

Install IPython 3.0.0-dev locally

Normally, it would be wise to use verticalenv when doing this, but IPython itself hasn't been used much until now, but I was only interested in slideshows. However, I wasn't attracted to knowing that Cell couldn't be executed. After watching the video at the beginning, I decided to touch it. So, I didn't think it was annoying, so I installed it locally and used it.

Installation method

Here is the reference

I have already installed IPython, so clone the development version from GitHub and try it with setup.py.

# First install git, if you don't already have it
sudo apt-get install git
# Then, clone the IPython repo, if you haven't already.
git clone git://github.com/ipython/ipython.git
cd ipython
# Now just install IPython with apt, then uninstall it.  The dependencies will remain
sudo apt-get install ipython-notebook ipython-qtconsole
sudo apt-get remove ipython-notebook ipython-qtconsole ipython
# Now install the IPython git version in such a way that will keep up to date when you pull
sudo python setup.py develop

It's okay because the comments retain their dependencies! It says, but it didn't work for some reason (I was told that the version is old! Or the server started but the page could not be displayed). In the former case, rely on error messages and official information

sudo pip install --upgrade jinja
sudo pip install --upgrade json

It was solved by upgrading with. The latter certainly said that jinja2 had to be newly installed. ([python --How to install the latest IPython notebook in Ubuntu 12.04? --Ask Ubuntu:](http://askubuntu.com/questions/390457/how-to-install-the-latest-ipython-notebook-in-ubuntu -12-04)))

To be honest, I'm not sure what works, but

python setupegg.py develop
pip install -e ".[notebook]" --user
git submodule update
python setup.py submodule

I think it's worth trying something.

As you can see by reading this far, it has been done quite ad hoc and may not be reliable as an article. Please take a good look at the official information and ask at your own risk.

No, I want the latest stable version of IPython ...

In Ubuntu, the version of IPython is lower than the latest version if you put it with apt etc. (In Ubuntu 14.04, the stable version of IPython 1.2.1-2 “ipython” package: Ubuntu:) To make this the latest stable version, use pip

sudo pip install --upgrade ipython

If so, you can upgrade to the latest version of IPython 2.2.

Installation of extension live_reveal

Once the development version is installed, https://github.com/damianavila/live_reveal If you clone from and install with setup.py, you will probably be able to use the extension. I installed the development version this time because I wanted to use this function. The content has such an impact. I think you should read the README for how to use it (round throw).

I actually used it

When I actually used it, I was impressed by the usability of the Intaractive Widget, and noticed improvements in ease of input such as auto-complete, and I thought that this could be used for everyday prototype creation. There are also many keyboard shortcuts, and I think it feels like vim.

Selection_007.png

I made a slide and tried to execute Cell on the spot

I made a demo of the slides, so I released it as a video, although it looks like a dreg. Please take a look. You can see how it is written with nbviewer.

Summary

I haven't mastered the functions at all yet, but I think that you can learn more about how to use IPython by tweaking the settings. Also, regarding HTML slides, super cool themes are all over the place, so if you use this as well, you will be able to create slides in a fun way. You can write in markdown, and you don't have to think about pasting figures one by one! And you can change the parameters on the spot and display them! It's wonderful, isn't it? If you don't like PowerPoint and write the slides in LaTeX like me, you can understand this feeling.

Let's make IPython and IPython Notebook popular. (I hope the time will come when IPython Notebook will be used in academic societies ...)

Recommended Posts

"LIVE" HTML presentation with IPython 3.0.0-dev, IPython Notebook
Parallel computing with iPython notebook
Play with Jupyter Notebook (IPython Notebook)
Run Apache-Spark with IPython Notebook
Graph drawing with IPython Notebook
Use Bokeh with IPython Notebook
R & D life with iPython notebook
Build IPython Notebook environment with boot2docker
Use apache Spark with jupyter notebook (IPython notebook)
Rich cell output with Jupyter Notebook (IPython)
How to debug with Jupyter or iPython Notebook
When Html cannot be output with Jupyter Notebook
ipython notebook installation
Graph drawing with jupyter (ipython notebook) + matplotlib + vagrant
IPython Notebook Recommendations
Create a table of contents with IPython notebook
Data analysis environment construction with Python (IPython notebook + Pandas)
Pepper-kun remote control environment construction with Docker + IPython Notebook
Start IPython with virtualenv
Make slides with iPython
Remotely connect IPython notebook
[Machine learning] Start Spark with iPython Notebook and try MLlib
I want to use R functions easily with ipython notebook