Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
damianavila committed Oct 4, 2013
1 parent 713cc2e commit a788297
Show file tree
Hide file tree
Showing 81 changed files with 96 additions and 124 deletions.
Binary file modified .doit.db
Binary file not shown.
6 changes: 2 additions & 4 deletions cache/posts/a-simple-minimap-for-your-nbconverted-ipynb.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<div class="text_cell_render border-box-sizing rendered_html">
<p>Some days ago, I presented a way to mimic the execution of <em>nbconverted</em> <strong>IPython</strong> notebooks (<em>ipynb</em>). Today, I will show you how to add a simple <em>minimap</em> to these static html documents.</p>
<p>But, what is a <em>minimap</em>? Do you know <strong>SublimeText</strong> or <strong>Ninja-IDE</strong>? They are IDEs with a thin column to the right (of the main window) which provides an overview of the code we are working on... OK, you don't have an idea what am I talking about? Just go ahead and you will see... <!-- TEASER_END --></p>
<p><strong>Addendum note</strong>: There are some <em>performance issues</em> with <strong>Firefox</strong>, but in <strong>Chromium</strong> it is working OK! Simplicity comes with some hidden costs ;-)</p>
<p><strong>NOTE</strong>: if you are impatient, just go the beginning of this post and press the <code>Minimap</code> link next to the <code>Source</code> link... and surprise!</p>
<p><strong>Addendum note</strong>: There are <em>performance issues</em> with <strong>Firefox</strong>, but in <strong>Chromium</strong> it is working OK! Simplicity comes with some hidden costs ;-)</p>
<p>Well, my first thought to develop this feature was to look if anybody had this same idea (a <em>minimap</em> for html-based documents) before, and obviously, there was somebody ;-)</p>
<p>Mr. <strong>Google</strong> pointed me to a <a href="http://dropthebit.com/481/mini-page-navigation/">blog</a> where I found a nice js-based (working) solution.</p>
<p>The implementation was very simple and we used the same strategy from the last blog posts: pass a template in the <code>IPython.nbconvert</code> call from the command line (but please, do not forget that you can also use a config file to pass the template name -and other things - to the <code>IPython.nbconvert</code> infrastructure).</p>
Expand Down Expand Up @@ -68,9 +68,7 @@
<p>And as a the final step, we just wrote:</p>
<p><code>ipython nbconvert 3_NumPy.ipynb --to html --template minimap.tpl --post serve</code></p>
<p>in our console, and we saw something like <a href="http://damianavila.github.io/Python-Cientifico-HCC/3_NumPy.html">THIS</a></p>
<p><strong>Addendum note</strong>: There are <em>performance issues</em> with <strong>Firefox</strong>, but in <strong>Chromium</strong> it is working OK! Simplicity comes with some hidden costs ;-)</p>
</div>
<div class="text_cell_render border-box-sizing rendered_html">
<p><strong>Do not forget!</strong>: There are some <em>performance issues</em> with <strong>Firefox</strong>, but in <strong>Chromium</strong> it is working OK! Simplicity comes with some hidden costs ;-)</p>
<p>Nice, don't you think?</p>
<p>We also did the same (with minor modifications) with our <strong>Nikola</strong> <em>Zen</em> theme (probably you had already tested it because I assume you are impatient!).</p>
<p>Now, with this simple feature, you not only can quickly get an idea of the length of your documents (blog post, article, lecture, whatever...) but also they are easier to scroll and navigate!</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<div class="text_cell_render border-box-sizing rendered_html">
<p>Some days ago, I presented a way to mimic the execution of <em>nbconverted</em> <strong>IPython</strong> notebooks (<em>ipynb</em>). Today, I will show you how to add a simple <em>minimap</em> to these static html documents.</p>
<p>But, what is a <em>minimap</em>? Do you know <strong>SublimeText</strong> or <strong>Ninja-IDE</strong>? They are IDEs with a thin column to the right (of the main window) which provides an overview of the code we are working on... OK, you don't have an idea what am I talking about? Just go ahead and you will see... <!-- TEASER_END --></p>
<p><strong>Addendum note</strong>: There are some <em>performance issues</em> with <strong>Firefox</strong>, but in <strong>Chromium</strong> it is working OK! Simplicity comes with some hidden costs ;-)</p>
<p><strong>NOTE</strong>: if you are impatient, just go the beginning of this post and press the <code>Minimap</code> link next to the <code>Source</code> link... and surprise!</p>
<p><strong>Addendum note</strong>: There are <em>performance issues</em> with <strong>Firefox</strong>, but in <strong>Chromium</strong> it is working OK! Simplicity comes with some hidden costs ;-)</p>
<p>Well, my first thought to develop this feature was to look if anybody had this same idea (a <em>minimap</em> for html-based documents) before, and obviously, there was somebody ;-)</p>
<p>Mr. <strong>Google</strong> pointed me to a <a href="http://dropthebit.com/481/mini-page-navigation/">blog</a> where I found a nice js-based (working) solution.</p>
<p>The implementation was very simple and we used the same strategy from the last blog posts: pass a template in the <code>IPython.nbconvert</code> call from the command line (but please, do not forget that you can also use a config file to pass the template name -and other things - to the <code>IPython.nbconvert</code> infrastructure).</p>
Expand Down Expand Up @@ -68,9 +68,7 @@ position: static;
<p>And as a the final step, we just wrote:</p>
<p><code>ipython nbconvert 3_NumPy.ipynb --to html --template minimap.tpl --post serve</code></p>
<p>in our console, and we saw something like <a href="http://damianavila.github.io/Python-Cientifico-HCC/3_NumPy.html">THIS</a></p>
<p><strong>Addendum note</strong>: There are <em>performance issues</em> with <strong>Firefox</strong>, but in <strong>Chromium</strong> it is working OK! Simplicity comes with some hidden costs ;-)</p>
</div>
<div class="text_cell_render border-box-sizing rendered_html">
<p><strong>Do not forget!</strong>: There are some <em>performance issues</em> with <strong>Firefox</strong>, but in <strong>Chromium</strong> it is working OK! Simplicity comes with some hidden costs ;-)</p>
<p>Nice, don't you think?</p>
<p>We also did the same (with minor modifications) with our <strong>Nikola</strong> <em>Zen</em> theme (probably you had already tested it because I assume you are impatient!).</p>
<p>Now, with this simple feature, you not only can quickly get an idea of the length of your documents (blog post, article, lecture, whatever...) but also they are easier to scroll and navigate!</p>
Expand Down
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 xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="http://www.damian.oquanta.info/categories/blog.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 09:58:36 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Nikola's Zen theme finally released</title><link>http://www.damian.oquanta.info/posts/nikolas-zen-theme-finally-released.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="http://www.damian.oquanta.info/categories/blog.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 10:06:49 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Nikola's Zen theme finally released</title><link>http://www.damian.oquanta.info/posts/nikolas-zen-theme-finally-released.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Just a quick update... Some weeks ago I &lt;a href="http://www.damian.oquanta.info/posts/a-new-nikolas-theme-for-my-site-zen.html"&gt;blogged&lt;/a&gt; about my new &lt;strong&gt;Nikola&lt;/strong&gt;'s theme family called &lt;strong&gt;Zen&lt;/strong&gt;. In fact, you are seeing the &lt;code&gt;zen-ipython&lt;/code&gt; theme powering my blog right now.&lt;/p&gt;
&lt;p&gt;I have used them for several days without any remarkable issue, so I decided to release them at the &lt;strong&gt;Nikola&lt;/strong&gt;'s &lt;a href="https://github.com/getnikola/nikola-themes"&gt;theme repository&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There, you will see three &lt;strong&gt;Zen&lt;/strong&gt; themes:&lt;/p&gt;
Expand Down
2 changes: 1 addition & 1 deletion output/categories/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Damian's blog (config)</title><link>http://www.damian.oquanta.info/</link><description>My place to share some thoughts with the world.</description><atom:link href="http://www.damian.oquanta.info/categories/config.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 09:58:34 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>A simple minimap for your nbconverted ipynb</title><link>http://www.damian.oquanta.info/posts/a-simple-minimap-for-your-nbconverted-ipynb.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Damian's blog (config)</title><link>http://www.damian.oquanta.info/</link><description>My place to share some thoughts with the world.</description><atom:link href="http://www.damian.oquanta.info/categories/config.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 10:06:48 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>A simple minimap for your nbconverted ipynb</title><link>http://www.damian.oquanta.info/posts/a-simple-minimap-for-your-nbconverted-ipynb.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Some days ago, I presented a way to mimic the execution of &lt;em&gt;nbconverted&lt;/em&gt; &lt;strong&gt;IPython&lt;/strong&gt; notebooks (&lt;em&gt;ipynb&lt;/em&gt;). Today, I will show you how to add a simple &lt;em&gt;minimap&lt;/em&gt; to these static html documents.&lt;/p&gt;
&lt;p&gt;But, what is a &lt;em&gt;minimap&lt;/em&gt;? Do you know &lt;strong&gt;SublimeText&lt;/strong&gt; or &lt;strong&gt;Ninja-IDE&lt;/strong&gt;? They are IDEs with a thin column to the right (of the main window) which provides an overview of the code we are working on... OK, you don't have an idea what am I talking about? Just go ahead and you will see... &lt;/p&gt;&lt;p class="more"&gt;&lt;a href="http://www.damian.oquanta.info/posts/a-simple-minimap-for-your-nbconverted-ipynb.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author></author><category>python</category><category>IPython</category><category>nbconvert</category><category>config</category><category>javascript</category><category>minimap</category><category>jinja</category><category>nikola</category><guid>http://www.damian.oquanta.info/posts/a-simple-minimap-for-your-nbconverted-ipynb.html</guid><pubDate>Fri, 04 Oct 2013 00:59:36 GMT</pubDate></item><item><title>Mimic the IPython notebook cell execution</title><link>http://www.damian.oquanta.info/posts/mimic-the-ipython-notebook-cell-execution.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Yesterday, I was visiting the &lt;a href="http://www.astro.washington.edu/users/vanderplas/"&gt;Jake VanderPlas&lt;/a&gt;'s Scientific Python Course &lt;a href="http://www.astro.washington.edu/users/vanderplas/Astr599/schedule"&gt;site&lt;/a&gt; because of some issues raised at the ipython-dev mailing list (and obviously, because Jake usually do amazing things).&lt;/p&gt;
Expand Down
2 changes: 1 addition & 1 deletion output/categories/connectivity.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Damian's blog (connectivity)</title><link>http://www.damian.oquanta.info/</link><description>My place to share some thoughts with the world.</description><atom:link href="http://www.damian.oquanta.info/categories/connectivity.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 09:58:35 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Using a local Reveal.js library with your IPython slides</title><link>http://www.damian.oquanta.info/posts/using-a-local-revealjs-library-with-your-ipython-slides.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Damian's blog (connectivity)</title><link>http://www.damian.oquanta.info/</link><description>My place to share some thoughts with the world.</description><atom:link href="http://www.damian.oquanta.info/categories/connectivity.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 10:06:48 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Using a local Reveal.js library with your IPython slides</title><link>http://www.damian.oquanta.info/posts/using-a-local-revealjs-library-with-your-ipython-slides.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;IPython slides are powered by &lt;a href="https://github.com/hakimel/reveal.js/"&gt;Reveal.js&lt;/a&gt; library, you probably already know that.&lt;/p&gt;
&lt;p&gt;But... you probably don't know that we use &lt;a href="http://www.jsdelivr.com/"&gt;jsdelivr&lt;/a&gt; CDN to load all the necessary js and css files. As a consequence, you don't need to download Reveal.js, but also, the speaker notes are not working by default.&lt;/p&gt;
&lt;p&gt;But... what happens, if you have low connectivity in the place where you will be presenting your talk (or if you want to use the speaker notes feature)? &lt;/p&gt;&lt;p class="more"&gt;&lt;a href="http://www.damian.oquanta.info/posts/using-a-local-revealjs-library-with-your-ipython-slides.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author></author><category>python</category><category>IPython</category><category>nbconvert</category><category>reveal</category><category>slideshow</category><category>local</category><category>connectivity</category><guid>http://www.damian.oquanta.info/posts/using-a-local-revealjs-library-with-your-ipython-slides.html</guid><pubDate>Fri, 13 Sep 2013 18:50:22 GMT</pubDate></item></channel></rss>
2 changes: 1 addition & 1 deletion output/categories/css.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Damian's blog (css)</title><link>http://www.damian.oquanta.info/</link><description>My place to share some thoughts with the world.</description><atom:link href="http://www.damian.oquanta.info/categories/css.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 09:58:35 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Customizing your IPython slides</title><link>http://www.damian.oquanta.info/posts/customizing-your-ipython-slides.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Damian's blog (css)</title><link>http://www.damian.oquanta.info/</link><description>My place to share some thoughts with the world.</description><atom:link href="http://www.damian.oquanta.info/categories/css.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 10:06:48 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Customizing your IPython slides</title><link>http://www.damian.oquanta.info/posts/customizing-your-ipython-slides.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Some days ago, I received this message on G+:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;In a future release, would be handy to add custom classes to slides so that you can use CSS rules to choose certain layouts for image slides, text, multiple charts, etc.&lt;/p&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 xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="http://www.damian.oquanta.info/categories/extension.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 09:58:35 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 xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="http://www.damian.oquanta.info/categories/extension.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 10:06:48 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 xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="http://www.damian.oquanta.info/categories/facundo.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 09:58:35 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 xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="http://www.damian.oquanta.info/categories/facundo.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Fri, 04 Oct 2013 10:06:48 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
Loading

0 comments on commit a788297

Please sign in to comment.