Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blogging with IPython Notebook

How can I convert an IPython notebook to HTML for use in a Google Blogger blog?

There is an answer here:

IPython notebook to html for blog post?

and I have read the associated blog from fperez, but -f blogger-html does not seem to be an option with nbconvert anymore (Is that right?).

I can convert my notebook to HTML, but Google doesn't seem to like that. If I use the --template basic option, the headers disappear, and the LaTex rendering of mathematical expressions is lost. Also, Google seems to generate errors when saving/publishing, so I can't save it.

Anyone have any info on the updated process?

like image 235
Woody Pride Avatar asked Nov 18 '13 02:11

Woody Pride


People also ask

Can I use IPython in Jupyter Notebook?

The IPython Notebook is now known as the Jupyter Notebook. It is an interactive computational environment, in which you can combine code execution, rich text, mathematics, plots and rich media. For more details on the Jupyter Notebook, please see the Jupyter website.

Is IPython notebook and Jupyter Notebook same?

Jupyter is language agnostic and its name is a reference to core programming languages supported by Jupyter, which are Julia, Python, and R. Jupyter Notebook (formerly IPython Notebooks) is a web-based interactive computational environment for creating, executing, and visualizing Jupyter notebooks.

Is Jupyter lab better than notebook?

For beginners in data science, jupyter notebook is more preferred; it only consists of a file browser and a (notebook) editor view, which is easier to use. When you get familiar with it and need more features(which we will talk about later), you can then definitely switch to JupyterLab.


2 Answers

You can bypass the nvconvert conversion by using your browsers file->"save (page) as" feature. it would download all associated files. It just catches the IPython Notebook UI at the top as well as the data. So with some simple editing it can be done. But I miss that option as well.

like image 159
Back2Basics Avatar answered Oct 09 '22 12:10

Back2Basics


Fernando recently posted a slight update to his post about blogging with the notebook.

Update (May 2014): Please note that these instructions are outdated. while it is still possible (and in fact easier) to blog with the Notebook, the exact process has changed now that IPython has an official conversion framework. However, Blogger isn't the ideal platform for that (though it can be made to work). If you are interested in using the Notebook as a tool for technical blogging, I recommend looking at Jake van der Plas' Pelican support or Damián Avila's support in Nikola.

Update: made full github repo for blog-as-notebooks, and updated instructions on how to more easily configure everything and use the newest nbconvert for a more streamlined workflow.

Maybe those two links can help you figure it out.

like image 45
Midnighter Avatar answered Oct 09 '22 10:10

Midnighter