holoviz / panel

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

Enable autoreloading a package installed for development #7395

Closed MarcSkovMadsen closed 1 month ago

MarcSkovMadsen commented 1 month ago

I'm always developing a package like panel, panel-mermaid or internally. And this package is installed with pip install -e .. I'm almost always also developing some Panel app in a script.py or examples/some_app.py file outside the src/name_of_package folder.

The problem is that when serving the panel file, panel serve script.py --dev --index script and making changes to the package the script.py file does not autoreload. I have to restart the server which is quite cumbersome.

Please either watch the package installed for development, make it an option to watch the package installed for development or enable me to specify a file or a folder to watch too.

philippjfr commented 1 month ago

Fixed by https://github.com/holoviz/panel/pull/7399