panel icon indicating copy to clipboard operation
panel copied to clipboard

`--autoreload` leads to error after upgrade to 1.4.2

Open yjcui opened this issue 9 months ago • 1 comments

I recently updated from 1.3.x to latest 1.4.2 and noticed the previously working dashboard based on Jupyter Notebook stopped working. After trial and error, I located the cause with --autoreload option. With it, I kept getting below message but no dashboard was created in my localhost. I did get this FIXED_SIZING_MODE warning before, but it did not stop generating the dashboard.

image

If I remove the --autoreload option, everything works just like before.

yjcui avatar May 15 '24 18:05 yjcui

Does it work if you install watchfiles?

philippjfr avatar May 17 '24 10:05 philippjfr

Does it work if you install watchfiles?

I have the same issue and it does not work when installing watchfiles.

sylvaint avatar May 21 '24 15:05 sylvaint

Okay, I've got a request for you. Could one of you go into your installed panel and edit panel/command/__init__.py and change line 96 from die("ERROR: " + str(e)) to raise e and then report back with the error message?

philippjfr avatar May 21 '24 15:05 philippjfr

image

sylvaint avatar May 21 '24 17:05 sylvaint

Super helpful. Thank you. Will get a fix into 1.4.3.

philippjfr avatar May 21 '24 17:05 philippjfr

Awesome, thank you.

sylvaint avatar May 21 '24 17:05 sylvaint