Title here: a Notebook-based talk
With a great subtitle!
First, this presumes you've already read and executed once the accompanying install-support
notebook, which should install the necessary tools for you, and you restarted your notebook server. If everything went well, right now your toolbar should look like this, with a new button highlighted here in red:
That new button is the toggle to enter live slideshow mode, which you can use to switch between the normal editing mode (with the whole notebook as one long scrolling document) and the presentation mode.
All the CSS is kept in a file called style.css
, and it's loaded, along with a few handy utilities, by the talktools.py
script. Simply run it once to load everything, or if you make any tweaks to the CSS:
# I keep this as a cell in my title slide so I can rerun
# it easily if I make changes, but it's low enough it won't
# be visible in presentation mode.
%run talktools
website('nbviewer.ipython.org', 'Notebook Viewer - nbviewer')
Once you've loaded the above, the editing workflow (a bit primitive, admittedly) is:
From the "Cell Toolbar" menu, select "Slideshow". This will give you a little dropdown for each cell.
To start a new slide, mark a cell as "Slide".
If you want a chunk of a slide to be revealed incrementally, mark it as 'Fragment'.
See the source for the various slides in this file or the contents of the style.css
file for various useful CSS classes that you can use.
Note One thing this mode does NOT have is any notion of page size. What I do to estimate the size of my slides is to resize my browser window so the slideshow area is ~ 760px tall. Since most projectors work at 1024x768, this works well. I try to keep most of them confined to that vertical size, though if needed it's still OK to have taller ones, you just need to remember to scroll them down during presentation.
For presentations, you should toggle the "Cell toolbar" menu to "None", so that it doesn't appear in your slides. Then you can move back and forth with the GUI controls.
If you click on the "Enable Slide Mode" button, the right/left arrows will become also keys to move between slides. But note that at any point if you start typing into the notebook, that functionality will be inactivated, so you can use the arrows normally. You can turn it on again for further presentation by clicking the button again.
The next slides are a few example ones from a real talk of mine, so you can get a sense for how to lay things out in a presentation.
Hamming '62
website('nbviewer.ipython.org', 'Notebook Viewer - nbviewer')
YouTubeVideo('sjfsUzECqK0', start='40', width=600, height=400)
IPython.parallel
¶parallel.Client
.Client
creates as many views as desired by user:DirectView
: SPMD.LoadBalancedView
: automatic task distribution.put
and get
(and scatter
/gather
).