qutip / qutip-notebooks

A collection of IPython notebooks using QuTiP: examples, tutorials, development test, etc.
BSD 3-Clause "New" or "Revised" License
238 stars 236 forks source link

Moving to jupyter? #26

Closed ajgpitch closed 5 years ago

ajgpitch commented 8 years ago

@cgranade @nonhermitian @jrjohansson Should I avoiding converting existing notebooks to version 4 (jupyter) format? I see that they run fine on the nb server. However, someone I was working with found that they could not open my new notebook because they were still on ipython nb v3. Should we expect users to upgrade to v4?

cgranade commented 8 years ago

I think it makes sense to hold back updating as long as is reasonable, esp. given Windows install hassles.

ajgpitch commented 8 years ago

Would I be correct in thinking the best way to achieve this is to set up an anaconda env with an old version of ipython notebook. I have not seen any way to save a backwards compatible notebook from within jupyter

ajgpitch commented 8 years ago

Ok, well after spending some time setting up a new env for editing notebooks, I found that you need a pretty old version of Ipython before is saves in v3 nb format. The IPython people seem pretty keen for people to the later version. I have decided therefore that I will continue editing in jupyter, but then use $ ipython nbconvert --to notebook --nbformat 3 to create a nb v3 format copy. This way the website will point to a the v4 nb, but there will be a copy that anyone still using old format can download from here. I hope that is satisfactory.

ajgpitch commented 8 years ago

The PR #31 adds instructions on how to downgrade v4 notebooks. I have moved the v3 copies to a subdir, as I think it was a bit messy. However I realise that this will cause those with linked images to fail. We could of course copy all the images, however this is messy again. Do we think that the instructions on downgrading are enough? I would prefer not to have the nbv3 copies there at all.

nathanshammah commented 5 years ago

This issue seems taken care of by #68.