{"id":28469754,"url":"https://github.com/answerdotai/meta-nbextension","last_synced_at":"2025-07-11T07:03:59.469Z","repository":{"id":231972439,"uuid":"783151627","full_name":"AnswerDotAI/meta-nbextension","owner":"AnswerDotAI","description":"Access to current notebook and cell in an nbclassic notebook","archived":false,"fork":false,"pushed_at":"2024-04-13T12:16:49.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-30T15:59:26.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnswerDotAI.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":"2024-04-07T04:33:06.000Z","updated_at":"2024-07-02T02:16:45.000Z","dependencies_parsed_at":"2024-04-07T04:55:25.383Z","dependency_job_id":null,"html_url":"https://github.com/AnswerDotAI/meta-nbextension","commit_stats":null,"previous_names":["answerdotai/meta-nbextension"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AnswerDotAI/meta-nbextension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Fmeta-nbextension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Fmeta-nbextension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Fmeta-nbextension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Fmeta-nbextension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnswerDotAI","download_url":"https://codeload.github.com/AnswerDotAI/meta-nbextension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Fmeta-nbextension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262998400,"owners_count":23397260,"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":[],"created_at":"2025-06-07T09:08:31.480Z","updated_at":"2025-07-11T07:03:59.461Z","avatar_url":"https://github.com/AnswerDotAI.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# meta-nbextension\n\nThis is an nbextension for Jupyter Notebook (nbclassic) v6. It doesn't work for the latest v7 which is a skin of\nJupyter Lab.\n\nAfter installing it, all notebooks will have an `nbmeta` variable automatically created and kept updated, which\ncontains the current cell index and notebook name. This has only been tested inside regular notebook execution; it\nmight not work in other contexts, such as nbconvert.\n\nIn addition, the `set_next_input` js payload is modified to take an optional `ctype` argument, for the cell type to\ncreate (i.e. 'code' or 'markdown'). This function can be used to access this functionality:\n\n```python\ndef set_next_cell(text, code=True, replace=False, execute=False):\n    if not code: execute=True\n    ip.payload_manager.write_payload(dict(\n        source='set_next_input',\n        replace=replace, execute=execute,\n        text=text, ctype='code' if code else 'markdown'))\n```\n\n## Installation\n\n```\npip install meta-nbextension\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanswerdotai%2Fmeta-nbextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanswerdotai%2Fmeta-nbextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanswerdotai%2Fmeta-nbextension/lists"}