NickName:DChaps Ask DateTime:2022-08-09T08:43:11 Unset environment variable in Jupyter Notebook How do I unset an environmental variable in Jupyter Notebook? I set the variables using a .env file that is loaded by: from dotenv import load_dotenv load_dotenv('./.env') After changing the .env file and rerunning the import/load does the variable stays the same (the old version). I tried setting the environment variable to None using the magic command but it's literally now None instead of blank. I didnt see any unset command at https://ipython.readthedocs.io/en/stable/interactive/magics.html Any way to accomplish this? Copyright Notice:Content Author:「DChaps」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.Link to original article:https://stackoverflow.com/questions/73285390/unset-environment-variable-in-jupyter-notebook Answers