This guide shows you how to use ngrok from a Google Colab notebook using the pyngrok library. It covers installingDocumentation Index
Fetch the complete documentation index at: https://ngrok.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
pyngrok, adding your ngrok authtoken, and starting a tunnel from Colab.
What you’ll need
- A Google Colab notebook.
- An ngrok account.
- Your ngrok authtoken.
1. Install pyngrok in your notebook
In a Colab cell, installpyngrok:
2. Add your ngrok authtoken
In a new cell, add your ngrok authtoken:3. Start a tunnel
Start a tunnel to your local port (for example,8080):