Jupyter Notebook in VS Code : inline input()? - visual-studio-code

I'm a student using VS Code to work on Jupyter Notebooks. I'm looking for a way to get the dialog pop up of an input("...") to appear inline instead (under the cell with all my prints, like it's done when using jupyter notebook in a browser).
Thanks,
Julien

Found my answer here : Show question/input in vscode jupyter notebook output
Spoiler : not possible, in VS Code you cannot show inputs under a cell of a jupyter notebook as it for output only.

Related

Jupyter kernel does not show in VS Code

I have added a new kernel to my jupyter notebook. It works totally fine using Jupyter in the browser. However if I try to open my notebook in VSCode (and change the kernel) it doesn't show up --> the drop-down menu doesn't show my kernel.
Is there anything I can do to resolve this issue.
Thanks in advance!

How to get autocomplete and suggestions in Jupyter Notebook in VS Code?

I'm trying to code on Jupyter Notebook on VS Code, but there are no code suggestions nor syntax highlighting!
I am currently running python 3.10.
Install this extension copy and search in extension ms-toolsai.jupyter
If suggestion not show then try to press ctrl+space

How can I programmatically check that I am running code in a notebook in julia?

I would need to programmatically check that I am running code in a jupyter notebook from Julia. One way would be using
isdefined(Main, :IJulia)
However this does not work for notebooks within vscode since they are run from outside IJulia is there a check that would work in this case as well?
What about #__FILE__ this yields REPL[_] in Julia REPL, In[_] in Jupyter and "/path/to/file.jl#==#hashocde" in Pluto so the test could be:
match(r"^In\[[0-9]*\]$", #__FILE__) != nothing
and in VSCode:
so you can check if the file ends with ".ipynb" if you want to find VSCode. Moreover: isdefined(Main, :VSCodeServer) yields true if you run from VSCode.

Does VS code have variable explorer object like we have it in spyder?

I will post the picture of what exactly I am asking variable explorer in spyder
So do we have this feature in VS code?
I tried a lot to find it on google but was unhappy to not find it.
Open your .py script in vscode
Right click anywhere on the script > Run current File in interactive Window
In the toolbar of the interactive window click on the variable icon
You can now consult the values of variables created by your script
spyder is probably running a REPL (Jupyter is doing that also). From that python process they show the local and global variables, just like a debugger would do on a breakpoint.
If you use Python Interactive you have similar functionality with the Variables Explorer and Data Viewer or use Jupyter notebooks
You can now find all variables in a Jupyter Notebook in VS Code in the Output panel under Jupyter: Variables

Sagemath available in jupyter in vscode?

I am playing around with the jupyter extension inside of vscode. And although I can use sagemath in jupyter lab on my machine it is not presented as an option of cell type within vscode. Suggestions?
Thanks,
R Haynes