Search code examples
gitgithubjupyter-notebookipythongit-commit

How do I edit an ipynb file on github?


I have a repository on GitHub where I uploaded a Jupyter Notebook file. I created another branch and want to edit the ipynb file.

Clicking the edit button produces an HTML file which is really confusing. I want to edit the ipynb file and run it before pushing the commit. How do I do this, please?


Solution

  • The short answer is no, you can't edit an .ipynb file directly on Github. At least, you can't edit it in the interactive way that you can using Jupyter Notebook. If you know what you are doing, you can edit the JSON, but that doesn't seem like a very good way to do it. Instead, just clone your repo locally to edit it.