web-client-ui
web-client-ui copied to clipboard
UI watch mode that automatically opens/updates panels from external IDE
As a developer using an external IDE (such as VSCode or IntelliJ) in my workflow, I would like a browser mode that automatically opens/updates/closes panels as code is run in a session. I do not the Console, Command History, Log, etc. as those are all in my IDE already.
Desired workflow:
- Set up IntelliJ to use a venv with
deephaven
anddeephaven_server
installed a. Create venv locally -python -m venv .venv
b. Under File -> Project Structure -> Platform Settings -> SDKs, selection Python Home Path to be.venv/bin/python
- Open up the Python Console and start a server:
from deephaven_server import Server
s = Server(port=10500, jvm_args=["-DAuthHandlers=io.deephaven.auth.AnonymousAuthenticationHandler"])
s.start()
- Open a browser to http://localhost:10500/watch (whatever the URL should be ... /watch? /live?). Should be an app with an empty layout (settings accessible etc).
- From a Python file in IntelliJ, enter some basic code, then right click and select "Run File in Python Console", e.g.
from deephaven import empty_table
t = empty_table(100).update("x=i")
- The table should open up in the browser
- Change the code in your file and re-run:
from deephaven import empty_table
t = empty_table(100).update("x=i*2")
t2 = t.update("y=x*i")
- The browser should update with the newly created
t2
, andt
should update to show the new value entered.