[英]Vscode python interactive terminal with shared environment with Jupyternote book
I'm new to the vscode, so I wonder if it is possible to have an interactive python terminal with the same environment as a Jupyter notebook.我是 vscode 的新手,所以我想知道是否可以有一个与 Jupyter notebook 相同环境的交互式 python 终端。 The reason I ask this is I'm a Rstudio user, It is good to have a terminal down below and an area showing the variables I have for current space.我问这个的原因是我是 Rstudio 用户,下面有一个终端和一个显示我当前空间变量的区域是很好的。 I know in vscode I can see what variables I have.我知道在 vscode 中我可以看到我有哪些变量。 And I can have a terminal down below as python, but the problem is they don't share the working space, when I run a = 1
in Jupyter notebook, and type print(a)
it will show "NameError: name 'a' is not defined."我可以在下面有一个终端 python,但问题是它们不共享工作空间,当我在 Jupyter notebook 中运行a = 1
并键入print(a)
时,它会显示“NameError: name 'a'没有定义。” So is there a way to connect the 2 environments (or space)?那么有没有办法连接这两个环境(或空间)呢? Thanks!谢谢!
I think this is what you want: Python Interactive window .我认为这就是您想要的: Python Interactive window 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.