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.
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