{"id":23900,"library":"ipynb","title":"ipynb","description":"Package / Module importer for importing code from Jupyter Notebook files (.ipynb). Currently at version 0.5.1, with low release cadence. Allows importing Jupyter notebooks as Python modules.","status":"active","version":"0.5.1","language":"python","source_language":"en","source_url":"https://github.com/yuvipanda/ipynb","tags":["jupyter","notebook","import","ipynb","module"],"install":[{"cmd":"pip install ipynb","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"ipynb","correct":"import ipynb"},{"note":"","wrong":"","symbol":"load_notebook_module","correct":"from ipynb import load_notebook_module"}],"quickstart":{"code":"import ipynb\n# Enable notebook importing\nipynb.enable()\nimport my_notebook  # imports my_notebook.ipynb\n","lang":"python","description":"Enable importing .ipynb files as modules."},"warnings":[{"fix":"Only enable when needed, or use `ipynb.load_notebook_module` directly.","message":"The `ipynb` package uses sys.path hooks and may interfere with regular imports if not used carefully.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure your .ipynb files are importable by placing them in your current working directory or adjusting sys.path.","message":"Notebook files must be in the same directory or on sys.path.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install ipynb`.","cause":"ipynb is not installed.","error":"ModuleNotFoundError: No module named 'ipynb'"},{"fix":"Use `from ipynb import load_notebook_module` (correct) or check version.","cause":"The function does not exist in older versions or typo in name.","error":"ImportError: cannot import name 'load_notebook_module' from 'ipynb'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}