Skip to content

Teaching#

NucleI can run a teaching lab. It has a restricted role for students, guided lab packs with sealed answer keys, interactive labs that explain the physics, a simulated spectrometer for practice without an instrument, and courses on a self-hosted gateway. This page is for instructors and lab managers who set these up.

All of it sits behind one setting, Teaching features, which is off by default.

Turning teaching on#

An Admin profile turns it on in Settings > Appearance > Features > Teaching features. The change applies immediately, with no restart. Other profiles do not see the switch, and the backend refuses the change from anyone who is not an administrator.

When Teaching features is off, none of the following appear:

  • the Student / Operator role and the Student / operator policy editor;
  • the Learn page and Open the teaching lab in the command palette;
  • the Vector model button in the sequence preview;
  • lab packs: the checklist panel, the lab pack commands and the lab pack note on import;
  • the simulated spectrometer, in the device list and in the plugin manager (a connected simulator is disconnected);
  • the Student lab report and Lab handout report templates;
  • the Courses tab on the TQT Connect page;
  • Neutron's teaching mode chip and conversation-log export.

An installation used for industrial work looks exactly as it did before teaching existed. Explain mode is separate and available to everyone.

Note

IT can set Teaching features for a whole computer, and lock it, in the machine policy (teachingFeatures). A locked switch is disabled and shows Set by your organisation. See IT deployment.

Student / Operator profiles#

A Student / Operator profile is meant for students at a shared lab PC. It runs only the experiments you approved, within the limits you set, in Basic mode. Roles in general are described in Security and review.

To create one, open Create New Profile, choose Role > Student / Operator, and enter the Administrator password. With directory sign-in, the organisation's group mapping can give the role instead. The role of an existing profile is changed in Manage profiles, described under Profiles and roles.

The policy#

Every Student / Operator profile on the computer follows one policy. An Admin edits it from the profile menu: Edit user settings > Student / operator policy.

Setting What it does
Force Basic mode (hide "Full interface") Keeps operators in Basic mode.
Pages operators may open The pages allowed when Basic mode is not forced. Tuning, the sequence, processor and analysis editors, plugins, settings and the audit page are never available to operators.
Neutron for operators Off, Tutor (asks questions, read-only tools) or Assistant. See Neutron in teaching.
Approved experiments Tick the built-in experiments operators may run. For each one set Max scans, Min repetition delay (s), Max repetition delay (s), Max pulse angle (°) and Max pulse width (µs), and add others with Add a parameter limit. An empty limit means no limit.

Press Save policy and enter the Administrator password. The backend enforces the policy, not the interface. If the policy is missing or has been tampered with, operators get the strictest one: Basic mode forced, nothing approved, Neutron off.

What an operator sees when a run is refused:

  • An experiment that is not approved: "…" is not an approved experiment for this profile. Pick one from the list.
  • An approved experiment whose nodes were changed: "…" has been changed from the approved experiment. Reload it from the list.
  • A parameter outside its limit: the pre-run check names the node, the value and the allowed range.

Operators also cannot change device settings, use plugins, author lab packs or open answer keys. The only files they can import are lab packs signed by an instructor or administrator on this computer, or by NucleI's example packs.

Lab packs#

A lab pack turns a project into a guided exercise. It holds a checklist of steps, an optional guided tour, a report template for the write-up, an optional lab page, and an answer key that students receive but cannot open. A pack lives inside the project and travels with it as a .nuclei file (see Supported formats).

Example packs#

Open the command palette (Ctrl+K, Cmd+K on macOS) and choose Open the example lab packs. Import brings a pack in as a project. The examples include:

  • Benchtop 1H: benzyl benzoate at 43 MHz
  • Benchtop 1H: edible oils at 100 MHz
  • 1H multiplets and J: ethanol
  • 13C and DEPT: ibuprofen
  • COSY and tautomers: ethyl acetoacetate
  • HSQC: ethyl acetoacetate
  • T1 by inversion recovery: ascorbic acid at 80 MHz
  • T1 from a spectrum series: formic acid at 43 MHz
  • DOSY: separating ethylene glycol and caffeine
  • qNMR with an internal standard: sucrose against DSS

All of them use the Student lab report template.

The checklist#

Opening a project that contains a pack shows the Lab checklist panel at the bottom right. It holds the pack's introduction and a box for each step, with Go to page where the step names one. The header counts the steps done, and the panel can be collapsed or hidden (Show the lab checklist in the command palette brings it back).

  • Ticking a step saves the progress into the project immediately, without saving any other unsaved edits.
  • Guided tour walks through the steps that point at a part of the screen.
  • Open the report template opens the pack's report template in the Report Builder.

Admin and User profiles also see the instructor buttons: Answer key, Install lab page, Re-seal with my passphrase, Edit lab pack and Export lab pack.

Creating a pack#

  1. Open the project with the data for the exercise.
  2. In the command palette, choose Create a lab pack from this project.
  3. Fill in Title, Introduction (Markdown) and Report template name.
  4. Under Steps, add each step with a title and What to do (Markdown). A step can name a Page to open and Point at (tour anchor) for the guided tour.
  5. Optionally add a Lab page (optional): a Custom Page with Page name, Layout (XML) and Code (Python) that students install from the checklist.
  6. Under Instructor only, write the Answer key (Markdown), the Expected assignments (shift, tolerance, assignment, multiplicity) and Grading notes (Markdown).
  7. Set an Instructor passphrase of at least 12 characters and repeat it. Press Save.
  8. Use Export lab pack to write the .nuclei file for students. Their progress is cleared in the exported file, and Sign with my key is ticked by default so recipients can see it came from you.

Edit lab pack changes a pack later. Leave the instructor fields empty to keep the answers already sealed.

Answer keys#

The instructor section is sealed with the passphrase. Students receive it in the file but cannot read it.

  • To read it, press Answer key in the checklist and enter the Instructor passphrase. A wrong passphrase is refused. Opening the answer key, and each failed attempt, is recorded in the audit log.
  • The example packs are sealed with a passphrase that comes with the teaching materials given to instructors. Every customer's materials use the same passphrase, so press Re-seal with my passphrase before giving an example pack to students. Enter the Current passphrase and a New passphrase that only you know.
  • Packs you create yourself are sealed with your own Instructor passphrase when you create them.
  • Student / Operator profiles never get the Answer key button, and the backend refuses them. A User profile counts as an instructor, so there the passphrase is the only protection.

Lab pages#

Install lab page adds the pack's Custom Page. Its Python code is new to this computer, so NucleI first asks Trust the code of the project. The page is installed only after you check where the project came from and choose Trust and run. Afterwards, open it from Custom Page. This needs the Custom Page plugin.

Importing a pack#

Import the .nuclei file as any other project. The import dialog shows Lab pack: with the title, the number of steps, whether it includes a lab page with code, and whether it includes an instructor-only answer key. It also shows the signature: Signed by a known or unknown key, invalid, or Unsigned.

Learn page#

Learn in the navigation sidebar, or Open the teaching lab in the command palette, opens a page of interactive labs. Each one runs on simulated data and explains what it shows as you change the controls.

Lab What it shows
FID ↔ spectrum Processes one FID and redraws the spectrum as you change the Window (none, exponential, Gaussian, sine bell, squared sine bell), Line broadening, Acquisition time and Zero-fill. Readouts give the point spacing, line width and signal-to-noise. It uses the last FID from the Signal generator, or a demo FID.
Vector model The net magnetisation on a Bloch sphere in the rotating frame, followed step by step through a pulse sequence: your own, or a single pulse, spin echo, inversion recovery or CPMG. Change T1, T2, the offset and the B0 inhomogeneity, and play or drag along the timeline.
Phase cycling How cycling pulse and receiver phases cancels receiver DC offset and quadrature image: CYCLOPS, two steps or no cycling, from 1 to 16 scans. An incomplete cycle leaves a residue.
T1 / T2 curves Inversion recovery, saturation recovery and CPMG curves with noise. With a short Repetition delay, the usual T1 fit is biased, and the lab shows by how much.

In the vector model, loops run at most 64 times each and at most 512 events are simulated. A longer sequence shows a warning.

With Teaching features on, the Sequence editor's preview panel also has a Vector model button that shows the Bloch sphere beside the pulse diagram.

Simulated spectrometer#

The simulated spectrometer behaves like a benchtop 1H instrument, so students can practise tuning and acquisition with no hardware. Choose Simulated spectrometer in the device list. It is offered only with Teaching features on.

Choose what is in the tube in the device settings:

  • Sample: Ethanol, Ethyl acetate, Ibuprofen, Water, Doped water (CuSO4), or Molecule (SMILES) for a structure of your own (this needs shift prediction).
  • Solvent, Concentration, and optional T1 Override and T2 Override.
  • Magnet: 60, 80 or 100 MHz.

What is modelled:

  • relaxation: T1 and T2 per group, saturation when the repetition delay is short, FID decay with T2* and echo trains with the true T2;
  • noise falling with the square root of the number of scans;
  • receiver DC offset and quadrature image, cancelled only over complete phase cycles;
  • a magnet offset, so the frequency must be tuned, and an uncalibrated 90° pulse;
  • J couplings in the spectra, shimming, temperature-dependent shifts, field drift and probe ringing.

What is not modelled: 13C and other nuclei (1H only), 2D experiments, diffusion, J modulation under echoes, radiation damping and receiver overflow.

The instrument's imperfections can be set in the device settings, from a near-perfect instrument to a poorly shimmed, drifting one, to set how demanding a lab exercise is for students.

Neutron in teaching#

For Student / Operator profiles, the policy's Neutron for operators decides what the Neutron assistant may do. Other profiles always get the full assistant.

Mode Behaviour
Off Neutron is disabled for students.
Tutor Explains and asks guiding questions. Only read tools are available, and it never gives graded answers: assignments, structures, filled tables, report text or quiz answers.
Assistant The full assistant. Operators still cannot use tools that run or write code or that are dangerous.

With Teaching features on, a chip in the Neutron panel shows the mode, and Export conversation log saves the conversation as Markdown or JSON or attaches it to a course submission. Allow All Mode can then be turned on only by an administrator.

Courses#

With a self-hosted gateway and Teaching features on, the TQT Connect page has a Courses tab.

  • Instructors create a course with the + (New course) button and share its Enrolment code, shown at the top of the course: Show reveals it, Copy copies it and New code replaces it. A course linked to an LMS needs no code, as students join through the LMS. New assignment sets a title, instructions, deadline, expected submission types, report template and rubric. Under Expected submission, select every required type, such as a report and scans, or a pulse sequence alone. Distribute dataset sends a project to the enrolled students, Publish opens the assignment, and Review & grade marks submissions. A student opens the dataset with Open dataset on the assignment; until the course key reaches them, the assignment says what they are waiting for. Export grades (CSV) downloads the grades.
  • Students choose Join course and enter the enrolment code, or the link code from the LMS page, and Submit saved items for each required type. They can select several scans or sequences, choose a generated report from the current project, and add other types of work optionally. Use a local file instead is available for externally prepared work. Only selected items are sent; choosing a project does not automatically include all its scans.
  • In a course's Settings, instructors can set weekly limits per student on experiments and minutes, and require approval before students' queued experiments run. Class time slots are booked from the instrument reservations. These rules apply only to the course's students on the course's instruments.

Course datasets and the course key#

A dataset sent with Distribute dataset is encrypted with the course's key. Every student gets that key once, which opens every dataset of the course, past and future. A student who has not signed in to NucleI yet, or whose LMS account is not linked, is listed under Waiting for access and receives the key automatically as soon as they can; the distribution is never repeated and nobody is skipped. Copy reminder puts a short message on the clipboard to send through the LMS or by email.

The course key is held in one of two ways. Held by the gateway (default): the gateway keeps it and gives it to a student when they sign in or link, so late students have access at once; whoever administers the gateway can read course data. End-to-end: only the people in the course can read it, and late students receive access when a course staff member's NucleI is next online. The course page shows the mode, and instructors can Change it unless the gateway administrator or the organisation's policy fixes it. After a change to end-to-end, data distributed earlier stays readable to anyone who could read it before.

When someone leaves the course, the next dataset uses a new key they do not receive. Rotate key does the same on request. Datasets they already downloaded stay on their computer.

To link a course with Moodle, Canvas or another LMS, see LMS integration.