standalone nbgrader integration with formgrader

229 views
Skip to first unread message

Roland DePratti

unread,
Jul 26, 2017, 9:32:59 AM7/26/17
to Teaching with Jupyter Notebooks
Hi,

I am using Jupyter notebooks for some Python instruction in a Big Data programming class.

I am trying to incorporate nbgrader. I am not using Jupyter Hub, so am exploring a standalone setup - where I manage assignment through an LMS and move the submissions to nbgrader on my machine myself.

I am trying to understand how formgrader discoveries the location of my course directory.

Is there a config file, like nbgrader_config.py, or a environment variable that Jupyter and formgrader can access that I have not read about yet?

I have read The philosophy and the approach docs, but everything starts with course_directory. How is the full path found?

I am finding when I get into formgrader in Jupyter, the assignment screens are failing with 404s.

Also, on a similar vain, how are multiple courses managed within nbgrader (how would it discover and have me select a course to assign work).

I have a sense that I am not understanding something very simple.

Thanks.

rd
.

Jessica B. Hamrick

unread,
Jul 26, 2017, 10:23:21 AM7/26/17
to Roland DePratti, Teaching with Jupyter Notebooks
Hi Roland,

You need to set the root of the course directory in the nbgrader_config.py file (which you should put in a place where the notebook server will find it, such as in ~/.jupyter/nbgrader_config.py or in ~/notebooks/nbgrader_config.py). See http://nbgrader.readthedocs.io/en/stable/configuration/jupyterhub_config.html for an example.

If you're using multiple classes, though, what you'll probably want to do is run multiple notebook servers (rather than putting the root of the course directory in the nbgrader_config.py), where each notebook server is launched from the root of the relevant course directory. Unfortunately the support for multiple classes is somewhat minimal at the moment.

Hopefully that helps!

Cheers,
Jess


--
You received this message because you are subscribed to the Google Groups "Teaching with Jupyter Notebooks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter-education+unsubscribe@googlegroups.com.
To post to this group, send email to jupyter-education@googlegroups.com.
Visit this group at https://groups.google.com/group/jupyter-education.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter-education/e0dc0d5d-2c01-4407-b3ec-2bd60739767c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roland DePratti

unread,
Jul 27, 2017, 10:54:50 AM7/27/17
to Teaching with Jupyter Notebooks
Jess,

Thanks for your help.

I wanted to clarify my description of the problem (my description may have been misleading).

As a first attempt at working with nbgrader, I am NOT using JupyterHub, but using nbgrader in standalone mode (option 1 in your talk at SciPY2017).
When I get into Jupyter, 'Formgrader' is an option on the menu tabs, but I get a 404 screen when I select it.

command line message:  404 Get /formgrader (::1) 1493.66ms referer://localhost:8888/tree

I followed the instructions in the link your pointed out, but received the same result.

Other helpful info:

- I am on windows 10,
- used Anaconda to install nbgrader,
- I can use the nbgrader to assign nbgrader cell types
- I can manage the db form the command line, i.e. add students

 

On Wednesday, July 26, 2017 at 10:23:21 AM UTC-4, Jess Hamrick wrote:
Hi Roland,

You need to set the root of the course directory in the nbgrader_config.py file (which you should put in a place where the notebook server will find it, such as in ~/.jupyter/nbgrader_config.py or in ~/notebooks/nbgrader_config.py). See http://nbgrader.readthedocs.io/en/stable/configuration/jupyterhub_config.html for an example.

If you're using multiple classes, though, what you'll probably want to do is run multiple notebook servers (rather than putting the root of the course directory in the nbgrader_config.py), where each notebook server is launched from the root of the relevant course directory. Unfortunately the support for multiple classes is somewhat minimal at the moment.

Hopefully that helps!

Cheers,
Jess

On Wed, Jul 26, 2017 at 8:32 AM, Roland DePratti <roland....@comcast.net> wrote:
Hi,

I am using Jupyter notebooks for some Python instruction in a Big Data programming class.

I am trying to incorporate nbgrader. I am not using Jupyter Hub, so am exploring a standalone setup - where I manage assignment through an LMS and move the submissions to nbgrader on my machine myself.

I am trying to understand how formgrader discoveries the location of my course directory.

Is there a config file, like nbgrader_config.py, or a environment variable that Jupyter and formgrader can access that I have not read about yet?

I have read The philosophy and the approach docs, but everything starts with course_directory. How is the full path found?

I am finding when I get into formgrader in Jupyter, the assignment screens are failing with 404s.

Also, on a similar vain, how are multiple courses managed within nbgrader (how would it discover and have me select a course to assign work).

I have a sense that I am not understanding something very simple.

Thanks.

rd
.

--
You received this message because you are subscribed to the Google Groups "Teaching with Jupyter Notebooks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter-educat...@googlegroups.com.
To post to this group, send email to jupyter-...@googlegroups.com.

Roland DePratti

unread,
Jul 28, 2017, 10:22:02 AM7/28/17
to Teaching with Jupyter Notebooks
Jess,

I have since completed an alternate install in a CentOS 7 environment.

Everything is working fine there. It must be an install/platform problem. 
- I am going to regen the config files and see if that helps.
- If not, do an uninstall and reinstall and see if that fixes things in windows.

Thanks,

rd
Reply all
Reply to author
Forward
0 new messages