jupyter-widgets / tutorial

A tutorial for widgets
BSD 3-Clause "New" or "Revised" License
391 stars 160 forks source link

Way to access the environment variables inside my custom widget? #212

Open gillsimu opened 1 year ago

gillsimu commented 1 year ago

I have to access the environment variables defined inside my custom widget code, is there a way to do so without passing the arguments as a parameter?

mwcraig commented 1 year ago

@gillsimu -- you will get a more complete answer if you post your question at the Jupyter Community Forum, but from Python you should be able to use os.environ or os.getenv.