[Python] VS Code, ipython and uv

Discussão em 'Python' iniciado por Stack, Fevereiro 24, 2025.

  1. Stack

    Stack Membro Participativo

    a few months ago, I switched from Spyder to VS Code. One of the main reasons was the integration of Jupyter notebooks (as a plugin) and presumably better debugging functionality. Also it seemed to me, that the package manager uv (which I also wanted to start exploring) was more accessible with the terminals in VS Code (it's great btw).

    I am quite used to the spyder workflow and its ipython integration (F5 to run files, F9 to execute selected code, etc.). Hence, I wanted to continue coding like that and with the ipython plugin in VS Code, this was indeed possible. Actually, I was very happy how CS Code, ipython and uv fitted well together.

    However, for some reason my system stopped working a few days ago and I have no idea what has caused this issue. Whenever I try to create a new dedicated ipython terminal, I get the following error message in the terminal:

    PS C:\Users\path_to_code> ipython --no-autoindent --InteractiveShellApp.exec_lines="%load_ext autoreload" --InteractiveShellApp.exec_lines="%autoreload 2"
    ipython : Die Benennung "ipython" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad
    korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
    In Zeile:1 Zeichen:1
    + ipython --no-autoindent --InteractiveShellApp.exec_lines="%load_ext a ...
    + ~~~~~~~
    + CategoryInfo : ObjectNotFound: (ipython:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


    Sorry, it's in German. It translates to something like this:

    PS C:\Users\path_to_code> ipython --no-autoindent --InteractiveShellApp.exec_lines=“%load_ext autoreload” --InteractiveShellApp.exec_lines="%autoreload 2”
    ipython : The term 'ipython' was not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name and make sure that the path,
    if any, is correct, and then try the operation again.
    In line:1 char:1
    + ipython --no-autoindent --InteractiveShellApp.exec_lines="%load_ext a...
    + ~~~~~~~
    + CategoryInfo : ObjectNotFound: (ipython:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


    OS is obviously windows. Has anyone a similar setup and had to deal with this problem?

    Continue reading...

Compartilhe esta Página