我试着在streamlit应用程序中运行atoti link,在那里我想用atoti创建一些绘图。我尝试了下面的代码,但它显示了一些其他东西,而不是链接。
new = pd.DataFrame()
new['Link'] = [session.link()]
st.dataframe(new)
st.write(new.to_html(escape=False, index=False), unsafe_allow_html=True)输出为
Link
0 Link(_path='', _session=<atoti.session.Session object at 0x000002B700293FA0>)然后是:
Link
Link(_path='', _session=)预期的链接为http://localhost:53533
有人能帮我吗?
发布于 2021-09-24 08:31:17
正如here文档所述,Session.link()仅在JupyterLab中可用。
您可以使用f"http://localhost:{session.port}"。
https://stackoverflow.com/questions/69311395
复制相似问题