This plugin allows you to view and edit Jupyter Notebooks (.ipynb files) directly within Obsidian (https://obsidian.md).
- View Jupyter notebooks with proper cell formatting
- Support for both code and markdown cells
- Interactive cell editing capabilities
- Syntax highlighting for Python code
- Display of cell outputs including:
- Text output
- HTML output (sanitized)
- Images (PNG/JPEG)
- Error messages with traceback
- Collapsible output cells
- Line numbers for code cells (not good yet)
- Integration with Obsidian's internal links
- Open Settings in Obsidian
- Navigate to Community Plugins and disable Safe Mode
- Click Browse and search for "Jupyter Notebook Viewer"
- Install the plugin and enable it
- Download
main.js
,styles.css
, andmanifest.json
from the latest release - Create a folder
VaultFolder/.obsidian/plugins/obsidian-jupyter-notebook-plugin/
- Copy the downloaded files into this folder
- Restart Obsidian and enable the plugin in Settings > Community Plugins
- Place your
.ipynb
files in your Obsidian vault - Click on any
.ipynb
file to open it in the notebook viewer - Use the "Edit" button on each cell to modify its contents
- Click "Save" to save your changes or "Cancel" to discard them
- Toggle output visibility using the dropdown arrow
Note: This plugin does not run the notebook cells. It only allows you to edit and view the notebook cells and outputs.
- NodeJS (v16 or higher)
- npm or yarn
- Clone this repository
- Run
npm install
oryarn
to install dependencies - Run
npm run dev
to start compilation in watch mode
npm run build
creates a production build- Files will be generated in the root directory:
main.js
styles.css
manifest.json
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- cursor for the AI code assistant
- all the code is generated by cursor, I just tell it what I want to do