Does VS code have variable explorer object like we have it in spyder?
- Open your .py script in vscode
- Right click anywhere on the script > Run current File in interactive Window
3.In the toolbar of the interactive window click on the variable icon
4.You can now consult the values of variables created by your script
Running cells with 'Python 3.10.0 64-bit' requires ipykernel package.
Run the following command to install 'ipykernel' into the Python environment. Command: 'c:/Users/clu/AppData/Local/Programs/Python/Python310/python.exe -m pip install ipykernel -U --user --force-reinstall'
ValueError: check_hostname requires server_hostname
pip安装加速&&python淘宝镜像安装包
国内源:
新版ubuntu要求使用https源,要注意。
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
临时使用:
可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple
例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider,这样就会从清华这边的镜像去安装pyspider库。
Variables Explorer and Data Viewer
Within the Python Interactive window, it's possible to view, inspect, and filter the variables within your current Jupyter session. Select the Variables button in the interactive window toolbar to open the Variables explorer after running code and cells, you'll see a list of the current variables, which will automatically update as variables are used in code.
For additional information about your variables, you can also double-click on a row or use the Show variable in data viewer button to see a more detailed view of a variable in the Data Viewer. Once open, you can filter the values by searching over the rows.