-
QuestionHi there, I'm trying to test whether NiceGUI will work on Posit Connect (I can't find any mention of the two together) before I get into learning it proper. Posit Connect works with FastAPI so I think it should work, but I'm currently stuck. I'm just trying to upload the basic demo: # app.py
from nicegui import ui
ui.label('Hello NiceGUI!')
ui.run() I'm deploying it with: The deployment works but I get the following error on the Posit Connect logs when the app tries to start
I've also tried # app.py
from nicegui import ui
ui.label('Hello NiceGUI!')
app = ui.run() and deploying it with: https://docs.posit.co/connect/user/fastapi/ Any help would be greatly appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hmm... does Posit Connect also allow arbitrary Python code to be deployed. There is much going on in |
Beta Was this translation helpful? Give feedback.
Hmm... does Posit Connect also allow arbitrary Python code to be deployed. There is much going on in
ui.run()
which would not be covered if you just specify the entrypoint "app". If that is not possible you can have a look at our FastAPI example: https://github.com/zauberzeug/nicegui/blob/main/examples/fastapi/main.py.