Code Monkey home page Code Monkey logo

Comments (4)

takluyver avatar takluyver commented on July 23, 2024

Hi Vincent!

That's an interesting one. %load and similar commands like %recall break the usual execution model by modifying the input. I guess they might also not do the expected thing if you 'run all' in the notebook.

It's easy enough to add a special case for IPython's %load magic and work around it - looking at asekuro, that's what you've done. Maybe %load is common enough that it makes sense to do that in nbval as well. But I'm not super keen on that.

Perhaps a better way to do it would be to check the execute_reply payloads for a set_next_input payload, and if one is found, run the code from that without checking its output (since there's presumably no equivalent cell in the reference notebook).

from nbval.

koaning avatar koaning commented on July 23, 2024

from nbval.

takluyver avatar takluyver commented on July 23, 2024

That deprecation is somewhat theoretical. They're kind of ugly and we want to redesign how that information is sent at some point, but they work, and replacing them is not high on anyone's priority list. So I think it would be reasonable to check them in nbval if you want.

from nbval.

koaning avatar koaning commented on July 23, 2024

Yeah we've internally decided that we want to stop using asekuro. Instead we'd love to add this feature to this project. I do want to double check: is this considered deprecated or not?

from nbval.

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.