This is an nbpresent presentation!

In [5]:
from IPython.display import *

Font Awesome icons are a great way to get quick visual content onto your slides, and support many modifiers, which can be combined with Bootstrap 3 effects to create really nice effects with just a bit of markup. The minimum requires a span-level tag, historically <i> with a class of at least fa fa-<some icon>.

<i class="fa fa-gift"> </i>

Note the space inside the <i>: omitting this will cause strange rendering issues when exporting to HTML, as mistune (used by nbconvert is configured to be stricter than marked, used by the Notebook.

The best way to be sure about an image is to use a kernel-level output mechanism to embed the image directly in the page.

In [6]:


SVGs are malleable with simple code. To removing padding and complement a dark theme, do a few short replacements.

In [7]:
import requests
    .replace("""translate(248.000000, 26.000000)""", "")
    .replace("#767474", "#ffffff")
    .replace("#313940", "#ffffff")))

Artboard Created with Sketch.


  • The Talk is important
    • The Work is more important
  • PowerPoint is bad
  • The Notebook is great
  • RISE is good
    • reveal.js not so good in the Notebook

IFrames are a quick-and-dirty way to get external content into your page: you just need to knwo the URL: no complex JS!

In [8]:
       width="1380", height="900")


In [9]:
       width="1380", height="900")


In [10]:
    width="1380", height="900")


In [11]:
IFrame("", width="1380", height="900")



  • Reuse your delightful data narratives from the Jupyter Notebook as slide-based presentations
  • Use rich visual tools to build the metadata for your layout
  • Choose a base theme for your presentation, or a theme per slide
  • Export your presentations as archival HTML and PDF



In [12]:
IFrame("", 400, 700)


Sometimes, you just need some HTML... but if someone has already done the legwork, it's worth it!

In [13]:
<div class="github-card" data-github="anaconda-platform/nbpresent" data-width="300" data-theme="medium"></div>
<script src="//"></script>

Some issues with embedding

Lessons Learned/Future Work

  • d3, it's been great
  • Baobab is really good
  • Testing this kind of stuff is hard
  • Still need
    • reveal.js Subslides/Hyperslides
    • Need better reuse than IFRAMES
    • (color, scroll, slide, etc.)-as-data
  • Fonts: embedded, in QtWebKit, etc.