JuliaWeb / RemoteREPL.jl

Connect a REPL to a remote Julia process
MIT License
120 stars 11 forks source link

Could this project be use as an alternative to show interactive features in VS Code notebooks? #62

Open jpmvferreira opened 11 months ago

jpmvferreira commented 11 months ago

I've got a question I would like to ask: Could this project be used as a way to directly add interactivity to notebooks on VS Code while the Julia extension doesn't add support add support for it?

It is my understanding that some features that worked in Juno are not yet available in VS Code, one of them being interactive sessions. According to https://github.com/JuliaGizmos/WebIO.jl/issues/462, for something like interactive plots to be available directly in VS Code, then one would require that the Julia extension supports connectivity with WebIO, which, according to https://github.com/julia-vscode/julia-vscode/issues/1532, indicates that there isn't a plan to add such a feature and the thread has gone stale. There is a workaround that relies on using Blink.jl to setup an external window which can the be opened in a browser, as suggested in https://github.com/JuliaGizmos/WebIO.jl/issues/462#issuecomment-990744621, but, for some reason, I cannot run Blink inside of VS Code.

However, it would be really useful to me to have some sort of interactivity in the notebook itself, Mathematica style, where I can perform some computation and then change the parameters in the UI, re-running a selected piece of code and updating the output, whether it was a video, plot or simply a number. Given my ignorance on the matter at hand, I simply followed the hyperlinks which has lead me to pull request https://github.com/c42f/RemoteREPL.jl/pull/42, in this repository, where user @xgdgsc claimed in a comment that this could be used as a workaround for https://github.com/julia-vscode/julia-vscode/issues/1532.

Is it possible to replace the missing interactivity in VS Code notebooks with this or other package somehow?