import phoenix as px# Re-launch the app using trace datapx.launch_app(trace=px.TraceDataset(df))# Load traces into an existing Phoenix instancepx.Client().log_traces(trace_dataset=px.TraceDataset(df))# Load traces into an existing Phoenix instance from a local filepx.launch_app(trace=px.TraceDataset.load('f7733fda-6ad6-4427-a803-55ad2182b662', directory="/my_saved_traces/"))
Launching a new Phoenix Instance with Saved Traces
You can also launch a temporary version of Phoenix in your local notebook to quickly view the traces. But be warned, this Phoenix instance will only last as long as your notebook environment is running
Copy
Ask AI
# Load traces from a dataframepx.launch_app(trace=px.TraceDataset.load(my_traces))# Load traces from a local filepx.launch_app(trace=px.TraceDataset.load('f7733fda-6ad6-4427-a803-55ad2182b662', directory="/my_saved_traces/"))