Default port for quarto preview? #6738
Replies: 2 comments 11 replies
-
@dragonstyle is this a design choice ? I guess we did not want any conflict with other tools. |
Beta Was this translation helpful? Give feedback.
-
Well, Streamlit and maybe Shiny (if one was going to serve it outside shiny server) do have external needs for predictable ports, but Flask/Dash default to port 8050 even though they explicitly say the built in web server is not for production (and thus not for containers.) Similarly, Jupyter is usually run locally and has a default port and predictable port behavior (incrementing by 1 when the port is in use.) It mostly comes down to me wanting to re-use one browser tab or window, rather than have dozens of unique localhost:xxxx entries in my browser history. But I can achieve this via YAML thankfully! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Why does
quarto preview
pick a random port every time it is used? Most other processes that spawn a local port use a predictable port number, sometimes incrementing by one if the port is in use (i.e.jupyter
).shiny run
tries to use port 8000.streamlit run
uses port 8501, Dash uses 8050 (because that's what Flask does.)I know I can specify a port, but that's more typing. Why not just have a default port like all these other tools that create local web servers?
(I noticed this because my VS Code auto-port-forwarding list because very long with numerous quarto ports when previewing… and because I couldn't just re-load the url in my browser history since the port had changed when I ran the command again.)
Not sure if this is an issue or a question so I started with a discussion item!
Beta Was this translation helpful? Give feedback.
All reactions