Bokeh serve allows to write fast web apps with plots and widgets.
How can I debug the python code when I use bokeh serve --show code.py
?
In PyCharm Professional Edition you can also debug code you're running inside a Docker container, within a VM, or on a remote host through SSH.
Just right-click any line in the editor and select the Debug <filename> command from the context menu. After the program has been suspended, use the debugger to get the information about the state of the program and how it changes during running.
I found that you start the process in a process that already has the debugger attached to it, the debugger would be added there as well.
For example you can run the code below to do so
bokeh_process = subprocess.Popen(
['python', '-m', 'bokeh', 'serve', 'bokeh_server.py'], stdout=subprocess.PIPE)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With