Monday, August 1, 2016

How to import Jupyter Notebooks to Blogger

I have found an easy way to import Jupyter Notebooks to Blogger.
  1. go to "template", "Customise", "Adjust widths" and set "Entire Blog" to 1470px; 
  2. go to "template", "Customise", "Advanced" and increase font siye (I am using Open Sans 14px); 
  3. in Jupyter convert the Notebook to html
  4. copy and paste html to blogger (remove the begin/end html tag and remove all blocks inside "style type="text/css" *! * * Twitter Bootstrap * *! .. apart from the block * IPython notebook)
This is the result

Example Markdown $a_1$
In [6]:
import matplotlib.pyplot as plt
%matplotlib inline 
plt.ylabel('plot numbers')
In [7]:
In [ ]:

Therefore I am going to use this method in the next posts to combine text, latex and code.

No comments:

Post a Comment