Jupyter Notebook

AI Tools

To embed a Jupyter Notebook to a page, you can do so with Custom HTML, or using GitHub Code if the notebook is hosted on GitHub.

How to Embed a Jupyter Notebook using Custom HTML?

To embed a Jupyter Notebook:

  1. Export it to HTML. To export it, after you run your notebook, run the following command in your workspace:

import os os.system('jupyter nbconvert --to html yourNotebook.ipynb')
  1. An HTML version of your Jupyter Notebook would be generated in the workspace. Download the HTML file locally.

  2. Open the HTML file and copy its contents.

  3. Create a new Custom HTML block in the page where you want to embed a Jupyter Notebook.

  4. Paste the HTML into it.

Example


  Last updated
On This Page