A plugin for Yazi file manager that enables preview of Jupyter Notebook (.ipynb) files by converting them to markdown and rendering them in the preview pane.
- Install Rust toolchain:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install ipynb-to-md converter:
cargo install ipynb-to-md
- Install mdcat for markdown rendering:
cargo install mdcat
- Ensure you place the plugin in
~/.config/yazi/plugins/
directory
git clone https://github.com/diaakasem/ipynb.yazi ~/.config/yazi/plugins/ipynb.yazi
- Add the following to your Yazi config file (
~/.config/yazi/yaiz.toml
):
[plugin]
prepend_previewers = [
{ name = "*ipynb", run = "ipynb" },
]
Once installed, Yazi will automatically preview .ipynb files using this plugin. Simply navigate to a Jupyter Notebook file and the preview pane will show the rendered notebook content.
MIT