ipython : The term 'ipython' is not recognized as the name of a cmdlet, function, script file, or operable program.
Opened this issue · 0 comments
I'm new to programming, new to VSCode, and I've never used ipython... so all of that complicates my understanding of what's going on!
I'm following a course which uses the Anaconda distribution of Python, and VSCode as the text editor. I am doing the same except that I am using the normal Python distro, not the Anaconda.
Anyway, I downloaded and installed this extension using the Visual Studio Marketplace. It shows that it is running in the "Running Extensions" command of VSCode. However, I can't get it to work! For example, in a program that I am writing, I highlighted some code and that opened the command palette and typed: "Send selected text (or current line) to iPython". The following are the error messages that I got in the terminal:
ipython : The term 'ipython' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
- ipython
-
+ CategoryInfo : ObjectNotFound: (ipython:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
.py'
file : The term 'file' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
- file = r'c:\Users\mrd26\OneDrive\Desktop\CS for All\interp.py'
-
+ CategoryInfo : ObjectNotFound: (__file__:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\mrd26\OneDrive\Desktop\hello> import sys
import : The term 'import' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
- import sys
-
+ CategoryInfo : ObjectNotFound: (import:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\mrd26\OneDrive\Desktop\hello> import os
import : The term 'import' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
- import os
-
+ CategoryInfo : ObjectNotFound: (import:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
file : The term 'file' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:33
- sys.path.append(os.path.dirname(file))
-
~~~~~~~~
- CategoryInfo : ObjectNotFound: (file:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
- %load -r 1-5 c:\Users\mrd26\OneDrive\Desktop\CS for All\interp.py
-
+ CategoryInfo : ObjectNotFound: (%load:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\mrd26\OneDrive\Desktop\hello>
ipython : The term 'ipython' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
- ipython
-
+ CategoryInfo : ObjectNotFound: (ipython:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
%load : The term '%load' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
- %load -r 1-5 c:\Users\mrd26\OneDrive\Desktop\CS for All\interp.py
-
+ CategoryInfo : ObjectNotFound: (%load:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
In the terminal sub-pane of VSCode, there is an option for IPython in the dropdown menu (1 is powershell, 2 is debug terminal, 3 is Python, and 4 is IPython.
It just seems like IPython is not working.
Can somebody help me?
Thank you