[IPython-dev] Command line tool to publish a notebook on a wordpress blog

Kiko kikocorreoso at gmail.com
Wed Jul 30 18:44:54 EDT 2014

2014-07-29 14:07 GMT+02:00 Doug Blank <doug.blank at gmail.com>:

> On Tue, Jul 29, 2014 at 4:07 AM, Kiko <kikocorreoso at gmail.com> wrote:
>> Hi all,
>> I made a small script to publish a notebook directly on a wordpress blog.
>> The repo can be found here:
>> https://github.com/Pybonacci/ipy2wp
>> It uses nbconvert to convert the notebook to html (maybe I should explore
>> a conversion to markdown instead of html). I use this to publish on
>> http://pybonacci.org and it works great with simple notebooks (I have to
>> check notebooks with more complex structure). It creates a draft on your
>> wordpress blog so you can check the post before publishing.
>> If someone uses the script please provide some feedback to improve the
>> tool. If someone experience any problem, please, open an issue in the repo.
>> If someone has something similar and want to share it would be great to see
>> how others are solving that.
>> If your wordpress blog is older than v 3.5 please check this link:
>> http://codex.wordpress.org/XML-RPC_Support
>> Kind regards.
> Very useful!
> Do you have any suggestions regarding how to get IPython's /static etc.
> installed so that everything needed (eg, javascript) will load?
> Also, looks like some HTML is being injected into <script> areas (note the
> <p> tag and >):
> <script>
> ...
> google.load('visualization', '1.0', {'callback': drawChart,
> 'packages':['corechart']});
>         });</p>
> <p>// ]]></script></p>

Well, wordpress change some html. One thing would be to use a plugin like
'raw html' or similar. But the basic idea of the tool would be to help in
the publication of a notebook in a wordpress blog but some stuff are
dependent of your wordpress install (javascript, iframes, code

If someone have any ideas about how to improve it I'm all ears (eyes in
this case)

> Thanks for making this available!
> -Doug
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140731/79a695bf/attachment.html>

More information about the IPython-dev mailing list