Hi, I am new to arize and just trying to run some samples given in the documentation. They do run fine in colab/jupyter notebooks but when I try to run the same code from a python file in my visual studio editor, it fails on this line: px.launch_app(primary=prod_ds, reference=train_ds, host="127.0.0.1", port="8000") Error comes from this below line in session.py: dbutils = shell.user_ns["dbutils"], where shell = IPython.get_ipython() Is it possible to launch it outside any notebook ?
Hi Kanchan, the following worked for me (at least for tracing):
from phoenix.trace.langchain import OpenInferenceTracer, LangChainInstrumentor
from phoenix.trace.exporter import HttpExporter
tracer = OpenInferenceTracer(exporter=HttpExporter(endpoint="http://0.0.0.0:6006"))
LangChainInstrumentor(tracer).instrument()
Of course the tracer (OpenAI, Langchain etc.) is arbitrarily exchangeable Not sure whether/how it works for data import
hi Kanchan P.! It looks like you have dbutils installed while not using a databricks notebook, throwing off our environment detection. You can bypass this by passing in the notebook_environment='local' option. Is there a reason why you're using dbutils outside of a databricks environment?
