{"id":15135946,"url":"https://github.com/valentinlibouton/invalid-notebook-solver","last_synced_at":"2026-03-05T01:32:25.480Z","repository":{"id":239771528,"uuid":"800517398","full_name":"ValentinLibouton/Invalid-Notebook-Solver","owner":"ValentinLibouton","description":"Invalid-Notebook-Solver is a Python tool designed to clean and rebuild Jupyter notebooks to ensure they are valid for platforms like GitHub. This tool addresses common issues with notebook compatibility and provides functionalities to add new code and markdown cells, and to save and rebuild notebooks while preserving cell outputs.","archived":false,"fork":false,"pushed_at":"2024-05-14T14:09:16.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T10:48:17.700Z","etag":null,"topics":["github","invalid","jupyter-notebook","notebook","pycharm","pycharm-ide"],"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/ValentinLibouton.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":"2024-05-14T13:38:51.000Z","updated_at":"2024-12-30T22:29:41.000Z","dependencies_parsed_at":"2024-05-14T15:03:54.802Z","dependency_job_id":"1eb4334a-706d-41b4-b3e1-ec05f2caf03f","html_url":"https://github.com/ValentinLibouton/Invalid-Notebook-Solver","commit_stats":null,"previous_names":["valentinlibouton/invalid-notebook-solver"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinLibouton%2FInvalid-Notebook-Solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinLibouton%2FInvalid-Notebook-Solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinLibouton%2FInvalid-Notebook-Solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinLibouton%2FInvalid-Notebook-Solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ValentinLibouton","download_url":"https://codeload.github.com/ValentinLibouton/Invalid-Notebook-Solver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241202138,"owners_count":19926564,"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":["github","invalid","jupyter-notebook","notebook","pycharm","pycharm-ide"],"created_at":"2024-09-26T06:02:19.277Z","updated_at":"2026-03-05T01:32:25.441Z","avatar_url":"https://github.com/ValentinLibouton.png","language":"Python","readme":"# Invalid-Notebook-Solver\nInvalid-Notebook-Solver is a Python tool designed to clean and rebuild Jupyter notebooks to ensure they are valid for platforms like GitHub. This tool addresses common issues with notebook compatibility and provides functionalities to add new code and markdown cells, and to save and rebuild notebooks while preserving cell outputs.\n\n![Error](./images/error.png)\n## Features\n- Open and Load Notebooks: Load Jupyter notebooks from a specified file path.\n- Add Code Cells: Add new code cells with specified content to the notebook.\n- Add Markdown Cells: Add new markdown cells with specified content to the notebook.\n- Save Notebooks: Save the current state of the notebook to a specified file path.\n- Rebuild Notebooks: Rebuild notebooks to ensure all cells and outputs are correctly formatted and compatible with GitHub.\n\n## Usage\n```python\nfrom notebook_editor import NotebookEditor\n\n# Initialize notebook editor with original notebook path\nnb_editor = NotebookEditor(file_path=\"path/to/original_notebook.ipynb\")\n\n# Add a code cell\nnb_editor.add_cell_code(content=\"print('This is a new code cell.')\")\n\n# Add a markdown cell\nnb_editor.add_cell_markdown(content=\"This is a new markdown cell.\")\n\n# Save the modified notebook\nnb_editor.save_notebook()\n\n# Rebuild the notebook in a valid format for GitHub\nnb_editor.rebuild_notebook(new_file_path=\"path/to/rebuilt_notebook.ipynb\")\n```\n\n## Installation\n```bash\ngit clone git@github.com:ValentinLibouton/Invalid-Notebook-Solver.git\ncd Invalid-Notebook-Solver\npip install -r requirements.txt\n```\n\n## Requirements\n- nbformat\n\n## License\nThis project is licensed under the MIT License.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentinlibouton%2Finvalid-notebook-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalentinlibouton%2Finvalid-notebook-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentinlibouton%2Finvalid-notebook-solver/lists"}