GithubHelp home page GithubHelp logo

Cell caching about nbclient HOT 6 OPEN

JanPalasek avatar JanPalasek commented on August 30, 2024
Cell caching

from nbclient.

Comments (6)

davidbrochart avatar davidbrochart commented on August 30, 2024 1

It uses the ast module, and it assumes that an output is a variable that is assigned to, and an input is any variable that is accessed.

from nbclient.

davidbrochart avatar davidbrochart commented on August 30, 2024

This is something that can be solved at the kernel level, and akernel tries to support that.
Is it what you have in mind?

from nbclient.

JanPalasek avatar JanPalasek commented on August 30, 2024

I think so. Im curious how input inference is reliable. Seems like a task that would need a python expression parser.

from nbclient.

JanPalasek avatar JanPalasek commented on August 30, 2024

@davidbrochart That's awesome! Do you think it would be possible to integrate it to ipykernel directly? So everyone could benefit from this functionality? Imho a lot of Jupyter projects would benefit from that.

from nbclient.

davidbrochart avatar davidbrochart commented on August 30, 2024

That's awesome!

Thanks!

Do you think it would be possible to integrate it to ipykernel directly?

It's not that easy, ipykernel is the main Python kernel and should be very stable. But it is worth trying, do you want to open an issue there and start a discussion about it?

from nbclient.

JanPalasek avatar JanPalasek commented on August 30, 2024

That's awesome!

Thanks!

Do you think it would be possible to integrate it to ipykernel directly?

It's not that easy, ipykernel is the main Python kernel and should be very stable. But it is worth trying, do you want to open an issue there and start a discussion about it?

Ye, that would be great. If that fails, there might be a backup plan for caching on a bit higher level. I suggested something here: executablebooks/jupyter-cache#89 . Tho it's probably not as good as your implementation since it's higher above the kernel.

from nbclient.

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.