nbgrader with TLJH

56 views
Skip to first unread message

vishwesh shrimali

unread,
Jan 11, 2019, 4:17:52 AM1/11/19
to Project Jupyter
Hi everyone!

I recently launched a TLJH server (sincere thanks to the developers). I have managed to install kernels for multiple languages - C++ (Xeus-Cling), Python, R. I now want to use nbgrader to develop assignments in all the 3 languages. I logged in to the hub from the admin account, opened the terminal and used the following commands:

sudo jupyter nbextension install --sys-prefix --py nbgrader --overwrite
sudo jupyter nbextension enable --sys-prefix --py nbgrader
sudo jupyter serverextension enable --sys-prefix --py nbgrader
This in turn enabled the formgrader extension and the assignment extension. First, when I try to click the formgrader extension, I get the 404: Page Not Found error. 
I then used the following command to create a sample course:

nbgrader quickstart course_id

Still, the situation is the same. Second, when I login using a student account, I am able to see the formgrader and all the options (which I don't think a student should be allowed to see). Also, when the student clicks on the Assignment option, they get the following errors:

Traceback (most recent call last): File "/opt/tljh/user/lib/python3.6/site-packages/nbgrader/server_extensions/assignment_list/handlers.py", line 65, in list_released_assignments assignments = lister.start() File "/opt/tljh/user/lib/python3.6/site-packages/nbgrader/exchange/list.py", line 129, in start super(ExchangeList, self).start() File "/opt/tljh/user/lib/python3.6/site-packages/nbgrader/exchange/exchange.py", line 122, in start self.ensure_root() File "/opt/tljh/user/lib/python3.6/site-packages/nbgrader/exchange/exchange.py", line 100, in ensure_root self.fail("Unwritable directory, please contact your instructor: {}".format(self.root)) File "/opt/tljh/user/lib/python3.6/site-packages/nbgrader/exchange/exchange.py", line 78, in fail raise ExchangeError(msg) nbgrader.exchange.exchange.ExchangeError: Unwritable directory, please contact your instructor: /srv/nbgrader/exchange
Am I missing something? Can someone point me in the right direction?

Thanks in advance

Jessica B. Hamrick

unread,
Jan 11, 2019, 5:20:58 AM1/11/19
to Project Jupyter
Hi Vishwesh,

Setting up nbgrader on JupyterHub is a bit more complicated---see https://nbgrader.readthedocs.io/en/master/configuration/jupyterhub_config.html for more details on getting it setup on JupyterHub. Hope that helps!

Cheers,
Jess


--
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/bbdcea07-955a-406c-b4f4-564eba28c9dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alvin Huff

unread,
Apr 19, 2019, 12:41:46 PM4/19/19
to Project Jupyter
look at the nbgrader docs around "philosophy and the approach" that will show you the folder structure.  That structure is not created by default in jupyterhub when you install nbgrader.  I believe at the miniumum you need the source folder and a folder that is identified in the nbgrader_config.py file as the course id.  If you run "nbgrader quickstart <some course id >" that will generate the folder minimum folder structure as an example to follow.

cheers,

alvin 
Reply all
Reply to author
Forward
0 new messages