Comments (8)
@raethlein interesting! I'm on Windows 10 (and the same thing happens in WSL on that machine). As far as I know I'm not in a VPN, VM, or container. I'm using streamlit 1.34.0 but it's been like this since I can remember. I can connect via localhost.
Looking at the method you cite, the cause is straightforward: I have server.headless set to true in the config as well. So the elif config.get_option("server.headless")
triggers. Removing that makes my ouput
Local URL: http://localhost:8501
Network URL: http://10.150.8.250:8501
as well.
from streamlit.
Great!
Do you have a suggestion of how we could improve the docs to make this more clear or is it good as is then?
from streamlit.
Going to transfer this issue into the docs repo so that it's in a more correct location
(Huh, looks like I can't for some reason 😕)
from streamlit.
That seems like a pretty good solution to me.
from streamlit.
If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.
Your feedback helps us prioritize which bugs to investigate and address first.
from streamlit.
Hey @wyattscarpenter, I have just tried to reproduce it on my M1 Mac, but there it behaves correctly and I correctly see
You can now view your Streamlit app in your browser.
Local URL: http://localhost:3000
Network URL: http://192.168.0.200:3000
The log lines seem to come from this method where also the IP address is determined; when no respective config options are set, it seems to jump into net_util.get_internal_ip() which seems to determine the IP address via the socket
package for the log. The bound address itself should depend on tornado's listen method which we call here.
I don't have anything set in the config.toml
file. Are you connected to a VPN or run the app in a virtual machine or container or so? And are you able to connect to the app via localhost
despite the log showing a different address?
from streamlit.
I'm not sure whether or not it's a docs issue. I don't know why the server.headless setting overrides the browser.serverAddress setting. Maybe it's a good reason, since the behavior seems intentional. I could imagine that for some reason a headless server might need to output the things it currently does. But maybe not.
Assuming the behavior is desirable: add note (in both places?) that server.headless overrides the browser.serverAddress setting.
If the behavior isn't desirable: make it not do that, I suppose.
from streamlit.
good points, thanks 🙂 I guess the behavior is desirable since you can also connect via localhost
and that the output prints are misleading. So looking at the lines I guess that localhost
should be printed out additionally when the mode is headless
.
from streamlit.
Related Issues (20)
- st.selectbox could be typed so that it always returns T unless the index is None (etc) HOT 3
- Button Clicks Ignored (WHEN TEXTAREA HAS FOCUS) HOT 9
- Incomplete shortcodes disappear HOT 9
- Update to support protocol buffer above version 5.0 HOT 3
- button should be able to contain image HOT 2
- doesnt work HOT 2
- Streamlit unnecessarily runs the file watcher against every path in imported modules, even when watching is disabled HOT 5
- `st.experimental_dialog` feels a bit laggy when closing HOT 1
- Add Support for Hover-over Tooltips without Input Widgets HOT 2
- disabled_chat_input feature not working correctly last version of Streamlit HOT 1
- Pages clipped off bottom of sidebar in streamlit 1.35.0 HOT 2
- plotly_chart `on_select` not returning anything for an imshow or heatmap HOT 7
- Cannot create form submit button in empty in form from outside form with with. HOT 4
- new config option that suppresses the greeting and creation of the ~/.streamlit folder, but is not headless HOT 1
- Return selected dataframe rows in order of selection HOT 1
- New Selection mode on st.altair_chart doesn't work with binding_radio and binding_select HOT 2
- `plotly_chart`'s new `on_select` feature is poorly integrated with subplots and hovermodes HOT 2
- Hover color should overwrite colored text HOT 1
- [Streamlit 1.35.0] Error related to cached st.plotly_chart(plotly.express.line() "Trying to save widget message that wasn't registered. This should not be possible." HOT 2
- "StreamlitAPIException: Selectbox index must be between 0 and length of options" is probably misphrased HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamlit.