{"id":18402862,"url":"https://github.com/jancervenka/jupyter-inheritance","last_synced_at":"2026-04-17T15:01:52.471Z","repository":{"id":94373922,"uuid":"453703347","full_name":"jancervenka/jupyter-inheritance","owner":"jancervenka","description":"Inherit Jupyter Kernels","archived":false,"fork":false,"pushed_at":"2022-01-30T14:47:15.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T19:19:26.122Z","etag":null,"topics":["data-science","jupyter","jupyter-notebook","python","scientific-computing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jancervenka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-30T14:31:33.000Z","updated_at":"2022-01-30T15:08:30.000Z","dependencies_parsed_at":"2023-06-25T20:28:27.796Z","dependency_job_id":null,"html_url":"https://github.com/jancervenka/jupyter-inheritance","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jancervenka/jupyter-inheritance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancervenka%2Fjupyter-inheritance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancervenka%2Fjupyter-inheritance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancervenka%2Fjupyter-inheritance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancervenka%2Fjupyter-inheritance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jancervenka","download_url":"https://codeload.github.com/jancervenka/jupyter-inheritance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancervenka%2Fjupyter-inheritance/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266117200,"owners_count":23879027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","jupyter","jupyter-notebook","python","scientific-computing"],"created_at":"2024-11-06T02:43:46.327Z","updated_at":"2026-04-17T15:01:52.398Z","avatar_url":"https://github.com/jancervenka.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jupyter Inheritance\n\n![PyPI](https://badge.fury.io/py/jupyter-inheritance.svg)\n![Test](https://github.com/jancervenka/jupyter-inheritance/actions/workflows/test.yml/badge.svg)\n![Publish](https://github.com/jancervenka/jupyter-inheritance/actions/workflows/publish.yml/badge.svg)\n\n_Inherit Jupyter Kernels_\n\nYou have a notebook `base.ipynb` with a cell \n\n```python\nimport os\nfrom datetime import datetime\n\nclass Test:\n    msg = \"Hey!\"\n\ndef add(x, y):\n    return x + y\n    \ntest = Test()\nnow = datetime.now()\n```\n\nthat has been executed. You can create a new notebook and run the following code:\n\n```python\nfrom jupyter_inheritance import inherit_from\ninherit_from(\"base.ipynb\")\n\nassert add(1, 4) == 5\nassert isinstance(test, Test)\n\nprint(test.msg)\nprint(now)  # same value as `now` in `base.ipynb`!\nprint(os.listdir(\".\"))\n```\n\nThe `base.ipynb` content is not executed from scratch in the new notebook,\nall the existing objects are copied directly from `base.ipynb` kernel. This\nensures that everything stays exactly the same (e.g. timestamps, random numbers,\nresponses from externals APIs).\n\nYou can even do mixins!\n\n```python\nfrom jupyter_inheritance import inherit_from\nfor notebook in (\"base_1.ipynb\", \"base_2.ipynb\"):\n    inherit_from(notebook)\n```\n\n## Installation\n\nJust the usual\n\n```bash\npip install jupyter-inheritance\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjancervenka%2Fjupyter-inheritance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjancervenka%2Fjupyter-inheritance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjancervenka%2Fjupyter-inheritance/lists"}