Comments (6)
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.
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.
I think so. Im curious how input inference is reliable. Seems like a task that would need a python expression parser.
from nbclient.
@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.
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.
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)
- 0.6.1: sphinx faiils because missing file HOT 2
- Background Python process after running tests
- How to reuse exsisting kernel? HOT 4
- Test failure in ipywidgets 8 HOT 2
- nbclient 0.6.6 doesn't report cell magic error properly
- just_run does not close event loop it creates HOT 2
- Project dependencies may have API risk issues HOT 2
- 0.7.1: pytest is failing because missing ` jupyter_core.utils.ensure_async` HOT 11
- jupyter_core version constraint is invalid HOT 3
- nbclient >= 0.7.1 raises ImportError when trying to open a notebook HOT 1
- AttributeError: 'KernelManager' object has no attribute 'cleanup' HOT 5
- `NotebookClient.wait_for_reply` hangs with jupyter_client 8 or later HOT 4
- Is it possible to programmatically inspect variables of a NotebookNode? HOT 5
- output of type `stream` is split over multiple cells HOT 10
- execute_cell running error HOT 4
- ipykernel.comm.Comm is deprecated HOT 3
- Calling `jupyter-execute` runs the notebook but doesn't save it HOT 5
- when cell contains ipywidget , execute cell will sometimes blocks HOT 1
- Executing notebooks with %load and other IPython magic commands HOT 3
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 nbclient.