{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/18"}],"enrichment":{"capability":"importnb lets you import Jupyter notebooks as Python modules, making notebook code reusable in other notebooks or scripts via Python's standard import system.","skillfed_tags":["jupyter-integration","code-reuse","notebook-tooling"],"use_cases":["Reuse analysis or utility code written in one notebook across multiple other notebooks without copy-paste","Organize notebook-based projects by importing helper notebooks as modules from a main analysis notebook","Write unit tests in notebooks using pytest, importing the code under test from other notebooks","Run notebooks as command-line scripts with the importnb CLI, treating them like regular Python modules","Build extensible systems where notebooks serve as plugins or configuration modules loaded dynamically"],"what_it_does":"importnb is a Python import hook that lets you treat Jupyter notebook files (.ipynb) as importable Python modules. Instead of manually extracting code from notebooks, you can use standard Python import syntax to load a notebook's code directly. The package translates notebook JSON into executable Python line-for-line, preserving error messages and line numbers. It works with top-level await, supports pytest integration for testing notebooks, and includes a CLI to run notebooks as scripts.\n\nThe package is designed for code reuse in notebook-heavy workflows. It offers customization through parameters like lazy loading, fuzzy name matching (to handle notebooks with non-Python-compatible names), and markdown-to-docstring conversion. It has no required dependencies at runtime and supports Python 3.8, 3.9, 3.10, 3.11, and 3.12 on CPython and PyPy.","worth_installing":"Yes. Low install friction, no required dependencies, active maintenance, and a permissive license make it a safe choice. Install if you work regularly with Jupyter notebooks and want to reuse code across them without manual extraction. The fuzzy finder and pytest integration add real value for notebook-heavy workflows. Not necessary if you rarely share code between notebooks or prefer exporting to .py files."},"id":"importnb","links":{"html":"https://skillfed.io/packages/importnb","md":"https://skillfed.io/packages/importnb.md","pypi":"https://pypi.org/project/importnb/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-11-02","license_spdx":null,"license_treatment":"permissive","name":"importnb","python_support":"supports_current","summary":"import jupyter notebooks as python modules and scripts."},"popularity":{"monthly_downloads":79521,"position":14351,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2023.11.1"}
