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.plot([1,2,3,4,5,6])
plt.ylabel('plot numbers')
plt.show()
In [7]:
print("test")
test
In [ ]:
 

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

No comments:

Post a Comment