Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identifying current notebook #11

Open
callmephilip opened this issue Dec 19, 2024 · 3 comments
Open

Identifying current notebook #11

callmephilip opened this issue Dec 19, 2024 · 3 comments

Comments

@callmephilip
Copy link
Contributor

I asked this over on Deno's discord earlier this week but without much luck:

Is there a way to get current full path to the current notebook from within a ts cell when running deno kernel in Jupyter? import.meta stuff does not work since it's not a module

@rgbkrk
Copy link
Owner

rgbkrk commented Dec 21, 2024

There is no way due to how the jupyter protocol works.

@callmephilip
Copy link
Contributor Author

what about some sort of API to access current execution context? i want to be able to inspect all the cells in the current notebook

@rgbkrk
Copy link
Owner

rgbkrk commented Dec 26, 2024

Start by digging into Deno's source code for the jupyter implementation in these files:

Right now only the current execution request is tracked, there's no storage of all the previous runs (like IPython has with In and Out arrays).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants