AI assistant with your own GitHub Copilot account
A course can offer an AI assistant inside JupyterLab: a chat panel that answers questions about your code and notebooks, and code suggestions that appear as you type. It is Notebook Intelligence, connected to GitHub Copilot, and every student signs in with their own GitHub account.
👩‍🏫 Owners / Coaches: the assistant is off unless your course asks for it — Enabling it for a course.
👩‍🎓 Participants: if your course has it, get Copilot and sign in. If your course does not have it, there is nothing to switch on: ask your teacher.
What UZH provides, and what it does not
- UZH installs the assistant and lets each course decide whether it appears.
- UZH provides no AI service, no API key and no Copilot licence. The assistant talks to GitHub Copilot under your GitHub account, on your Copilot plan, under GitHub’s terms.
- What you send to the assistant — your question, and the code, notebook cells and outputs it includes as context — goes to GitHub Copilot. Do not paste anything into it that you would not hand to GitHub: personal data, exam material, unpublished research data.
Other AI providers
GitHub Copilot is the route this page describes, but the assistant can also use other providers: OpenAI-compatible services, LiteLLM-compatible services, Ollama, and Claude (Anthropic, including Claude Code). They stay available in Notebook Intelligence Settings, but UZH provides no key for any of them. Using one means bringing your own account and API key, on that provider’s terms and at your own cost. What you send then goes to that provider instead of GitHub, and the same caution applies.
Whether, and how, you may use an AI assistant for graded work is your course’s rule, not a technical one. Ask your teacher.
Enabling it for a course
👩‍🏫 Coach / Course Owner
The assistant is opt-in per course and off by default. To switch it on, ask UZH Central IT (ZI) at support@zi.uzh.ch:
| Your course runs on | What ZI sets |
|---|---|
| The fleet | ai_assistant = true in your course’s registry entry (see Fleet Parameters & Scheduling) |
| An isolated deployment | ai_assistant_enabled = true for the whole deployment |
Once that change is deployed, every server started afterwards offers the assistant; a server that is already running keeps what it had until it is restarted. Switching it off again works the same way.
It needs a current UZH lab image (std-lab and the course images built from it). ZI will tell you if your course’s image is older and has to be updated first.
Good to know before you switch it on:
- Nothing to budget. Students use their own Copilot plan; UZH is not billed.
- Not a lock. A course without the assistant does not get it by default, but students can still install software into their own environment. Treat the setting as your course’s default, not as an exam-proof barrier.
- Group servers. On a collaboration server the server is shared, so whoever signs in to Copilot there signs in for the whole group for that session. The sign-in cannot be remembered there (see below).
For participants
👩‍🎓 Participants
1. Get GitHub Copilot
You need a GitHub account with access to GitHub Copilot. Two ways that cost you nothing:
- Copilot Free — available to any GitHub account, with a monthly limit on suggestions and chat messages. Turn it on under github.com/settings/copilot.
- Copilot through GitHub Education — verified students get the full plan free of charge. Apply at education.github.com with your UZH student status; approval can take a few days. Afterwards Copilot is listed as active under github.com/settings/copilot.
The current conditions of both are on GitHub’s Copilot plans page.
2. Sign in from JupyterLab
- Start your server as usual. If your course has the assistant, JupyterLab shows the Notebook Intelligence chat panel in the left sidebar.
- Open the panel and choose Login to GitHub Copilot (also reachable from Notebook Intelligence Settings).
- JupyterLab shows a short code and a link to github.com/login/device. Open the link, sign in to GitHub if asked, and enter the code.
- Back in JupyterLab the status changes to GitHub Copilot: Logged in. Activation can take up to a minute.
Now you can ask questions in the chat panel, and suggestions appear while you type in a notebook cell or a file; press Tab to accept one.
The sign-in lasts as long as your server runs. After a restart you sign in again with a new code. On your personal server you can tick Remember my GitHub Copilot access token in the settings: the token is stored in your home directory and you stay signed in across restarts. On a group server that option is locked off (see the next section). Your teachers and teaching assistants can open your personal server, and with it a remembered Copilot sign-in, so do not tick Remember if that matters to you.
The chat panel has two modes: Ask only answers. Agent can also act in your server — edit files and run commands — as you. Read what it proposes before you let it run.
On a group server
On a collaboration (group) server everyone in the group works in the same server and the same home directory.
- The sign-in cannot be remembered there. Remember my GitHub Copilot access token is locked off, so no token is saved in the group’s shared home, and after every restart someone signs in again.
- The sign-in is shared while the server runs. If one member signs in to Copilot, the others use that member’s Copilot account until the server stops or that member logs out.
So on a group server, use Logout in the settings when you are done, or use the assistant on your personal server only.
Signing out
Notebook Intelligence Settings → Logout ends the session in JupyterLab. To withdraw the access altogether, revoke it on GitHub under github.com/settings/applications.
When it does not work
| What you see | What it means |
|---|---|
| No Notebook Intelligence panel at all | Your course has not switched the assistant on, or your server was started before it was. Restart your server; if it is still missing, ask your teacher. |
| GitHub Copilot: Not logged in after a restart | Expected — sign in again, or, on your personal server, tick Remember my GitHub Copilot access token. |
| Remember my GitHub Copilot access token is greyed out | You are on a group server: remembering is off there by design. |
| The code is accepted on GitHub but JupyterLab stays Not logged in | Your GitHub account has no active Copilot plan. Check github.com/settings/copilot. |
| Chat or suggestions stop with an error after working for a while | You may have used up the monthly allowance of Copilot Free. Check your usage on GitHub. |
Anything else: see Getting help.