4

Is there a way to directly upload ipython notebooks to github. my current workflow is:

1) download the ipynb

2) open in gedit, copy

3) go to gist at github, paste, copy url

4) go to nbviewer.ipython.org, paste

2

1 Answer 1

4

You could try the following:

  1. Open a github account and remember your username
  2. Create a public project in your accounts and remember the project_name
  3. git clone the project to a local directory
  4. cd to the same directory
  5. ipython notebook
  6. Develop and test your notebook, remembering to save before exit
  7. git add the name of your notebook
  8. git commit -m"Description of your change " to remember what the change was
  9. git push
  10. Go to http://nbviewer.ipython.org/ and enter username/project_name
  11. Repeat steps 5..10 as necessary

Of course if you are just trying to convert your local or saved notebook to a webpage then just:

ipython nbconvert nbname.ipynb

On your command line.

If, however, you are looking at other peoples, public, notebooks then there are a couple of browser extensions here that can open them in the online nbviewer in a single click.

Not the answer you're looking for? Browse other questions tagged or ask your own question.