-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
043dc15
commit ca2f378
Showing
82 changed files
with
1,567 additions
and
304 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
cache/posts/a-little-hack-to-get-a-pdf-from-your-ipython-slides.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
<div class="text_cell_render border-box-sizing rendered_html"> | ||
<p>A lot of users of the <code>slides</code> option in <code>IPython.nbconvert</code> asked me about how to get a pdf from the generated Reveal.js-based slideshow.</p> | ||
<p>To make the story short, here you have the detailed steps: <!-- TEASER_END --></p> | ||
<ul> | ||
<li>cd in the directory where your slideshow lives</li> | ||
<li>add this custom.css file: <a href="https://gist.github.com/damianavila/6211198">https://gist.github.com/damianavila/6211198</a></li> | ||
<li>run this little snippet: <a href="https://gist.github.com/damianavila/6211211">https://gist.github.com/damianavila/6211211</a></li> | ||
<li>run <code>python -m SimpleHTTPServer 8001</code></li> | ||
<li>open Mozilla Firefox browser and point to localhost:8001</li> | ||
<li>add ?print.pdf to the end of the url (ie, http://127.0.0.1:8001/your-ipynb.slides.html?print-pdf)</li> | ||
<li>print to pdf (use <em>Landscape</em> orientation)</li> | ||
</ul> | ||
<p>Do you want to get this little hack integrated to IPython? @fperez, the IPython BDFL does:</p> | ||
<blockquote class="twitter-tweet" data-conversation="none" data-cards="hidden" data-partner="tweetdeck"><p> | ||
<a href="https://twitter.com/damian_avila">@damian_avila</a> <a href="https://twitter.com/profjsb">@profjsb</a> ultimately we should fold that into master though... | ||
</p> | ||
— Fernando Perez (@fperez_org) <a href="https://twitter.com/fperez_org/statuses/373190058326519808">August 29, 2013</a> | ||
</blockquote> | ||
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | ||
|
||
<p>So, time to write some code and do a PR... in the meantime use this hack ;-)</p> | ||
<p>Damián.</p> | ||
</div> |
24 changes: 24 additions & 0 deletions
24
cache/posts/a-little-hack-to-get-a-pdf-from-your-ipython-slides.html.es
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
<div class="text_cell_render border-box-sizing rendered_html"> | ||
<p>A lot of users of the <code>slides</code> option in <code>IPython.nbconvert</code> asked me about how to get a pdf from the generated Reveal.js-based slideshow.</p> | ||
<p>To make the story short, here you have the detailed steps: <!-- TEASER_END --></p> | ||
<ul> | ||
<li>cd in the directory where your slideshow lives</li> | ||
<li>add this custom.css file: <a href="https://gist.github.com/damianavila/6211198">https://gist.github.com/damianavila/6211198</a></li> | ||
<li>run this little snippet: <a href="https://gist.github.com/damianavila/6211211">https://gist.github.com/damianavila/6211211</a></li> | ||
<li>run <code>python -m SimpleHTTPServer 8001</code></li> | ||
<li>open Mozilla Firefox browser and point to localhost:8001</li> | ||
<li>add ?print.pdf to the end of the url (ie, http://127.0.0.1:8001/your-ipynb.slides.html?print-pdf)</li> | ||
<li>print to pdf (use <em>Landscape</em> orientation)</li> | ||
</ul> | ||
<p>Do you want to get this little hack integrated to IPython? @fperez, the IPython BDFL does:</p> | ||
<blockquote class="twitter-tweet" data-conversation="none" data-cards="hidden" data-partner="tweetdeck"><p> | ||
<a href="https://twitter.com/damian_avila">@damian_avila</a> <a href="https://twitter.com/profjsb">@profjsb</a> ultimately we should fold that into master though... | ||
</p> | ||
— Fernando Perez (@fperez_org) <a href="https://twitter.com/fperez_org/statuses/373190058326519808">August 29, 2013</a> | ||
</blockquote> | ||
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | ||
|
||
<p>So, time to write some code and do a PR... in the meantime use this hack ;-)</p> | ||
<p>Damián.</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"family": [2, "/categories/family.html"], "gh-pages": [1, "/categories/gh-pages.html"], "IPython": [12, "/categories/ipython.html"], "politics": [1, "/categories/politics.html"], "talks": [1, "/categories/talks.html"], "zenmode": [1, "/categories/zenmode.html"], "nikola": [8, "/categories/nikola.html"], "git": [1, "/categories/git.html"], "blog": [5, "/categories/blog.html"], "flood": [1, "/categories/flood.html"], "nbconvert": [5, "/categories/nbconvert.html"], "vIPer": [3, "/categories/viper.html"], "tutorials": [1, "/categories/tutorials.html"], "life": [2, "/categories/life.html"], "python": [14, "/categories/python.html"], "javascript": [1, "/categories/javascript.html"], "SciPyCon": [1, "/categories/scipycon.html"], "slideshow": [1, "/categories/slideshow.html"], "first_post": [1, "/categories/first_post.html"], "reveal": [2, "/categories/reveal.html"], "Facundo": [2, "/categories/facundo.html"], "extension": [1, "/categories/extension.html"]} | ||
{"family": [2, "/categories/family.html"], "gh-pages": [1, "/categories/gh-pages.html"], "IPython": [13, "/categories/ipython.html"], "zenmode": [1, "/categories/zenmode.html"], "talks": [1, "/categories/talks.html"], "politics": [1, "/categories/politics.html"], "nikola": [8, "/categories/nikola.html"], "git": [1, "/categories/git.html"], "blog": [5, "/categories/blog.html"], "flood": [1, "/categories/flood.html"], "nbconvert": [6, "/categories/nbconvert.html"], "vIPer": [3, "/categories/viper.html"], "tutorials": [1, "/categories/tutorials.html"], "life": [2, "/categories/life.html"], "python": [15, "/categories/python.html"], "javascript": [1, "/categories/javascript.html"], "SciPyCon": [1, "/categories/scipycon.html"], "slideshow": [2, "/categories/slideshow.html"], "first_post": [1, "/categories/first_post.html"], "reveal": [3, "/categories/reveal.html"], "Facundo": [2, "/categories/facundo.html"], "extension": [1, "/categories/extension.html"], "pdf": [1, "/categories/pdf.html"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.