JUPYTER_DATA_DIR and JUPYTER_CONFIG_DIR, like following:
firstly,
unset XDG_RUNTIME_DIR
then
export JUPYTER_CONFIG_DIR=/MY_CONFIG_DIR
export JUPYTER_DATA_DIR=/MY_DATA_DIR
then run
jupyter notebook --generate-configjupyter notebook
the config file really produced in MY_CONFIG_DIR, and some files like nbserver-20374.json produced in runtime dir of MY_DATA_DIR, but I definitely can not find the dirs as custom and files as custom.js, Could anyone help me or tell me where are the files' location?
Thanks in advance.
the config file really produced inMY_CONFIG_DIR, andsome files like nbserver-20374.json produced in runtime dir ofMY_DATA_DIR, but I definitely can not find the dirs as custom and files as custom.js, Could anyone help me or tell me where are the files' location?
--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/VF5RHpncN2k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAOvn4qh%2BkSQ_cdGj6M28ZanoXJTNpEgiTrT7AWYc%3D-5XX_anww%40mail.gmail.com.
On Thu, Jul 28, 2016 at 9:32 AM, 薛亚兰 <nju08e...@gmail.com> wrote:
Thanks Thomas, then I knew how to put the custom.js file, and I tried, it worked, Thanks again.
however, I have another question about the notebook local directory, what parameter we should set to change it, since in my example, I really have no idea why the local directory of mine should be this value,
Serving notebooks from local directory: /tmp/nonroot/jupyter/work
I run the jupyter notebook at this dir /tmp/nonroot/jupyter/, and I already set the c.NotebookApp.notebook_dir to be another value, but the local directory keeps the same, everytime I start a notebook, it is this value /tmp/nonroot/jupyter/work/.Do you have any idea about these above dir associated issues?
Setting c.NotebookApp.notebook_dir should indeed set the default notebook directory. This will be overridden by command-line arguments, e.g.
jupyter notebook /path/to/notebooks
or
jupyter notebook --notebook-dir /path/to/notebooks
You might verify that this config is picked up, by starting the notebook server with --debug.
-MinRK
Thanks in advance!2016-07-28 4:40 GMT+08:00 Thomas Kluyver <tak...@gmail.com>:--On 27 July 2016 at 11:36, <nju08e...@gmail.com> wrote:the config file really produced inMY_CONFIG_DIR, andsome files like nbserver-20374.json produced in runtime dir ofMY_DATA_DIR, but I definitely can not find the dirs as custom and files as custom.js, Could anyone help me or tell me where are the files' location?The custom files are not created automatically, but you can put them at e.g. $JUPYTER_CONFIG_DIR/custom/custom.js
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/VF5RHpncN2k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAOvn4qh%2BkSQ_cdGj6M28ZanoXJTNpEgiTrT7AWYc%3D-5XX_anww%40mail.gmail.com.
--Yalan Xue , SIT Lab of Nanjing UniversityAddress: Nanjing ,China。
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CACNymyti%3DfBzxrU56qTk3fMaeFPYit%3DcwQUoYMve2_%2B9VqqCyg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAHNn8BUJ%2BUz-UYqwb4se0Z_Vux08f-d8xLLKRoVw_q9d8DQpZg%40mail.gmail.com.
Really need support from you, I am blocked by this.the following are the content of my 00-pyspark-setup.py file:
import os
import sys
spark_home = os.environ.get('SPARK_HOME', None)
if not spark_home:
raise ValueError('SPARK_HOME environment variable is not set')
sys.path.insert(0, os.path.join(spark_home, 'python'))
tmpDir = os.path.join(spark_home,'python/lib/')
tmpStr = "py4j"
joinDir = tmpDir
for root, dirs, files in os.walk(tmpDir):
for f in files:
if tmpStr in f:
joinDir = os.path.join(tmpDir,f)
break
if joinDir == tmpDir:
raise ValueError('py4j library is not set in spark_home dir')
sys.path.insert(0, joinDir)
execfile(os.path.join(spark_home, 'python/pyspark/shell.py'))Thanks in advance!
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CACNymysQj1%3DaDTbeoedmYaqsX_sKMdxAKYb1Pbq9MzeUx-Mdig%40mail.gmail.com.