Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
damianavila committed Dec 27, 2013
1 parent 522c2c1 commit ccb4a18
Show file tree
Hide file tree
Showing 119 changed files with 178 additions and 178 deletions.
Binary file modified .doit.db
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

<div class="text_cell_render border-box-sizing rendered_html">
<p>Following the idea to release all the extensions I had working on in the last few weeks/months, today I will release an old but very useful IPython notebook extension for people blogging with Nikola: the nikola_deploy extension. <!-- TEASER_END --></p>
<p>Following the idea to release all the extensions I had working on in the last few weeks/months, today I will release an old but very useful <strong>IPython</strong> notebook extension for people blogging with <strong>Nikola</strong>: the <em>nikola_deploy</em> extension. <!-- TEASER_END --></p>
<p>Yes, I am always very original picking the names of the extensions ;-). A pic to illustrate the extension button at the toolbar:</p>
<div class="figure">
<img src="http://www.damian.oquanta.info/galleries/deploy/1.png" />
</div>
<blockquote>
<p>NOTE: Nikola supports the ipynb file as an input... and using the IPython.nbconvert machinery it is able to render the static HTML representation of your ipynbs inside the complete infrastructure of a powerful static site engine.</p>
<p><strong>Note</strong>: Nikola supports the ipynb file as an input... and using the IPython.nbconvert machinery it is able to render the static HTML representation of your ipynbs inside the complete infrastructure of a powerful static site engine.</p>
</blockquote>
<p>First, to know some things about my blogging workflow using IPython, Nikola, git and gh-pages, I suggest you to re-read these previous posts:</p>
<p>First, to know some things about my blogging workflow using <strong>IPython</strong>, <strong>Nikola</strong>, <strong>git</strong> and <strong>gh-pages</strong>, I suggest you to re-read these previous posts:</p>
<ul>
<li><a href="http://www.damian.oquanta.info/posts/bidirectional-ipython-nikola-workflow-to-write-your-blog-post.html">Bidirectional IPython-Nikola workflow to write your blog post</a></li>
<li><a href="http://www.damian.oquanta.info/posts/one-line-deployment-of-your-site-to-gh-pages.html">One line deployment of your site to gh-pages</a></li>
</ul>
<p>OK, coming back to the extension, the idea behind this one is very simple: I will call the nikola deploy command from inside the IPython notebook using our beloved IPython.notebook.kernel.execute method, and also taking the advantage of passing commands to the underlying system just pre-pending with the <code>!</code> mark. The relevant lines are below:</p>
<p>OK, coming back to the extension, the idea behind this one is very simple: I will call the <code>nikola deploy</code> command from inside the <strong>IPython</strong> notebook using our beloved <code>IPython.notebook.kernel.execute</code> method, and also taking the advantage of <em>passing</em> commands to the underlying system just pre-pending with the <code>!</code> mark. The relevant lines are below:</p>
<pre class="sourceCode javascript"><code class="sourceCode javascript"><span class="dv">36</span> <span class="kw">if</span> (clean==<span class="st">&quot;True&quot;</span>) {
<span class="dv">37</span> <span class="kw">IPython.notebook.kernel</span>.<span class="fu">execute</span>(<span class="ch">&#39;!nikola clean&#39;</span>);
<span class="dv">38</span> }
<span class="dv">39</span> <span class="kw">IPython.notebook.kernel</span>.<span class="fu">execute</span>(<span class="ch">&#39;!nikola build&#39;</span>);
<span class="dv">40</span> <span class="kw">IPython.notebook.kernel</span>.<span class="fu">execute</span>(<span class="ch">&#39;!nikola deploy&#39;</span>);</code></pre>
<p>After writing the content of my post following the workflow explained in previous posts, I just click on the nikola_deploy extension button and the site is cleaned (if you choose this option to True in the config file, please set it to False if you want a quick building), built and deployed automatically ;-)</p>
<p>After writing the content of my post following the workflow explained in previous posts, I just click on the <em>nikola_deploy</em> extension button and the site is <em>cleaned</em> (if you choose this option to True in the config file, please set it to False if you want a quick building), <em>built</em> and <em>deployed</em> <strong>automagically</strong> ;-)</p>
<p>And that's all... the complete code below:</p>
</div>
<div class="cell border-box-sizing code_cell vbox">
Expand Down Expand Up @@ -115,7 +115,7 @@
</div>
<div class="text_cell_render border-box-sizing rendered_html">
<p>Again, the extension lives in this new repo: <a href="https://github.com/damianavila/mIPyex">mIPyex</a>, where I will upload the development versions of my own extensions. When I get them enough stable, I will make a copy of them in the <a href="https://github.com/ipython-contrib/IPython-notebook-extensions">IPython notebook extensions</a> repo where you can get a lot of and useful interesting extensions.</p>
<p>OK, as you can see... it is very simple to blog with IPython and Nikola, so I invite you to try it now and let me know any ideas, comments or critics.</p>
<p>OK, as you can see... it is very simple to blog with <strong>IPython</strong> and <strong>Nikola</strong>, so I invite you to try it <em>now</em> and let me know any ideas, comments or critics.</p>
<p>Enjoy!</p>
<p>Damián</p>
</div>
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

<div class="text_cell_render border-box-sizing rendered_html">
<p>Following the idea to release all the extensions I had working on in the last few weeks/months, today I will release an old but very useful IPython notebook extension for people blogging with Nikola: the nikola_deploy extension. <!-- TEASER_END --></p>
<p>Following the idea to release all the extensions I had working on in the last few weeks/months, today I will release an old but very useful <strong>IPython</strong> notebook extension for people blogging with <strong>Nikola</strong>: the <em>nikola_deploy</em> extension. <!-- TEASER_END --></p>
<p>Yes, I am always very original picking the names of the extensions ;-). A pic to illustrate the extension button at the toolbar:</p>
<div class="figure">
<img src="http://www.damian.oquanta.info/galleries/deploy/1.png" />
</div>
<blockquote>
<p>NOTE: Nikola supports the ipynb file as an input... and using the IPython.nbconvert machinery it is able to render the static HTML representation of your ipynbs inside the complete infrastructure of a powerful static site engine.</p>
<p><strong>Note</strong>: Nikola supports the ipynb file as an input... and using the IPython.nbconvert machinery it is able to render the static HTML representation of your ipynbs inside the complete infrastructure of a powerful static site engine.</p>
</blockquote>
<p>First, to know some things about my blogging workflow using IPython, Nikola, git and gh-pages, I suggest you to re-read these previous posts:</p>
<p>First, to know some things about my blogging workflow using <strong>IPython</strong>, <strong>Nikola</strong>, <strong>git</strong> and <strong>gh-pages</strong>, I suggest you to re-read these previous posts:</p>
<ul>
<li><a href="http://www.damian.oquanta.info/posts/bidirectional-ipython-nikola-workflow-to-write-your-blog-post.html">Bidirectional IPython-Nikola workflow to write your blog post</a></li>
<li><a href="http://www.damian.oquanta.info/posts/one-line-deployment-of-your-site-to-gh-pages.html">One line deployment of your site to gh-pages</a></li>
</ul>
<p>OK, coming back to the extension, the idea behind this one is very simple: I will call the nikola deploy command from inside the IPython notebook using our beloved IPython.notebook.kernel.execute method, and also taking the advantage of passing commands to the underlying system just pre-pending with the <code>!</code> mark. The relevant lines are below:</p>
<p>OK, coming back to the extension, the idea behind this one is very simple: I will call the <code>nikola deploy</code> command from inside the <strong>IPython</strong> notebook using our beloved <code>IPython.notebook.kernel.execute</code> method, and also taking the advantage of <em>passing</em> commands to the underlying system just pre-pending with the <code>!</code> mark. The relevant lines are below:</p>
<pre class="sourceCode javascript"><code class="sourceCode javascript"><span class="dv">36</span> <span class="kw">if</span> (clean==<span class="st">&quot;True&quot;</span>) {
<span class="dv">37</span> <span class="kw">IPython.notebook.kernel</span>.<span class="fu">execute</span>(<span class="ch">&#39;!nikola clean&#39;</span>);
<span class="dv">38</span> }
<span class="dv">39</span> <span class="kw">IPython.notebook.kernel</span>.<span class="fu">execute</span>(<span class="ch">&#39;!nikola build&#39;</span>);
<span class="dv">40</span> <span class="kw">IPython.notebook.kernel</span>.<span class="fu">execute</span>(<span class="ch">&#39;!nikola deploy&#39;</span>);</code></pre>
<p>After writing the content of my post following the workflow explained in previous posts, I just click on the nikola_deploy extension button and the site is cleaned (if you choose this option to True in the config file, please set it to False if you want a quick building), built and deployed automatically ;-)</p>
<p>After writing the content of my post following the workflow explained in previous posts, I just click on the <em>nikola_deploy</em> extension button and the site is <em>cleaned</em> (if you choose this option to True in the config file, please set it to False if you want a quick building), <em>built</em> and <em>deployed</em> <strong>automagically</strong> ;-)</p>
<p>And that's all... the complete code below:</p>
</div>
<div class="cell border-box-sizing code_cell vbox">
Expand Down Expand Up @@ -115,7 +115,7 @@ In&nbsp;[1]:
</div>
<div class="text_cell_render border-box-sizing rendered_html">
<p>Again, the extension lives in this new repo: <a href="https://github.com/damianavila/mIPyex">mIPyex</a>, where I will upload the development versions of my own extensions. When I get them enough stable, I will make a copy of them in the <a href="https://github.com/ipython-contrib/IPython-notebook-extensions">IPython notebook extensions</a> repo where you can get a lot of and useful interesting extensions.</p>
<p>OK, as you can see... it is very simple to blog with IPython and Nikola, so I invite you to try it now and let me know any ideas, comments or critics.</p>
<p>OK, as you can see... it is very simple to blog with <strong>IPython</strong> and <strong>Nikola</strong>, so I invite you to try it <em>now</em> and let me know any ideas, comments or critics.</p>
<p>Enjoy!</p>
<p>Damián</p>
</div>
4 changes: 2 additions & 2 deletions output/categories/blog.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Damian's blog (blog)</title><link>http://www.damian.oquanta.info/</link><description></description><atom:link href="http://www.damian.oquanta.info/categories/blog.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 27 Dec 2013 20:40:55 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Deploy your Nikola-powered blog content from the IPython notebook</title><link>http://www.damian.oquanta.info/posts/deploy-your-nikola-powered-blog-content-from-the-ipython-notebook.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Following the idea to release all the extensions I had working on in the last few weeks/months, today I will release an old but very useful IPython notebook extension for people blogging with Nikola: the nikola_deploy extension. &lt;/p&gt;&lt;p class="more"&gt;&lt;a href="http://www.damian.oquanta.info/posts/deploy-your-nikola-powered-blog-content-from-the-ipython-notebook.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>python</category><category>IPython</category><category>extension</category><category>javascript</category><category>blog</category><category>gh-pages</category><category>git</category><category>workflow</category><category>mIPyex</category><guid>http://www.damian.oquanta.info/posts/deploy-your-nikola-powered-blog-content-from-the-ipython-notebook.html</guid><pubDate>Fri, 27 Dec 2013 23:35:57 GMT</pubDate></item><item><title>Bidirectional IPython-Nikola workflow to write your blog post</title><link>http://www.damian.oquanta.info/posts/bidirectional-ipython-nikola-workflow-to-write-your-blog-post.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" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Damian's blog (blog)</title><link>http://www.damian.oquanta.info/</link><description></description><atom:link href="http://www.damian.oquanta.info/categories/blog.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 27 Dec 2013 20:46:42 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Deploy your Nikola-powered blog content from the IPython notebook</title><link>http://www.damian.oquanta.info/posts/deploy-your-nikola-powered-blog-content-from-the-ipython-notebook.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Following the idea to release all the extensions I had working on in the last few weeks/months, today I will release an old but very useful &lt;strong&gt;IPython&lt;/strong&gt; notebook extension for people blogging with &lt;strong&gt;Nikola&lt;/strong&gt;: the &lt;em&gt;nikola_deploy&lt;/em&gt; extension. &lt;/p&gt;&lt;p class="more"&gt;&lt;a href="http://www.damian.oquanta.info/posts/deploy-your-nikola-powered-blog-content-from-the-ipython-notebook.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>python</category><category>IPython</category><category>extension</category><category>javascript</category><category>blog</category><category>gh-pages</category><category>git</category><category>workflow</category><category>mIPyex</category><guid>http://www.damian.oquanta.info/posts/deploy-your-nikola-powered-blog-content-from-the-ipython-notebook.html</guid><pubDate>Fri, 27 Dec 2013 23:35:57 GMT</pubDate></item><item><title>Bidirectional IPython-Nikola workflow to write your blog post</title><link>http://www.damian.oquanta.info/posts/bidirectional-ipython-nikola-workflow-to-write-your-blog-post.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;The idea of this blog post is to show you how you can achieve an efficient &lt;em&gt;bidirectional&lt;/em&gt; workflow to write your blog posts using great tools/features derived from &lt;strong&gt;IPython&lt;/strong&gt; and &lt;strong&gt;Nikola&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Probably, this would be interesting not only for the people using &lt;strong&gt;IPython&lt;/strong&gt; and &lt;strong&gt;Nikola&lt;/strong&gt; to write their blog post, but also to other people because this would be a simple but nice example of how you can integrate this two applications to better suit your needs.&lt;/p&gt;
&lt;p&gt;OK, first of all, let's go to the folder containing my blog: &lt;/p&gt;&lt;p class="more"&gt;&lt;a href="http://www.damian.oquanta.info/posts/bidirectional-ipython-nikola-workflow-to-write-your-blog-post.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>python</category><category>IPython</category><category>nikola</category><category>blog</category><category>extension</category><category>gh-pages</category><category>git</category><category>workflow</category><guid>http://www.damian.oquanta.info/posts/bidirectional-ipython-nikola-workflow-to-write-your-blog-post.html</guid><pubDate>Tue, 15 Oct 2013 21:08:28 GMT</pubDate></item><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;
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" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Damian's blog (config)</title><link>http://www.damian.oquanta.info/</link><description></description><atom:link href="http://www.damian.oquanta.info/categories/config.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 27 Dec 2013 20:40:54 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Hide the input cells from your IPython slides</title><link>http://www.damian.oquanta.info/posts/hide-the-input-cells-from-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" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Damian's blog (config)</title><link>http://www.damian.oquanta.info/</link><description></description><atom:link href="http://www.damian.oquanta.info/categories/config.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 27 Dec 2013 20:46:42 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Hide the input cells from your IPython slides</title><link>http://www.damian.oquanta.info/posts/hide-the-input-cells-from-your-ipython-slides.html</link><description>&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;A tweet arrived...&lt;/p&gt;
&lt;blockquote class="twitter-tweet" data-partner="tweetdeck"&gt;&lt;p&gt;
&lt;a href="https://twitter.com/damian_avila"&gt;@damian_avila&lt;/a&gt; Is there a way to only show the output of a cell in an NB slideshow?
Expand Down
Loading

0 comments on commit ccb4a18

Please sign in to comment.