I was following the Chatbot lesson locally using JupyterLab.
However, it seems that the Panel package is not compatible with JupyterLab (version 3.5).
When I press the “Chat” button in the small GUI created by the panel package, the loading indicator works infinitely long. If I restart the same notebook using Jupyter Notebook version 6.5, it works.
Does anyone know how to make JupyterLab and panel compatible with each other?
Thanks!
@ai_curious thank you for the suggestion. That thread is about import problems. I do not have any such problems with the panel package.
The problem I have is that the panel UI is stuck in JupyterLab when I try to submit a message by pressing the “Chat” button. However, the UI works in Jupyter Notebook.
Ok. I thought it might be a package version issue and that approach would allow you to install a precise version to try working around. If that doesn’t help I got nothing since I don’t use Lab and it works for me (also) in a Notebook. Sorry
Yes, it seems to be strange. I’ve just tried to create a new conda environment and reinstall panel and JupyterLab (now version 4.0.0) in it. Still, even the basic example from panel · PyPI does not work (the number of stars does not change when I move the slider).
@claudiotx thank you for the code! I am not using Jupyter that much and was not aware that one can make GUIs so easily in it.
One note: it seems that the line
send_button.on_click(send_button_clicked)
should be
send_button.on_click(handle_submit)
although it is not clear how the text_input parameter is passed.