Giter Site home page Giter Site logo

Comments (2)

tcNickolas avatar tcNickolas commented on May 25, 2024

Hmm, that's interesting. I was sure it's a side effect of different versions or different tools that people use to edit the notebooks, rather than something specific to the content of the notebooks. I've noticed before that people editing notebooks would introduce the cell ids, but once I edit them on my setup, the ids would go away again. The BasicGates workbook from your example does not have cell ids despite being on version 4.5, because I was the last person to edit it and my installed version of nbformat is 4.4.0.

That being said, I'm happy to test this hypothesis by downgrading the version in the notebooks to 4.4 :-) It shouldn't break anything - I think everybody can edit the notebooks with any version of tools installed regardless of the version in the notebooks.

from quantumkatas.

Manvi-Agrawal avatar Manvi-Agrawal commented on May 25, 2024

Yes @tcNickolas, you are right. Interestingly, my local machine is on nbformat 5.4. My guess is that jupyter does the following:

  • For brand new notebooks, jupyter stores the local version of nbformat in notebook.
  • For notebboks that already exists, it does not oveeride the versions but tries to use it as a baseline
    • for older notebooks <4.5, it does not generate cell id
    • for notebooks that specify nbformat>4.5, if locally we have nbformat >= 4.5 with no ids in notebook, it tries to generate ids.
    • for notebooks that specify nbformat>4.5, if locally we have nbformat <4.5 then it removes the generated ids because it does not recognise that field.

This might be the reason for the disperancy. I have validated locally that after this change, I am not facing the issue. So, hopefully other contributors should also not face this issues post fix. Fingers crossed. :-)

Here is the PR with nbformat version downgraded to 4.4 as per your suggestion : #825

from quantumkatas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.