Home > Mobile >  I cannot run python on vscode because my computer believes that my .py file is untrusted
I cannot run python on vscode because my computer believes that my .py file is untrusted

Time:03-04

Previously I had python running just fine in VSCode but recently something has gone wrong and I'm not sure how to resolve it.

When I open a .py file (downloaded from an email) in VSCode I get a message saying that this source is not trusted. I then followed through the suggestions and made the file trusted and I get a box saying that all extensions are enabled. However, when I try and run it, the box is still blurred out

blurred out run button

This is the error I get when I try and run the whole file, not just the cell.

enter image description here

Does someone know how to get this up and running first? Thanks

CodePudding user response:

See the comment and say it is .ipynb file, you only need to enter the trusted file name on the command line of Jupiter notebook "$ jupyter trust 'filename'.ipynb" This is a link to instructions:https://jupyter-notebook.readthedocs.io/en/stable/notebook.html#trusting-notebooks

  • Related