Replies: 1 comment 1 reply
-
I think the most probably reasion is that you call some pywebio session-related apis before the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
How are you?
I wanted to ask on a how-to on a problem I'm having.
Currently, I have inside a class a
start()
method that will in turn callstart_server
frompywebio
. The arguments of the call are: a pywebio notebook, the port and the optionauto_open_webbroser
but the arguments seem to be ignored by the app. When executing thestart()
method of the class, the app loads fine but at a random port and it opens the browser.I've figured that if I set the environment variable
PYWEBIO_SCRIPT_MODE_PORT
, the custom port works for the app but tornado will again chose a random port so it will fail to load certain graphs because there is no server listening there.I don't know if it is a bug on the code or that I'm using the library wrong. The mentioned class has the following structure:
Thank you for your time
Beta Was this translation helpful? Give feedback.
All reactions