{"id":13856849,"url":"https://github.com/davidbrochart/subnotebook","last_synced_at":"2025-03-21T08:31:09.349Z","repository":{"id":88094187,"uuid":"251748955","full_name":"davidbrochart/subnotebook","owner":"davidbrochart","description":"Call Jupyter notebooks as Python functions","archived":false,"fork":false,"pushed_at":"2024-12-16T22:10:06.000Z","size":83,"stargazers_count":55,"open_issues_count":3,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-14T09:17:18.717Z","etag":null,"topics":["jupyter-notebook","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidbrochart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-03-31T21:40:02.000Z","updated_at":"2025-02-01T18:56:55.000Z","dependencies_parsed_at":"2023-05-18T07:01:08.814Z","dependency_job_id":null,"html_url":"https://github.com/davidbrochart/subnotebook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbrochart%2Fsubnotebook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbrochart%2Fsubnotebook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbrochart%2Fsubnotebook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbrochart%2Fsubnotebook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidbrochart","download_url":"https://codeload.github.com/davidbrochart/subnotebook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244122459,"owners_count":20401428,"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":["jupyter-notebook","python"],"created_at":"2024-08-05T03:01:15.866Z","updated_at":"2025-03-21T08:31:08.878Z","avatar_url":"https://github.com/davidbrochart.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Subnotebook\n\nRun a notebook as you would call a Python function.\n\nTwo modes are currently supported:\n\n- An in-process mode, where the subnotebook is executed in the same kernel your\ninterpreter is running in (but in a different name space). This allows to pass\nparameters and get results back, including widgets.\n```python\nfrom subnotebook import run_nb\n\nab, ba, slider, output = run_nb('sub_notebook.ipynb', a='c', b='d')\n```\n\n- An out-of-process mode, where the subnotebook is executed and served using\n[Voila](https://voila.readthedocs.io), and included in the main notebook as an\nIFrame. This mode only allows to display the outputs of the subnotebook, which\nis useful for offloading the main notebook but also to offer a UI to resources\nyou would not have access to, such as big data or protected data.\n```python\nfrom subnotebook import display_nb\n\ndisplay_nb('widget_notebook.ipynb')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidbrochart%2Fsubnotebook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidbrochart%2Fsubnotebook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidbrochart%2Fsubnotebook/lists"}