nbconvert use ‘–allow-chromium-download’
Try in your terminal this command using your notebook: jupyter nbconvert –to webpdf –allow-chromium-download Untitled.ipynb where “Untitled.ipynb” is the name of your notebook. this should download chromium
Try in your terminal this command using your notebook: jupyter nbconvert –to webpdf –allow-chromium-download Untitled.ipynb where “Untitled.ipynb” is the name of your notebook. this should download chromium
You can write an unnumbered heading by appending {-} or {.unnumbered} to the Markdown cell, e.g.: Heading {-} The output is a heading without a number, like so: Heading This is documented in Pandoc’s Markdown which is an extended and slightly revised version of the original Markdown syntax.
I recently used BeautifulSoup and JSON to convert html notebook to ipynb. the trick is to look at the JSON schema of a notebook and emulate that. The code selects only input code cells and markdown cells here is my code from bs4 import BeautifulSoup import json import urllib.request url=”http://nbviewer.jupyter.org/url/jakevdp.github.com/downloads/notebooks/XKCD_plots.ipynb” response = urllib.request.urlopen(url) # for … Read more
I found this article interesting it explains how to remove the input columns : you have to create a template file named “hidecode.tplx” in same directory as the notebook you want to convert and add those line in it : ((*- extends ‘article.tplx’ -*)) ((* block input_group *)) ((*- if cell.metadata.get(‘nbconvert’, {}).get(‘show_code’, False) -*)) ((( … Read more
From the notebook menu you can save the file directly as a python script. Go to the ‘File’ option of the menu, then select ‘Download as’ and there you would see a ‘Python (.py)’ option. Another option would be to use nbconvert from the command line: jupyter nbconvert –to script ‘my-notebook.ipynb’ Have a look here.
nbconvert allows you to run notebooks with the –execute flag: jupyter nbconvert –execute <notebook> If you want to run a notebook and produce a new notebook, you can add –to notebook: jupyter nbconvert –execute –to notebook <notebook> Or if you want to replace the existing notebook with the new output: jupyter nbconvert –execute –to notebook … Read more