{"id":15899006,"url":"https://github.com/danporter/jupyter_editor","last_synced_at":"2025-04-02T19:14:24.576Z","repository":{"id":163825315,"uuid":"235130224","full_name":"DanPorter/jupyter_editor","owner":"DanPorter","description":"Python code to create, open and edit jupyter notebooks remotely.","archived":false,"fork":false,"pushed_at":"2021-04-21T11:45:12.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T09:45:37.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanPorter.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":"2020-01-20T15:13:04.000Z","updated_at":"2021-04-21T11:45:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0621415-4d6b-4af4-9e96-d1605febe300","html_url":"https://github.com/DanPorter/jupyter_editor","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/DanPorter%2Fjupyter_editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanPorter%2Fjupyter_editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanPorter%2Fjupyter_editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanPorter%2Fjupyter_editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanPorter","download_url":"https://codeload.github.com/DanPorter/jupyter_editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246875909,"owners_count":20848049,"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":"2024-10-06T10:10:33.537Z","updated_at":"2025-04-02T19:14:24.552Z","avatar_url":"https://github.com/DanPorter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jupyter Editor\nCreate, open and edit jupyter notebook files.\n\nBy Dan Porter, Diamond Light Source Ltd. 2020\n\n### What is this?\njupyter_editor load Jupyter notebook **.ipynb* files (json) and can edit the contents:\n - Add new python cells\n - Add new markdown cells\n - Edit source of current cells\n - append to current file or create new *.ipynb files\n - give cells a hidden reference so the correct cell will always be changed.\n\n**Remember:**\n - Only the .ipynb file is changed, it does not update the jupyter server.\n - Save the Jupyter notebook before loading the current file\n - Refresh the Jupyter notebook page after updating the file\n\n### Usage:\n```commandline\nipython -i -m jupyter_editor notebook.ipynb\n```\nOr use the GUI:\n```commandline\nipython -m jupyer_editor gui\n```\n \n \n### Example:\n```python\nimport jupyter_editor as je\n\n# Create new notebook/ open notebook\nnotebook = je.NoteBook(r\"~/autoNotebook.ipynb\")\nprint(notebook)\n\n# Add code cell\nnotebook.append_code(\"#This is some new code\\nimport matplotlib.pyplot as plt\\nimport numpy as np\\n\\n\", name='imports')\nnotebook.save() # this will overwrite the current notebook file, any unsaved changes on the jupyter server will be lost.\n# Now refresh jupyter notebook in the browser to see changes\n\n\n# Edit notebook using 'name' tag\nnotebook.edit_by_name('imports', 'import sys, os\\n')\nnotebook.save()\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanporter%2Fjupyter_editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanporter%2Fjupyter_editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanporter%2Fjupyter_editor/lists"}