-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI watch mode that automatically opens/updates panels from external IDE #2242
Comments
You can also use import code
from pydeephaven import Session
port = 10000
session = Session(port=port)
class Repl(code.InteractiveConsole):
def runsource(
self, source: str, filename: str = "<input>", symbol: str = "single"
) -> bool:
session.run_script(source)
return True
repl = Repl()
repl.interact(banner=f"Connected to Deephaven on port {port}.", exitmsg="Disconnected from Deephaven.") It will capture the code executed when running "Execute selection in Python console" and run it on the server it is connected to. |
We should try wrapping that up in a For enterprise I wonder if we can support an authenticated version too? |
Think it should be a special page or just something that a regular console does? Auto open panels executed from anywhere? I thought nate's old console branch did that. |
from pydeephaven import start_repl
start_repl(port=10000, ...)
For Enterprise, we'd be looking at using the session manager: https://deephaven.io/enterprise/docs/coreplus/coreplus-python-client/ I didn't bother trying an example for that yet, but you should be able to do the same. Annoying to have to remember which to use/where, and the syntax being different for these ways to connect. Maybe could shorten it to something like: from deephaven_enterprise.client import start_repl
start_repl(connection_info="https://deephaven-host:8000/iris/connection.json", key="...", options={...}) |
Depending on how this is implemented, this might also take care of Opened panels should match the state of panels in the panels menu #1924 |
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:
deephaven
anddeephaven_server
installeda. Create venv locally -
python -m venv .venv
b. Under File -> Project Structure -> Platform Settings -> SDKs, selection Python Home Path to be
.venv/bin/python
t2
, andt
should update to show the new value entered.The text was updated successfully, but these errors were encountered: