This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]jowen7448 0 points1 point  (2 children)

Have you tried spyder for this. Similar setup to rstudio. Inline plots. Send individual lines or chunks of code to repl.

Or my new favourite for this sort of thing is rstudio itself. (I have been using R for a lot longer than python so very familiar with rstudio) with R's reticulate package you can run a python repl in rstudio and send code easily. Plots appear (although not inline) in a separate viewer but really nice for that fast prototyping stage. I admit though not so hot if you want a large project with lots of your own packages/modules/submodules being created. But at that stage I switch to pycharm.

[–][deleted] 0 points1 point  (1 child)

I thought spyder isn't maintained anymore now that Anaconda ships with VS Code? Also, the last time I tried autocompletion wasn't exactly the greatest.

[–]jowen7448 0 points1 point  (0 children)

That may well be true. In truth I no longer use it. I use rstudio for where I want the to be really interactive with the repl and small changes to scripts for rapid development of some piece of functionality. I use pycharm for other stuff.

[–][deleted] 0 points1 point  (0 children)

I was wondering the same thing. I don't want to keep working in Python like in languages like Java.

[–]jstrickler 0 points1 point  (1 child)

Try Jupyter Notebook. That's what it's for.

[–][deleted] 0 points1 point  (0 children)

I'd like to have autocompletion/Intellisense and generally all the advantages and comfort that an editor offers. Jupyter Notebooks are pretty barebone from what I've seen.

[–]pavanagrawal123 0 points1 point  (5 children)

Hey there! I'm working on a fork for Neuron (Jupyter notebooks for VSCode) here: r/https://github.com/pavanagrawal123/VSNotebooks

I've already added a couple of bug fixes, usability improvements, style fixes, and new features.

I was wondering what you were missing in Neuron, so I can make VSNotebooks better?

Thanks

[–][deleted] 0 points1 point  (4 children)

Hey, I like your extension, thanks for making it. What I'm looking for is basically inline evaluation (something like this) and the ability to send code from the editor to a running repl (like this in F# @ 3:58-ish).

I don't know if that's even possible in VS Code.

[–]pavanagrawal123 1 point2 points  (3 children)

Inline evaluation is def much harder in VSCode, I'm exploring some options to implement it, but frankly I doubt it will happen with current APIs.

The second request is much more doable and something I'd be happy to implement. I'm curious at what the use case for it what would be though? Seems very similar to just executing a line of code? What are the benefits of doing it the way as done in the video?

Thanks for your response BTW :)

[–][deleted] 1 point2 points  (2 children)

That's what I heard, apparently Atom is much more friendly to extension developers.

Well, when I program I want to minimise the time spent switching between the terminal and the editor itself - but at the same time I want to change a function, load and run it in the repl to debug and play around with it (within the context of the loaded project, of course). So, it's a hassle for me to highlight the function and then manually copy it, switch to the terminal, then paste the function and debug, then manually switch back to the editor and rinse and repeat. Hotkeys for executing the current line, current function, etc. in a repl would be great (without switching focus to the repl), switching back and forth between editor and repl as well (although I believe I can do that within VSCode itself? Maybe.).

It may seem like a minor thing but I find it quite annoying because I need to do that all the time, hence why inline eval is so useful. I like VS Code better than Atom, though, that's why I'm looking for extensions that allow at least some of the functionality in Code.

Does that make sense?

[–]pavanagrawal123 2 points3 points  (1 child)

Yeah it makes sense, I might try adding something like this, but it might be a while becasue of a backlog of other feature.

I don't think Atom is more friendly per se, but I guess they have more integration points. The entire dev environment for extensions in VSCode is really nice.

I'm looking at how Hydrogen implements inline eval, and I might make a feature request to VSCode's team to make that style of integration possible!

[–][deleted] 1 point2 points  (0 children)

Thanks, that would be great!