Skip to content

Differentiate Jupyter

Raynard Jon (Zhang,Xiaochen) edited this page Nov 19, 2021 · 2 revisions

Jupyter or not jupyter

Now we have a standardized way to differentiate 2 environments 🪐

from unpackai.utils import IS_JUPYTER
if IS_JUPYTER:
    do_jupyter_only_stuff()

It will detect jupyter notebook and colab environment

Clone this wiki locally