Comments (4)
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.
from nbval.
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.
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)
- drop support for Python 2.7/3.5 HOT 3
- Is it possible to mock an object globally for all notebooks, eg with conftest.py? HOT 1
- Test failure with matplotlib 3.4: to_png deprecated HOT 2
- Documentation about skipping certain output types do not work
- Pytest fails to run on a seemingly innocent unit test
- Cell numbers are off by 1 compared to what you see in the notebook
- New release please HOT 2
- Testing structural similarity rather than string identity HOT 2
- When using Sanitizer, Special Chars on notebook are not escaped
- new pytest version throws deprecation warning HOT 3
- 0.9.6: sphinx warnings
- 0.9.6: pytest is failing in few units HOT 3
- CI tests are failing HOT 1
- Many tests fail on FreeBSD HOT 1
- New release? HOT 1
- 0.10.0 release captures output even when ';' is present HOT 3
- javascript not supported? HOT 2
- 0.10.0: documentation build fails
- pytest 8.1.0 breaks nbval 0.10.0 HOT 1
- `--sanitize-with` option seems to be behaving weirdly with "newly computed (test) output"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbval.