How to set env variable in Jupyter notebook

前端 未结 8 895
时光取名叫无心
时光取名叫无心 2020-11-27 13:05

I\'ve a problem that Jupyter can\'t see env variable in bashrc file, is there a way to load these variables in jupyter or add custome variable to it?

8条回答
  •  天命终不由人
    2020-11-27 13:27

    If you need the variable set before you're starting the notebook, the only solution which worked for me was env VARIABLE=$VARIABLE jupyter notebook with export VARIABLE=value in .bashrc.

    In my case tensorflow needs the exported variable for successful importing it in a notebook.

提交回复
热议问题