pavanagrawal123 / VSNotebooks

Jupyter Notebooks in Visual Studio Code
MIT License
63 stars 2 forks source link

suggestion:Use #%% to execute a piece of code like a spyder when press alt+enter #18

Open schrodog opened 5 years ago

schrodog commented 5 years ago

Same as issue 163 in VSNotebook repo, request for jupyter plugin like experience. Very important feature

pavanagrawal123 commented 5 years ago

Yep, for sure, I definitely really want this as well. I will try to implement this next week!

pavanagrawal123 commented 5 years ago

This is semi-done in #19!

schrodog commented 5 years ago

Still having issue with "VS Notebooks cannot find Jupyter in your custom environment ..." Does it need to enable other extension? I can output pane with "neuron" enabled, but not with "vs notebook" alone.

pavanagrawal123 commented 5 years ago

No, Neuron is supposed to be uninstalled when using VSNotebooks.

Can you share some screenshots on where the extension is starting the kernel and where your Jupyter executable is?

Thanks

schrodog commented 5 years ago

when i open output pane, screenshot from 2018-11-13 10-48-05

jupyter path: /usr/local/bin/jupyter /usr/local/etc/jupyter

pavanagrawal123 commented 5 years ago

Ahh I see what the issue is, I will be pushing some changes to fix this in the beta branch!

pavanagrawal123 commented 5 years ago

I published a beta version that fixes this issue! Try it out and let me know if it works for you! It also includes cell support!

schrodog commented 5 years ago

Great, now I works! Now I can press 'run cell' to get output. Another issue: what is the shortcut key for "run cell"?

pavanagrawal123 commented 5 years ago

That's awesome. I haven't implemented the shortcuts yet, I am still figuring that part out :) Will implement soon