rbgod21
September 18, 2022, 4:58pm
1
Hi, everyone here.
Recently, I am really into a wonderful friend named Streamlit.
I just finished deploying the app after confirming that the program I created as a project was running without any problems in the local environment.
However, when it’s running in the app version, the webbrowser function doesn’t work.
I’m worried because it works normally in the local environment and doesn’t work when it’s deployed as an app.
import pickle
from time import sleep
import pandas as pd
import os
import streamlit as st
from streamlit_lottie import st_lottie, st_lottie_spinner
from streamlit_autorefresh import st_autorefresh
import xgboost
import shap
import matplotlib.pyplot as plt
# import pyautogui
import json
import requests
from PIL import Image
import time
import webbrowser
def load_lottiefile(filepath: str):
with open(filepath, 'r') as f:
return json.load(f)
This file has been truncated. show original
there is my code if you look at the code 277 line in the link above.
This code has to display the URL in a new window by combining keywords based on the information entered by the user.
It should work as shown below, but it only works in my local environment.
I would appreciate it if anyone can give me some advice about this!!
Best,
1 Like
cughi
October 25, 2022, 7:17am
2
I’m having the same problem. Did you find a solution for this?
I am also getting this problem at my web app
Goyo
January 11, 2023, 7:50pm
4
Webbrowser can control the browser only in the same computer it is running. It cannot control the browser in your computer while it is running in someone else’s computer.
1 Like