[program-l] Re: Terminals in vscode

  • From: Florian Beijers <florianbeijers@xxxxxxxxx>
  • To: program-l <program-l@xxxxxxxxxxxxx>
  • Date: Sun, 18 Nov 2018 18:02:28 +0100

Hmm,

Is that to activate the virtual environment?
By default, Powershell might not allow you to just run 3rd-party scripts,
have a look at the execution policy docs.
Alternatively, use a regular cmd.exe commandline window rather than
powershell, and use activate. bat rather than activate.ps1. That should
work without issue.



Op zo 18 nov. 2018 om 17:21 schreef <sonfire11@xxxxxxxxx>:

The flask tutorial for vscode told me to run “env/scripts/activate.ps1”.
How do you do that in a standard terminal window? Powershell tells me that
scripts are not allowed, and cmd tells me that it needs to know what app to
use when opening .ps1 files. I wonder if Visual Studio is a better option
for python development?





*From:* program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> *On
Behalf Of *Florian Beijers
*Sent:* Sunday, November 18, 2018 10:46 AM
*To:* program-l <program-l@xxxxxxxxxxxxx>
*Subject:* [program-l] Re: Terminals in vscode



Hi,



They are not, although work was put in to start that a while ago.

I recommend opening code from the terminal using the "code ." command from
within your project, opening the current folder in VS Code and having a
terminal open in the same folder. Then, run your terminal commands in the
separare commandline window rather than the VS Code console. Dante, do you
know if this is still being worked on?



Florian



Op zo 18 nov. 2018 om 16:01 schreef <sonfire11@xxxxxxxxx>:

Hi,



I am trying to run a terminal in vscode. Unfortunately, when I type
something like pip install flask, I see no output and the text of the
command stays inside the input box. Are terminal windows accessible in
vscode 1.29?






Other related posts: