Python notebook
Last updated
Was this helpful?
Last updated
Was this helpful?
Within any Jupyter notebook, you can run a temporary version of Phoenix directly in your notebook.
Install Phoenix using:
Within your notebook, launch Phoenix using:
By default, notebook instances do not have persistent storage, so your traces will disappear after the notebook is closed. See Persistence or use one of the other deployment options to retain traces.
To collect traces from your application, you must configure an OpenTelemetry TracerProvider to send traces to Phoenix. The register
utility from the phoenix
module streamlines this process.
Connect your application to your cloud instance using:
Your app is now connected to Phoenix! Any OpenTelemetry traces you generate will be sent to your Phoenix instance.