Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
damianavila committed Aug 30, 2013
1 parent 043dc15 commit ca2f378
Show file tree
Hide file tree
Showing 82 changed files with 1,567 additions and 304 deletions.
Binary file modified .doit.db
Binary file not shown.
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>
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>
4 changes: 3 additions & 1 deletion output/2013/08/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@
<h1>Posts for August 2013</h1>
<ul class="unstyled">

<li><a href="../../posts/zen-mode-extension-for-the-ipython-notebook.html">[27-08-13 00:21] Zen mode extension for the IPython notebook</a>
<li><a href="../../posts/a-little-hack-to-get-a-pdf-from-your-ipython-slides.html">[30-08-13 20:25] A little hack to get a pdf from your IPython slides</a>

</li><li><a href="../../posts/zen-mode-extension-for-the-ipython-notebook.html">[27-08-13 00:21] Zen mode extension for the IPython notebook</a>

</li><li><a href="../../posts/make-your-slides-with-ipython.html">[23-08-13 09:25] Make your slides with IPython</a>

Expand Down
2 changes: 1 addition & 1 deletion output/assets/js/tag_cloud_data.json
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"]}
2 changes: 1 addition & 1 deletion output/categories/blog.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Damian's blog (blog)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Thu, 29 Aug 2013 12:48:21 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>One line deployment of your site to gh-pages</title><link>http://www.damian.oquanta.info/posts/one-line-deployment-of-your-site-to-gh-pages.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss version="2.0"><channel><title>Damian's blog (blog)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Fri, 30 Aug 2013 20:29:23 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>One line deployment of your site to gh-pages</title><link>http://www.damian.oquanta.info/posts/one-line-deployment-of-your-site-to-gh-pages.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Do you want to &lt;strong&gt;easily&lt;/strong&gt; deploy your site to Github pages?&lt;/p&gt;
&lt;p&gt;OK, here we go...&lt;/p&gt;
&lt;ol style="list-style-type: decimal"&gt;
Expand Down
2 changes: 1 addition & 1 deletion output/categories/extension.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Damian's blog (extension)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Thu, 29 Aug 2013 12:48:21 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Zen mode extension for the IPython notebook</title><link>http://www.damian.oquanta.info/posts/zen-mode-extension-for-the-ipython-notebook.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss version="2.0"><channel><title>Damian's blog (extension)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Fri, 30 Aug 2013 20:29:23 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Zen mode extension for the IPython notebook</title><link>http://www.damian.oquanta.info/posts/zen-mode-extension-for-the-ipython-notebook.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;I write a lot stuff inside the IPython notebook.&lt;/p&gt;
&lt;p&gt;And I thought it would be great to have a &lt;em&gt;sort&lt;/em&gt; of &lt;strong&gt;Zen mode&lt;/strong&gt; for the notebook...&lt;/p&gt;
&lt;p&gt;I mean, a &lt;em&gt;peaceful&lt;/em&gt; user interface to write my blog posts (and other stuff, of course).&lt;/p&gt;
Expand Down
2 changes: 1 addition & 1 deletion output/categories/facundo.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Damian's blog (Facundo)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Thu, 29 Aug 2013 12:48:21 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Under the Sea... en La Plata</title><link>http://www.damian.oquanta.info/posts/under-the-sea-en-la-plata.html</link><description>&lt;div&gt;&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss version="2.0"><channel><title>Damian's blog (Facundo)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Fri, 30 Aug 2013 20:29:23 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Under the Sea... en La Plata</title><link>http://www.damian.oquanta.info/posts/under-the-sea-en-la-plata.html</link><description>&lt;div&gt;&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Han pasado casi tres semanas... El 2 de abril cayeron sobre la ciudad de La Plata casi 400 mm de agua en 24 hs, concentrándose la mayor parte de dicho caudal en dos o tres horas por la tarde, lo que dio lugar a la más grande inundación que la ciudad haya registrado en toda su historia.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
Expand Down
2 changes: 1 addition & 1 deletion output/categories/family.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Damian's blog (family)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Thu, 29 Aug 2013 12:48:21 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Under the Sea... en La Plata</title><link>http://www.damian.oquanta.info/posts/under-the-sea-en-la-plata.html</link><description>&lt;div&gt;&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss version="2.0"><channel><title>Damian's blog (family)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Fri, 30 Aug 2013 20:29:23 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Under the Sea... en La Plata</title><link>http://www.damian.oquanta.info/posts/under-the-sea-en-la-plata.html</link><description>&lt;div&gt;&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Han pasado casi tres semanas... El 2 de abril cayeron sobre la ciudad de La Plata casi 400 mm de agua en 24 hs, concentrándose la mayor parte de dicho caudal en dos o tres horas por la tarde, lo que dio lugar a la más grande inundación que la ciudad haya registrado en toda su historia.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
Expand Down
2 changes: 1 addition & 1 deletion output/categories/first_post.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Damian's blog (first_post)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Thu, 29 Aug 2013 12:48:21 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Hello World! Again...</title><link>http://www.damian.oquanta.info/posts/hello-world-again.html</link><description>&lt;p&gt;You know that I have attempted to run a blog before. This is a new attempt...
<rss version="2.0"><channel><title>Damian's blog (first_post)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Fri, 30 Aug 2013 20:29:23 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Hello World! Again...</title><link>http://www.damian.oquanta.info/posts/hello-world-again.html</link><description>&lt;p&gt;You know that I have attempted to run a blog before. This is a new attempt...
OK, I do not promise to post everyday... but if you have patience,
you will read a lot of interesting things (at least interesting for me).&lt;/p&gt;
&lt;p&gt;See you soon!&lt;/p&gt;
Expand Down
2 changes: 1 addition & 1 deletion output/categories/flood.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Damian's blog (flood)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Thu, 29 Aug 2013 12:48:21 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Under the Sea... en La Plata</title><link>http://www.damian.oquanta.info/posts/under-the-sea-en-la-plata.html</link><description>&lt;div&gt;&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss version="2.0"><channel><title>Damian's blog (flood)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Fri, 30 Aug 2013 20:29:23 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Under the Sea... en La Plata</title><link>http://www.damian.oquanta.info/posts/under-the-sea-en-la-plata.html</link><description>&lt;div&gt;&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Han pasado casi tres semanas... El 2 de abril cayeron sobre la ciudad de La Plata casi 400 mm de agua en 24 hs, concentrándose la mayor parte de dicho caudal en dos o tres horas por la tarde, lo que dio lugar a la más grande inundación que la ciudad haya registrado en toda su historia.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
Expand Down
2 changes: 1 addition & 1 deletion output/categories/gh-pages.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Damian's blog (gh-pages)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Thu, 29 Aug 2013 12:48:21 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>One line deployment of your site to gh-pages</title><link>http://www.damian.oquanta.info/posts/one-line-deployment-of-your-site-to-gh-pages.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss version="2.0"><channel><title>Damian's blog (gh-pages)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Fri, 30 Aug 2013 20:29:23 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>One line deployment of your site to gh-pages</title><link>http://www.damian.oquanta.info/posts/one-line-deployment-of-your-site-to-gh-pages.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Do you want to &lt;strong&gt;easily&lt;/strong&gt; deploy your site to Github pages?&lt;/p&gt;
&lt;p&gt;OK, here we go...&lt;/p&gt;
&lt;ol style="list-style-type: decimal"&gt;
Expand Down
2 changes: 1 addition & 1 deletion output/categories/git.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Damian's blog (git)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Thu, 29 Aug 2013 12:48:21 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>One line deployment of your site to gh-pages</title><link>http://www.damian.oquanta.info/posts/one-line-deployment-of-your-site-to-gh-pages.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss version="2.0"><channel><title>Damian's blog (git)</title><link>http://www.damian.oquanta.info</link><description>My place to share some thoughts with the world.</description><lastBuildDate>Fri, 30 Aug 2013 20:29:23 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>One line deployment of your site to gh-pages</title><link>http://www.damian.oquanta.info/posts/one-line-deployment-of-your-site-to-gh-pages.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Do you want to &lt;strong&gt;easily&lt;/strong&gt; deploy your site to Github pages?&lt;/p&gt;
&lt;p&gt;OK, here we go...&lt;/p&gt;
&lt;ol style="list-style-type: decimal"&gt;
Expand Down
2 changes: 2 additions & 0 deletions output/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ <h1>Tags</h1>

<li><a href="nikola.html">nikola</a></li>

<li><a href="pdf.html">pdf</a></li>

<li><a href="politics.html">politics</a></li>

<li><a href="python.html">python</a></li>
Expand Down
4 changes: 3 additions & 1 deletion output/categories/ipython.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@
<h1>Posts about IPython</h1>
<ul class="unstyled">

<li><a href="../posts/zen-mode-extension-for-the-ipython-notebook.html">[27-08-13 00:21] Zen mode extension for the IPython notebook</a>
<li><a href="../posts/a-little-hack-to-get-a-pdf-from-your-ipython-slides.html">[30-08-13 20:25] A little hack to get a pdf from your IPython slides</a>

</li><li><a href="../posts/zen-mode-extension-for-the-ipython-notebook.html">[27-08-13 00:21] Zen mode extension for the IPython notebook</a>

</li><li><a href="../posts/make-your-slides-with-ipython.html">[23-08-13 09:25] Make your slides with IPython</a>

Expand Down
Loading

0 comments on commit ca2f378

Please sign in to comment.