其他分享
首页 > 其他分享> > Does VS code have variable explorer object like we have it in spyder?

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

作者:互联网

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

  1. Open your .py script in vscode
  2. 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

 

 

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.

 

标签:code,explorer,Python,variables,object,window,variable,your
来源: https://www.cnblogs.com/chucklu/p/16652314.html