vscode-binder icon indicating copy to clipboard operation
vscode-binder copied to clipboard

Python interactive window doesn't work in Binder

Open aeturrell opened this issue 3 years ago • 2 comments

First, I've been looking for a good way to do this for weeks! Thank you for the repo.

I'm interested in helping people get started with Python and VS Code and I wanted to have a free Binder VS Code instance to point people to, where they can work as if they had VS Code installed on their local machine. Much like Github Codespaces.

This repo is almost exactly that except that the interactive window doesn't work in the Binder-launched VS Code instance. I'm not sure where the issue is but, usually, right-clicking on a code selection and choosing the "Run in interactive window" option would launch VS Code's interactive window. Currently, it doesn't do anything. If the repo could be tweaked so that this works out of the box, that would be amazing.

aeturrell avatar Dec 18 '21 22:12 aeturrell

This repo proxies code-server: https://github.com/betatim/vscode-binder/blob/ec6b09fdee18ff4bf488012811d357ecb02e9e7d/environment.yml#L6

Do you have the same problem when running code-server directly?

manics avatar Dec 21 '21 20:12 manics

I haven't been able to try it directly, but it does look like this is a bit of an issue for code-server. See, for example, this issue and this issue.

BTW I think my issue is effectively the same as #30 and they could be combined.

To be more clear on the original issue it's the "Jupyter: Create Interactive Window" option that fails, with an error that reports: "Command 'Jupyter: Create Interactive Window' resulted in an error (command 'jupyter.createnewinteractive' not found)".

In terms of a way forward, it does look like there's a fix, instructions here: https://github.com/coder/code-server/issues/4333 Not sure how easy it is to implement in this repo but very grateful if you get an opportunity to try.

aeturrell avatar Feb 19 '22 21:02 aeturrell