我很难在我的私人Streamlit部署应用程序上正确显示iframe。
我正试图在我的流媒体应用程序中使用。在当地,iframe工作得很好(如图)。
流光文档中的示例iframe是在我的Streamlit部署应用程序中加载的,而不是我的Metabase iframe。
下面是用于显示我的iframe的代码(我用虚拟数据复制了这个场景,这样您就可以测试代码)和我的Streamlit版本
streamlit==1.10.0
import streamlit.components.v1 as components
import streamlit as st
st.write("Stream
这是完整的错误消息。
Traceback (most recent call last):
File "C:\Users\adi\OneDrive\Desktop\Python310\machine learning project.py", line 3, in <module>
import streamlit as st
File "C:\Users\adi\OneDrive\Desktop\Python310\lib\site-packages\streamlit\__init__.py", line 70, in <m
我正在尝试使用以下命令启动Streamlit应用程序
import os
os.popen("streamlit run stockXchange.py")
当我运行这段代码时,将会有无限多的流光窗口,每隔3秒左右就会一个接一个地弹出。阻止这些窗口弹出的唯一方法是完全关闭输出窗口。(我使用的是PyCharm)
下面是我的代码:
import os
import streamlit as st
class Streamlit:
def __init__(self):
Streamlit.setup()
def setup(self):
我正试着在码头上流光。我指的是这个上的例子。以下是我的系统的详细信息:
Operating System: Windows 10 Home
System type: 64-bit operating system
Docker version 19.03.1
我执行了docker-compose run streamlit black src/命令并获得了以下输出:
reformatted src/main.py All done! ✨ ✨ 1 file reformatted.
接下来,我执行了docker-compose up命令并获得了以下输出:
Starting streamli
ComputerName = InputBox("Enter the name of the computer you wish to query")
winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &""
'WScript.Echo winmgmt1
Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")
for each SN in S
我试图将我的session_id保存在get_report_ctx()中的一个变量中,但是我得到了以下错误:
AttributeError: 'NoneType' object has no attribute 'session_id'
这些是我使用的streamlit库和返回上述错误的命令:
import streamlit as st
from streamlit.report_thread import get_report_ctx
from streamlit.server.server import Server
import streamlit.le
我在VScode中安装了streamlit,并试图运行它。
import streamlit as st
st.title("Hello")
但我不会在新浏览器中看到流光,相反,我会在终端中得到这条消息。这跟我的档案有关吗?
警告:若要在浏览器上查看此Streamlit应用程序,请使用以下命令运行它:
streamlit run c:\Users\MyName\Documents\VS code\test.py [ARGUMENTS]