Jupyter Notebook integration for Obsidian?

Indeed, it would be great.

Currently, if you put an ipynb file into the obsidian explorer you get the json-like content. It would be great if Obsidian could preview the content like Jupyter!

1 Like


be aware of this one GitHub - Exr0nProjects/obsidian-sage: Create interactive SageMath cells in Obsidian
I’ve just tried it’s working

1 Like

Hey guys,

It would be amazing if we could have a preview and interact with Jupyter’s notebook. I’m just starting learning datascience and it would help a lot.

I’ve found a way to preview Jupyter’s notebook in obsidian if you want to try.

You need to:

  • Create a public repo in github and put into it your notebooks
  • Go on https://mybinder.org/ and put the link of your github repo.
  • iframe the content in your Obsidian note.

You can’t run the code (not working through iframe) or edit but you can at least read it (you can actually edit, but it will not be saved). And you need to have an internet connection to load it.

Look like this:


Hope it helps!

1 Like

The obsidian-jupyter plugin by @tillahoffmann works great for me. It’s not the right setup as a dev environment, but it’s good for noting snippets and testing the snippets, noting outputs/plots etc all within the obsidian notes.
Thanks @tillahoffmann for creating it. :slight_smile: GitHub - tillahoffmann/obsidian-jupyter

1 Like

I came across an important restriction when using this plugin.
State is not maintained across cells, Variables initialized or modules imported in previous cells are not available to later cells.

It might be good for running self contained snippets on Obsidian, but not for working across multiple cells.

I hope I’m not using the plugin in any wrong way.

Please Couid you provide steps to activate Jupyter Plugin on windows?

I think the ‘Execute Code’ plugin does exactly what is desired here. It also does a lot more as well!

State is maintained in ‘Read’ mode, but not in ‘Edit’ mode. If you are testing the code you are actually writing in Edit mode, Ctrl + click the View button on the top right, and open the same panel in a ‘Read’ mode tab. Now you will be able to run what you are writing. Easy, make your updates in ‘Edit’-mode tab, run your code in ‘View’-mode tab.

While all the above-proposed solutions are great, I think what a lot of people might be after is support for the actual .ipynb file format. This would allow for developing code in a full-featured IDE and also be able to view everything in obsidian (+ added bonus would be to be able to run the cells too). Even better, being able to add wikilink support in a jupyter notebook to other parts of the vault would be amazing