Skip to content

UI watch mode that automatically opens/updates panels from external IDE #2242

@mofojed

Description

@mofojed

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:

  1. Set up IntelliJ to use a venv with deephaven and deephaven_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
  2. 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()
  1. 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).
  2. 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")
  1. The table should open up in the browser
  2. 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")
  1. The browser should update with the newly created t2, and t should update to show the new value entered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions