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

Determine what version of jupyter notebook the code is currently being run in #93

Open
paddymul opened this issue Nov 17, 2023 · 1 comment

Comments

@paddymul
Copy link

Many times users don't know if they are running in a Jupyter Notebook, Jupyter Lab, Google Colab, or VSCode notebook. There are many other notebook environments. All with slight incompatibilities that make it difficult to debug for notebook extension maintainers.

I wrote a convenience function for my library that does this. Do you think this would be useful for watermark?
https://github.com/paddymul/buckaroo/blob/main/buckaroo/__init__.py#L50-L67

@rasbt
Copy link
Owner

rasbt commented Dec 4, 2023

Thanks for sharing. This looks nice and elegant. And yes, I think this could indeed be a useful addition. Perhaps under a --jupyter_env flag.

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

No branches or pull requests

2 participants