4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jupyter(hub)のNotebookをユーザー自身で環境変数を変更して使ってもらうための設定

Last updated at Posted at 2017-10-04

タイトルの通りのことをやる。特にJupyterhubでやりたいことが多いと思われる。
(https://github.com/jupyterhub/jupyterhub/issues/227
はぱっと見,それで具体的にどこをどう変えればいいのかが英語, Python弱にはわからなかったので)

tkf さんあざした。

所望のユーザーになって下記のfileを作る (jupyter notebook --generate-config としてもよい)

mkdir ~/.jupyter
nano ~/.jupyter/jupyter_notebook_config.py

下記を jupyter_notebook_confi.py に貼り付ける
下記では LD_LIBRARY_PATHPYTHONPATH を設定している

import os
os.environ['LD_LIBRARY_PATH'] = "どっかのPATH"
os.environ['PYTHONPATH'] = "どっかのPYTHONPATH"

以上。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?