End-to-end JupyterHub tutorial
In this tutorial, you will open JupyterHub and run a notebook that calls deployed CogStack CE services.
By the end, you will have completed an end-to-end user flow:
- Open JupyterHub
- Log in
- Open the bundled tutorial notebook
- Run cells that call MedCAT and AnonCAT service APIs
- Inspect the outputs
Tip
The following tutorial will use your CogStack CE installation and let you run real code against your environment.
To see a non-interactive version of the tutorial notebook, refer to:
Before you start
Make sure your CogStack CE release is installed and local port-forwarding is running.
If needed, re-run:
helm get notes <release> | bash
Replace <release> with your Helm release name (for example, cogstack).
Step 1: Open JupyterHub
Open:
- http://127.0.0.1:8000
This should show the JupyterHub login page.
Step 2: Log in
The community chart uses a dummy authenticator (for local/non-production use).
Log in with:
- Username:
admin - Password:
SuperSecret
After login, JupyterLab opens for your user.
Step 3: Open the bundled notebooks
The chart includes example notebooks to interact with CogStack CE:
medcat-service-tutorial.ipynbmedcat-opensearch-e2e.ipynb
You can open it directly:
- http://127.0.0.1:8000/user/admin/notebooks/medcat-service-tutorial.ipynb
Or navigate to it in JupyterLab and click to open it.
Step 4: Run the notebook cells
Run each cell in order from top to bottom.
The notebooks demonstrates service calls to:
medcat-serviceat/api/processfor named entity extractionanoncat-serviceat/api/processfor de-identificationOpenSearchfor indexing and searching data.
It uses environment variables for service URLs where available, so the default CogStack CE setup should work without edits.
Step 5: Verify the end-to-end outputs
As you run cells, confirm that:
- MedCAT returns annotation output for the sample text
- AnonCAT returns de-identified output
- The JSON responses are displayed in the notebook
If those outputs appear, you have validated the full end-to-end flow from JupyterHub to deployed CogStack CE services.
Troubleshooting
- If JupyterHub does not load, ensure port-forwarding is running.
- If notebook requests fail, verify the cluster services are up and re-run:
-
helm get notes <release> | bash -
For production deployments, replace dummy authentication with secure auth configuration.
Next Steps
- See the full deployment documentation for more details on scaling, production security, and advanced configuration options.
- See full install instructions of the cogstack CE chartCogStack CE Helm chart (install + customization)
- See further tutorials on medcat on GitHub