Skip to content
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

REPL is missing #8

Open
chipkent opened this issue Jun 7, 2024 · 3 comments
Open

REPL is missing #8

chipkent opened this issue Jun 7, 2024 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@chipkent
Copy link
Member

chipkent commented Jun 7, 2024

I’m really feeling the lack of a REPL. Every time I want to execute a small bit of code, I find myself typing it out, highlighting it, running it, and then deleting it. Not a great workflow.

@chipkent chipkent added the bug Something isn't working label Jun 7, 2024
@mofojed mofojed added the triage label Jun 10, 2024
@vbabich vbabich added enhancement New feature or request and removed bug Something isn't working triage labels Jun 18, 2024
@vbabich vbabich added this to the Backlog milestone Jun 18, 2024
@bmingles
Copy link
Collaborator

I've opened a ticket in web-client-ui to possibly expose console features that the extension could use. deephaven/web-client-ui#2111

@bmingles
Copy link
Collaborator

bmingles commented Aug 9, 2024

Looks like there is an api that allows interacting via vscode terminal. Here's an example: https://github.com/microsoft/vscode-extension-samples/blob/main/extension-terminal-sample/src/extension.ts

@dsmmcken
Copy link

dsmmcken commented Aug 14, 2024

Looking at the terminal API, it doesn't have the feature we would need to implement a repl.

Other than a terminal, vs code doesn't have a paradigm of a rich interactive repl. You can display a python repl in terminal but there's no equivalent rich experience in vs code. There are no APIs or building blocks to create similar experience, so any implementation would be sub-optimal and a lot of work.

We can provide a link to open a repl in a browser from your current connected worker. And/or if the deephaven server command implemented a -i / --interactive or -repl mode we could display that in the terminal.

I don't think we should be trying to build our exact ide experience shoe-horned into vs code, we should build what the equivalent vs code experiences is in vs code, using the APIs they provide.

My interpretation of the underlying user need is a way to have quick iterative development, and the closest vs code equivalent experience would be vs code python notebooks. VS Code does have a python notebook api that we can explorer, and if possible I think that would be a better native VS code feeling experience. I know they aren't quite equivalent, but do fulfill a similar user need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants