Get source and hierarchy of nbgrader_config.py files #1833
-
Hi everyone, After thoroughly reviewing the nbgrader and JupyterHub documentation, I successfully set up nbgrader on a new Digital Ocean instance. However, I'm unable to replicate this on our local server. I suspect that residual settings from a prior installation might be causing the issue. It seems that nbgrader might not be accessing the correct nbgrader_config.py file. Output from config:
/home/jmbathe/.jupyter
/home/jmbathe/.local/etc/jupyter
/opt/tljh/user/etc/jupyter
/usr/local/etc/jupyter
/etc/jupyter
data:
/home/jmbathe/.local/share/jupyter
/opt/tljh/user/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter
runtime:
/home/jmbathe/.local/share/jupyter/runtime Current minimal config file c = get_config()
c.GenerateConfigApp.logfile = "/usr/local/share/jupyter/nbgrader.log" How can I determine which configuration files nbgrader reads and the sequence in which they're read? I attempted to reset them by specifying only a log file location and copied this configuration to all folder on the Jupyter path, but I couldn't even get the error log to function. Thank you in advance! Best, Joe |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @joebathelt, nbgrader is designed as a stand-alone tool working from the command line. But nbgrader also ships with some Jupyter extensions to connect the command line only nbgrader to JupyterJub/JupyterLab. Thus, nbgrader (afaik) does not care about config paths of JupyterHub. If used with JupyterHub there should be three Best regards, Jens |
Beta Was this translation helpful? Give feedback.
-
Had a look at my setup: There are only two
The second
Two config files should suffice as long as we have only one course per formgrader service. Never used one formgrader for multiple courses, but seems to be possible according to the docs. Jens |
Beta Was this translation helpful? Give feedback.
Had a look at my setup: There are only two
nbgrader_config.py
. A global one in/etc/jupyter/nbgrader_config.py
:The second
nbgrader_config.py
is per course. For each course there is a separate user account running the formgrader service for JupyterHub. So for coursetest_course
we have in/home/grader_test_course/.jupyter/nbgrader_config.py
: