holoviz / pyviz_comms

Bidirectional communication for the HoloViz ecosystem
BSD 3-Clause "New" or "Revised" License
32 stars 15 forks source link

Add environment variable at startup #123

Open hoxbro opened 4 months ago

hoxbro commented 4 months ago

This way, we can check in a notebook if the environment variable is set and give a warning if it is not.

image

Also available in the jupyter terminal. image

import os

os.environ.get("_PYVIZ_COMMS_INSTALLED")