Artificial Intelligence (AI) Azure

JupyterLab 4.6 on Windows Server 2025 on Azure User Guide

| Product: JupyterLab 4.6 on Windows Server 2025

Overview

JupyterLab is the browser-based development environment of Project Jupyter: notebooks that mix code, results, charts and notes, plus a code console, a terminal, a text editor and a file browser, all in one browser tab. Data scientists, analysts, researchers and teachers use it to explore data, train and test models, and share their work as notebooks.

This image runs JupyterLab 4.6.6 on Python 3.13 on Windows Server 2025 Datacenter (Desktop Experience), with the IPython kernel, ipywidgets, NumPy, pandas and Matplotlib installed. JupyterLab listens on 127.0.0.1:8888 only; Caddy serves it over HTTPS on port 443 with a certificate made for this VM, and port 80 only redirects to HTTPS. On the first boot of every VM the image makes its own JupyterLab password, stored only as an argon2 hash, and its own TLS certificate, so nothing is shared between machines. Token sign-in is switched off, and the server refuses to start without a password hash. The Windows Server licence is included in the virtual machine price that Microsoft bills; JupyterLab is open source under the BSD 3-Clause licence. cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours.

What is included:

  • JupyterLab 4.6.6 and Jupyter Server 2.21.1 on Python 3.13.17 from python.org, private to JupyterLab, in C:\Program Files\JupyterLab, with ipykernel 7.4.0, ipywidgets, NumPy 2.5.5, pandas 3.1.2 and Matplotlib 3.11.2; every Python package is pinned to the exact file the image was built and checked with
  • The Windows service JupyterLab (startup Automatic), running with its kernels and terminals under its own virtual account NT SERVICE\JupyterLab, not LocalSystem, on 127.0.0.1:8888
  • Caddy 2.11.9 as the Windows service JupyterLabProxy under its own virtual account NT SERVICE\JupyterLabProxy: HTTPS on TCP 443, and TCP 80 redirecting to HTTPS
  • Your notebooks in C:\ProgramData\JupyterLab\notebooks, with a Getting started notebook, already run, that makes a small dataset with pandas and charts it with Matplotlib
  • A per-VM JupyterLab password (hashed with argon2) and self signed TLS certificate (for the VM's public IP address, private IP address and computer name), both made at first boot
  • JupyterLab's news feed and update check switched off, so the server makes no calls to the internet of its own
  • Windows Firewall rules for TCP 443 and TCP 80 only
  • Windows Server 2025 Datacenter, patched with Windows Update at build, Microsoft Defender Antivirus and Windows Firewall on
  • cloudimg's support team on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours

JupyterLab runs code by design: anyone who signs in can run any program on the server as NT SERVICE\JupyterLab. Keep the password to the people you trust with the server, and open port 443 to their addresses only.

Prerequisites

An active Azure subscription, a Remote Desktop client, and a virtual network in the target region. Standard_B2ms (2 vCPU, 8 GiB RAM) is a good starting point; choose a larger size, with more memory, for large datasets or several people working at once. In the network security group, allow inbound TCP 3389 (Remote Desktop) from your own address only, and TCP 443 (JupyterLab over HTTPS) and TCP 80 (the redirect to HTTPS) from your users' address ranges.

Step 1 - Deploy from the Azure Marketplace

Sign in to the Azure Portal, choose Create a resource, search the Marketplace for JupyterLab 4.6 on Windows Server 2025 by cloudimg, and select Create. On Basics pick your subscription, resource group, region and size, and set the Administrator account username and password. Under Inbound port rules allow RDP (3389), HTTPS (443) and HTTP (80), then narrow each rule's source to your own address ranges on the Networking tab. Select Review + create, then Create.

Step 2 - Deploy from the Azure CLI

# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn cloudimg1647283583153:jupyterlab-windows-server:default:latest

az vm create \
  --resource-group <your-rg> \
  --name jupyterlab \
  --image cloudimg1647283583153:jupyterlab-windows-server:default:latest \
  --size Standard_B2ms \
  --admin-username <admin-name> \
  --admin-password '<a strong password>' \
  --public-ip-sku Standard

az vm open-port --resource-group <your-rg> --name jupyterlab --port 3389 --priority 1000
az vm open-port --resource-group <your-rg> --name jupyterlab --port 443 --priority 1010
az vm open-port --resource-group <your-rg> --name jupyterlab --port 80 --priority 1020

az vm open-port opens each port to any address; narrow the rules to your own ranges in the network security group afterwards.

First boot takes five to ten minutes. When the VM first starts, Windows finishes its setup, then the image creates this VM's password and certificate, writes the credentials file and starts both services. Ports 443 and 80 stay closed in Windows Firewall until JupyterLab has proved through HTTPS that the password signs in, a wrong one is refused, and a Python kernel and a terminal run, so nothing answers on them before then. The setup is finished when the file C:\ProgramData\jupyterlab-windows-server-firstboot.done exists (Step 4).

Step 3 - Connect with Remote Desktop

Connect to the VM's public IP address with your Remote Desktop client (on Windows, mstsc; on macOS, Windows App), signing in with the administrator name and password you set at deployment. Open Windows PowerShell as administrator for the commands below.

Step 4 - Confirm JupyterLab is running

Test-Path C:\ProgramData\jupyterlab-windows-server-firstboot.done
Get-CimInstance Win32_Service -Filter "Name LIKE 'JupyterLab%'" | Format-Table Name, State, StartMode, StartName -AutoSize
Get-NetTCPConnection -State Listen -LocalPort 443, 80, 8888 | Format-Table LocalAddress, LocalPort, @{n='Process';e={(Get-Process -Id $_.OwningProcess).ProcessName}} -AutoSize
Invoke-RestMethod http://127.0.0.1:8888/api
True

Name            State   StartMode StartName
----            -----   --------- ---------
JupyterLab      Running Auto      NT SERVICE\JupyterLab
JupyterLabProxy Running Auto      NT SERVICE\JupyterLabProxy

LocalAddress LocalPort Process
------------ --------- -------
::                  80 caddy
::                 443 caddy
127.0.0.1         8888 python

version : 2.21.1

True confirms first boot finished. Both services run under their own accounts and start automatically with Windows. Caddy is the only process listening on the network, on ports 443 and 80; JupyterLab itself (python) listens on 127.0.0.1 only, which nothing outside the VM can reach, and answers with its Jupyter Server version. The same checks in an elevated PowerShell window on a new VM:

An elevated PowerShell window on a new VM: JupyterLab and JupyterLabProxy running and set to Automatic under their own NT SERVICE accounts, caddy on ports 80 and 443, python on 127.0.0.1:8888 only, Jupyter Server 2.21.1 answering there, and JupyterLab 4.6.6

The versions and the firewall rules:

& "C:\Program Files\JupyterLab\python\python.exe" -I -B -c "import sys, importlib.metadata as m; print('Python', sys.version.split()[0]); [print(n, m.version(n)) for n in ('jupyterlab', 'jupyter_server', 'ipykernel', 'numpy', 'pandas', 'matplotlib')]"
& "C:\Program Files\JupyterLab\caddy\caddy.exe" version
Get-NetFirewallRule -Group 'JupyterLab' | Format-Table Name, DisplayName, Enabled, Direction, Action -AutoSize
Python 3.13.17
jupyterlab 4.6.6
jupyter_server 2.21.1
ipykernel 7.4.0
numpy 2.5.5
pandas 3.1.2
matplotlib 3.11.2
v2.11.9 h1:bhZtcRKQOq0fuLvEgCdPYvUxXyGn9kzjG4lh2332DTE=

Name                         DisplayName                           Enabled Direction Action
----                         -----------                           ------- --------- ------
cloudimg-JupyterLab-HTTP-In  JupyterLab redirect to HTTPS (TCP 80)    True   Inbound  Allow
cloudimg-JupyterLab-HTTPS-In JupyterLab (HTTPS, TCP 443)              True   Inbound  Allow

The first boot log records what it made. In this output and the next, the test VM's public IP address is shown as <vm-public-ip>; yours shows its own.

Get-Content C:\ProgramData\jupyterlab-windows-server-firstboot.log
2026-12-03T18:08:54.1596973Z provisioning finished
2026-12-03T18:09:05.8717915Z services: JupyterLab as NT SERVICE\JupyterLab, JupyterLabProxy as NT SERVICE\JupyterLabProxy
2026-12-03T18:09:06.1804830Z made C:\ProgramData\JupyterLab (config: JupyterLab read; notebooks and work: JupyterLab modify) and C:\ProgramData\JupyterLabProxy (tls: JupyterLabProxy read)
2026-12-03T18:11:15.4879293Z password hashed (argon2) in 129 s; config\jupyter_server_config.py and config\hashed_password written (SYSTEM, Administrators; NT SERVICE\JupyterLab read)
2026-12-03T18:11:15.8802598Z service settings written
2026-12-03T18:11:16.5658546Z sample notebook copied into C:\ProgramData\JupyterLab\notebooks
2026-12-03T18:11:33.9634650Z certificate CN=<vm-public-ip> names=wsrdp-dff978,<vm-public-ip>,10.20.0.13 sha256=1A711052E42E7F74FDFABE838D93F01D3EC15E16D7CE217E6C7668DD6EB50884; Caddyfile written
2026-12-03T18:11:34.1812064Z credentials written (SYSTEM and Administrators only)
2026-12-03T18:13:44.4822885Z JupyterLab healthy after 26 s; through HTTPS in 78 s: ok=1 health=1 loginPage=1 labAnon=1 anonRefused=1 tokenRefused=1 wrongRefused=1 signIn=1 contents=1 labPage=1 noNews=1 kernel=1 kernelUser=1 terminal=1 redirect=1 api=200/2.21.1 pinned=1 login=200 lab-anon=302->/login?next=%2Flab anon=403 token=403/403 wrong=401/403 signin=302 contents=200/1 lab=200/4.6.6 news=200/false/False kernel[answer=42 who=nt_service\jupyterlab python=3.13.17 numpy=2.5.5 pandas=3.1.2 matplotlib=3.11.2 png=17419 deleted=204] terminal[who=nt service\jupyterlab deleted=204] redirect=301->https://127.0.0.1/x?y=1
2026-12-03T18:13:45.2770870Z Windows Firewall rules cloudimg-JupyterLab-HTTPS-In (TCP 443) and cloudimg-JupyterLab-HTTP-In (TCP 80) enabled
2026-12-03T18:13:46.1777334Z both services Automatic and running
2026-12-03T18:13:52.7564197Z first boot done

The through HTTPS line is first boot's own proof, made before the firewall opened: the sign-in page answers (login=200), the workspace sends anyone not signed in to it (302->/login), a request with no password, a made-up token or a wrong password is refused (403, 401), the per-VM password signs in (302) and lists the notebooks, the news feed and update check are off (news=200/false/False), a Python kernel runs code with NumPy, pandas and Matplotlib as nt service\jupyterlab and draws a chart, a terminal opens as the same account, and port 80 redirects to HTTPS (301). The certificate is named for the VM's public IP address, its private IP address (10.20.0.13 here) and its computer name (wsrdp-dff978 here), and is valid for ten years; compare its SHA-256 fingerprint with the one in the log when your browser first shows it.

Step 5 - Read the JupyterLab password

First boot wrote the sign-in to a file that only the SYSTEM account and the Administrators group can read. Here it is with the password hidden:

PS> (Get-Content C:\ProgramData\jupyterlab-windows-server-credentials.txt) -replace 'password=.*', 'password=<hidden>'
# JupyterLab on Windows Server 2025 by cloudimg: this VM's own sign-in (made at first boot).
# Open https://<vm-public-ip>/ (port 80 redirects there) and enter the password below. Allow TCP 443 (and 80) from
#   your address in the network security group first.
# The certificate is this VM's own, self-signed: C:\ProgramData\JupyterLabProxy\tls\cert.pem
# Change the password: & 'C:\Program Files\JupyterLab\Set-JupyterLabPassword.ps1' (as administrator)
# Guide: https://www.cloudimg.co.uk/guides/jupyterlab-on-windows-server-2025-azure/

jupyterlab-windows-server.url=https://<vm-public-ip>/
jupyterlab-windows-server.password=<hidden>

Run Get-Content C:\ProgramData\jupyterlab-windows-server-credentials.txt to see the password itself. It is random and different on every VM. Only SYSTEM and Administrators can open the file; JupyterLab itself keeps only the argon2 hash, in C:\ProgramData\JupyterLab\config\hashed_password, which its service can read but not change:

An elevated PowerShell window: the credentials file readable by SYSTEM and Administrators only, the password hash readable by NT SERVICE\JupyterLab, and the credentials with the password hidden

Step 6 - Sign in to JupyterLab

On your own computer, browse to https://<vm-public-ip>/. The certificate is this VM's own self signed one, so your browser warns about it the first time: accept it to continue (or use your own certificate, see Use your own domain name and certificate below). Port 80 redirects to the same page. JupyterLab shows its sign-in page, which asks for the password only:

JupyterLab's sign-in page, served over HTTPS by the VM: a password field only

Enter the password from Step 5 and choose Log in. From PowerShell on the VM, the web front answers like this (-k because the certificate is the VM's own self signed one):

An elevated PowerShell window: port 80 redirecting to HTTPS, the sign-in page over HTTPS, the API refusing a caller who is not signed in and a made-up token, and this VM's certificate

Step 7 - Run the Getting started notebook

JupyterLab opens with the file browser on the left, showing your notebooks folder, C:\ProgramData\JupyterLab\notebooks. Double-click Getting started.ipynb. It was run when the image was built, so its results already show: the versions of Python, NumPy, pandas and Matplotlib, a table of a year of made-up website visits summarised by month with pandas, and a chart of them drawn with Matplotlib:

The Getting started notebook: a year of sample data made with pandas and charted with Matplotlib, beside the file browser

Choose Run > Run All Cells (or select a cell and press Shift+Enter) to run it again on your VM. The notebook is yours to change or delete.

Step 8 - Create notebooks and open a terminal

The + button above the file browser opens the Launcher: a new Notebook or Console on the Python 3 kernel, a Terminal, or a new text, Markdown or Python file:

JupyterLab's Launcher: Notebook and Console on Python 3, and Terminal, Text File, Markdown File and Python File under Other

Terminal opens Windows PowerShell on the server in a browser tab, running as the JupyterLab service's account, with the server's Python and pip on the path:

A JupyterLab terminal: whoami answering nt service\jupyterlab, then the Python and pip versions

To upload files, drag them onto the file browser or use its upload arrow; to download one, right-click it and choose Download.

Install more Python packages

Install a package from a notebook cell with %pip:

%pip install scikit-learn

It installs into C:\ProgramData\JupyterLab\work\python-packages, the service account's own packages folder, so it is there for every notebook and terminal on this server; restart the notebook's kernel (Kernel > Restart Kernel) to import a package you just installed. The program folder, C:\Program Files\JupyterLab, stays read only to the service, so a notebook cannot change JupyterLab itself. JupyterLab's extension manager is read only for the same reason: install an extension from an elevated PowerShell on the VM with & "C:\Program Files\JupyterLab\python\python.exe" -m pip install <extension>, then Restart-Service JupyterLab.

Change the JupyterLab password

Run the image's password helper in an elevated PowerShell window on the VM:

& 'C:\Program Files\JupyterLab\Set-JupyterLabPassword.ps1'

It asks for the new password twice (at least 12 characters, not shown as you type), hashes it with argon2 and restarts JupyterLab, so every open browser session must sign in again. The credentials file then records that the password was changed, not the password itself. -Generate makes a random password instead and writes it to the credentials file.

Use your own domain name and certificate

  1. Point a DNS name (for example notebooks.example.com) at the VM's public IP address.
  2. Replace C:\ProgramData\JupyterLabProxy\tls\cert.pem and key.pem with your certificate (full chain) and its private key, in PEM format, keeping the files' permissions.
  3. Restart the HTTPS front:
Restart-Service JupyterLabProxy

JupyterLab accepts any address the request comes through Caddy on, so nothing else changes. If the public IP address changes (a dynamic IP after the VM is deallocated), give the VM a static public IP or use a DNS name.

Server components

Component Version Where
JupyterLab 4.6.6 C:\Program Files\JupyterLab\python\Lib\site-packages\jupyterlab, service JupyterLab
Jupyter Server 2.21.1 C:\Program Files\JupyterLab\python\Lib\site-packages\jupyter_server
Python 3.13.17 C:\Program Files\JupyterLab\python
ipykernel, NumPy, pandas, Matplotlib 7.4.0, 2.5.5, 3.1.2, 3.11.2 C:\Program Files\JupyterLab\python\Lib\site-packages
Caddy 2.11.9 C:\Program Files\JupyterLab\caddy\caddy.exe, service JupyterLabProxy
WinSW (service wrapper) 2.12.0 C:\Program Files\JupyterLab\JupyterLab-service.exe, JupyterLabProxy-service.exe
Windows Server 2025 Datacenter Desktop Experience

Files and folders

The data folder and the program folder on a new VM:

PS> Get-ChildItem C:\ProgramData\JupyterLab, C:\ProgramData\JupyterLab\notebooks | Format-Table FullName -HideTableHeaders

C:\ProgramData\JupyterLab\config
C:\ProgramData\JupyterLab\notebooks
C:\ProgramData\JupyterLab\work
C:\ProgramData\JupyterLab\notebooks\.ipynb_checkpoints
C:\ProgramData\JupyterLab\notebooks\Getting started.ipynb

PS> icacls C:\ProgramData\JupyterLab\notebooks
C:\ProgramData\JupyterLab\notebooks NT AUTHORITY\SYSTEM:(OI)(CI)(F)
                                    BUILTIN\Administrators:(OI)(CI)(F)
                                    NT SERVICE\JupyterLab:(OI)(CI)(M)

Successfully processed 1 files; Failed processing 0 files

PS> Get-ChildItem "C:\Program Files\JupyterLab" | Format-Table Name -HideTableHeaders

caddy
cloudimg
python
samples
JupyterLab-service.exe
JupyterLab-service.xml
JupyterLabProxy-service.exe
JupyterLabProxy-service.xml
LICENSE-WinSW.txt
README.txt
Set-JupyterLabPassword.ps1
Path What it holds
C:\ProgramData\JupyterLab\notebooks Your notebooks and files: the folder JupyterLab's file browser opens in
C:\ProgramData\JupyterLab\config jupyter_server_config.py (Jupyter Server's settings) and hashed_password (the argon2 hash); the service reads them, only administrators change them
C:\ProgramData\JupyterLab\work The service's working folders: python-packages (from %pip install), lab-settings, lab-workspaces, service-logs
C:\ProgramData\JupyterLabProxy Caddy's Caddyfile, the certificate and key (tls) and its logs
C:\Program Files\JupyterLab Python, JupyterLab, Caddy, the service wrappers and their settings (*-service.xml), README.txt, Set-JupyterLabPassword.ps1
C:\Program Files\JupyterLab\python\share\jupyter\lab\settings\overrides.json Turns JupyterLab's news feed and update check off
C:\ProgramData\jupyterlab-windows-server-credentials.txt This VM's JupyterLab sign-in (Step 5)
C:\ProgramData\jupyterlab-windows-server-firstboot.log What first boot did (it never contains a password)

The server's settings, as first boot wrote them:

PS> Get-Content C:\ProgramData\JupyterLab\config\jupyter_server_config.py
# JupyterLab on Windows Server 2025 by cloudimg: the server's settings, read at every start of the JupyterLab service.
# Restart the service after a change (Restart-Service JupyterLab). Change the password with
#   & 'C:\Program Files\JupyterLab\Set-JupyterLabPassword.ps1'
# Reference: https://jupyter-server.readthedocs.io/en/latest/other/full-config.html
# Guide: https://www.cloudimg.co.uk/guides/jupyterlab-on-windows-server-2025-azure/
#
# FAIL CLOSED: the password hash is made on each VM at first boot. Without an argon2 hash the server refuses to start
# rather than come up without a password. A JupyterLab server runs code by design.
import os

_HASH_FILE = r'C:\ProgramData\JupyterLab\config\hashed_password'
_hashed = ""
if os.path.isfile(_HASH_FILE):
    with open(_HASH_FILE, encoding="utf-8") as _fh:
        _hashed = _fh.read().strip()
if not _hashed.startswith("argon2:"):
    raise SystemExit("FATAL: no password hash in %s: JupyterLab will not start without a password" % _HASH_FILE)

c = get_config()  # noqa: F821

# Network: 127.0.0.1 only (the service passes the address and port). Caddy (JupyterLabProxy) serves HTTPS on 443 and
# forwards the browser's Host header, so remote access is allowed through it.
c.ServerApp.open_browser = False
c.ServerApp.allow_remote_access = True
c.ServerApp.trust_xheaders = True
c.ServerApp.quit_button = False
c.ServerApp.root_dir = r'C:\ProgramData\JupyterLab\notebooks'
c.ServerApp.tornado_settings = {"headers": {"X-Content-Type-Options": "nosniff"}}
# terminals open Windows PowerShell, as the service's account
c.ServerApp.terminado_settings = {"shell_command": [r"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe", "-NoLogo"]}
# extensions are not installed from the browser: the program folder is read only to the service
c.LabApp.extension_manager = "readonly"

# Sign-in: JupyterLab's own password, hashed. Token sign-in is off: a token travels in the address and is kept in
# browser history, bookmarks and screenshots.
c.PasswordIdentityProvider.hashed_password = _hashed
c.PasswordIdentityProvider.password_required = True
c.PasswordIdentityProvider.allow_password_change = False
c.IdentityProvider.token = ""

Edit it in an elevated editor and run Restart-Service JupyterLab after a change; the Jupyter Server configuration reference lists every setting.

Maintenance

  • Windows updates: Windows Update is on, as Microsoft ships it. Restarting the VM restarts both services automatically.
  • Back up your notebooks: everything you make is in C:\ProgramData\JupyterLab\notebooks. Use Azure Backup of the VM, or copy the folder.
  • Upgrade JupyterLab: you choose when to upgrade. Read the JupyterLab changelog first, back up the notebooks folder, then from an elevated PowerShell run Stop-Service JupyterLabProxy, JupyterLab, & "C:\Program Files\JupyterLab\python\python.exe" -m pip install --upgrade jupyterlab and Start-Service JupyterLab, JupyterLabProxy.
  • Logs: JupyterLab's output is in C:\ProgramData\JupyterLab\work\service-logs, Caddy's in C:\ProgramData\JupyterLabProxy\logs.
  • Firewall: Windows Firewall allows TCP 443 and 80 through the rules in the JupyterLab group; the network security group decides who can reach them.

Troubleshooting

  • Nothing answers on 443 just after deployment: first boot is still running (five to ten minutes). Wait for C:\ProgramData\jupyterlab-windows-server-firstboot.done, and read the first boot log.
  • "Invalid credentials" at sign-in: check the password in the credentials file (Step 5), or set a new one (Change the JupyterLab password).
  • The browser shows a certificate warning: expected with the image's self signed certificate; compare the fingerprint with the first boot log, or install your own certificate.
  • The JupyterLab service stops at start: read the newest file in C:\ProgramData\JupyterLab\work\service-logs. The server refuses to start without the password hash in C:\ProgramData\JupyterLab\config\hashed_password; Set-JupyterLabPassword.ps1 -Generate writes a new one.
  • A package installed with %pip will not import: restart the notebook's kernel.

Support

cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours. Contact support@cloudimg.co.uk.

Jupyter and JupyterLab are trademarks of LF Charities, of which Project Jupyter is a part; cloudimg is not affiliated with or endorsed by Project Jupyter.