holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.75k stars 517 forks source link

Add --cloud flag to panel serve (I.e. provide deployment solution) #3641

Open MarcSkovMadsen opened 2 years ago

MarcSkovMadsen commented 2 years ago

Context

Trying to make it easy for Panel users to deploy and share their work. I'm so inspired by lightning.ai. To run an app locally you just write lighting run app app.py. If you want to deploy you run lightning run app app.py --cloud.

If you have not logged in or registered, then a url will show up to enable you to login/ register with your google or github account. That is sooooooo easy.

See https://github.com/Lightning-AI/lightning/issues/13335

image

Feature Request

Provide something similar for Panel.

Additional Context

I know building a cloud offering takes time and money. But maybe there could be ways to integrate with some cloud providers or even lightning.ai to make the experience just as easy.

Maybe the scope could be pyscript only apps.

Getting the time to "production" down is so important for Python and data science in general.

MarcSkovMadsen commented 2 years ago

FYI @Hoxbro . The API of lightning.ai apps powers FastAPI. There might be some inspiration for you in the api and the way they use FastAPI.

MarcSkovMadsen commented 2 years ago

With Anacondas acquisition of PythonAnywhere I guess I could dream of a command panel serve app.py --pythonanywhere.

jbednar commented 2 years ago

Yes, you can dream that! But dreams can take time to become reality. :-)