Skip to content

Jupyter for courses

The Jupyter for courses app is a version of the Jupyter app that makes using a custom Python environment simple when hosting or participating in courses.

Python environments can be defined as modules in the project ProjAppl directory. Default resources for the course Python environment can also be defined in the same directory.

Using the app

In the form for launching the application:

  • Select the project and reservation used for the course
  • Select the course module
  • Launch the application

Creating a course environment

The files for course environments (modules) can be created in /projappl/<project>/www_puhti_modules/. The www_puhti_modules directory can be created if it does not exist.

The course environment is only visible for the project that it was created for. Note that you may need to Restart Web Server in the Help menu in the web interface if the course environment is not visible in the form after creating the files and selecting the correct project.

Two files are needed for the course modules:

  • a <course>.lua file that defines the module that sets up the Python environment. Only files containing the text Jupyter will be visible in the app.
  • a <course>-resources.yml that defines the default resources used for Jupyter.


Module (/projappl/project_1234567/www_puhti_modules/some-course.lua):

-- Jupyter
-- Relative to the course dir
-- Anything valid for checkout
-- lab / notebook / empty (defaults to jupyter)
Resources (/projappl/project_1234567/www_puhti_modules/some-course-resources.yml):
cores: 4
time: "02:00:00"
partition: "interactive"
local_disk: 32
mem: "16GB"