I have read that there is version of python in visual studio 2017.
I have read that it contains Django.... since, I think a good debugger, and IDE like visual studio would be great for web development... I wonder if it is possible.. to develop python & Django using Visual Studio 2017?
Pycharm is the best IDE for python development I think. You can try it. hope helpful.
Related
I installed WSL2 and use Visual Studio (VS) 2022 on the windows. I want to configure my VS 2022, so I can develop Python projects in WLS2. All tutorials I find online only talks about visual studio code. I don't want to install another IDE. Does anybody know how to do that or point me to some material?
Unfortunately not at this time, no. The VSCode integration with WSL is done through the use of an extension that creates an interop server between Windows VSCode and the Linux side of WSL. There isn't an extension like that for Visual Studio, however.
The only WSL integration that I'm aware of in Visual Studio 2022 is the inclusion of a WSL toolchain that allows you to target WSL/Linux in C++ projects. But nothing that I'm aware of for Python, no.
I believe you'll need to install an additional IDE to get Python/WSL support, sorry.
Not sure if VS is available for Linux or WSL2 yet.
If you look at https://visualstudio.microsoft.com/downloads/, only Windows & Mac seem to be supported.
So you have 2 main options:
Use VS on Windows itself. Then you just need to install the Python Tools for Visual Studio (PTVS) to be able to support Python development
Use VS Code on WSL2 - it's pretty lightweight to install anyway as a code editor, but can be endowed with comparable features to VS
EDIT: It may be that I'm misunderstanding the question as pointed out below by NotTheDr01ds, and instead you want to target WSL2 from the VS IDE, developing Python.
I'm able to debug python programs and would like to use jupyter notebooks, but I do not see the Python Extensions under Manage Extensions. I have VS Professional 2019 and many of the Marketplace examples that I'm seeing are not what I see.
This is a picture of my VS screen. When I search I do not find pylance or jupyter extensions.
I reviewed the information on https://code.visualstudio.com/docs/python/jupyter-support and https://towardsdatascience.com/jupyter-notebook-in-visual-studio-code-3fc21a36fe43 and they show using CTRL+SHIFT+P to open the Command Palette and this does not do anything in VS Professional or Community 2019. I also tried VS Community 2019 and I'm getting the same results.
I've also watched Jeffrey Mew's video on Jupyter Notebooks in Visual Studio Code and Tyreke White's video Getting Started with Python in Visual Studio Code and it doesn't match what I see in VS.
You can install Azure Data Studio to use Jupyter notebook in it or Google Colab.
The only way I found you can use Jupyter Notebooks in Visual Studio 2019 is through an Anaconda install. Then you can import the related Jupyter modules that come with Anaconda.
Jupyter Notebook isn't available as an extension in Visual Studio Marketplace.
Differences between Visual Studio 2019 and Visual Studio Code -- and a way to help decide which of the two you should use.
I am facing the same issue working with Python in Visual Studio Professional and not Visual Studio Code where almost all python related content is targeted to "VS Code" instead of "VS".
However, I tried to search for the "Jupyter" through the "Manage Python Packages" of the Python Environment through the Pypl. Jupyter is there, and I installed it. Didn't try it out though, but just thought to share the info with you here.
I work Python and django with linux(ubuntu) also I work C# with visual studio 2010
but I want to work Python & django with visual studio 2010, i do first steps for programming in this but cannot run projects in browser like linux.
please help me about this?
I'm not sure I get your question... But to get python to work in visual studio you need to be able to compile it.
If you want an easy fix use pytools:
http://pytools.codeplex.com/
If you want to do it yourself Read up on python compiling for VS here:
https://wiki.python.org/moin/VS2010
Possibly a dumb question, but after a lot of searching, I haven't yet found an unambiguous answer. The site states
Pyvot requires CPython 2.6 or 2.7 with the Python for Windows
extensions (pywin32) installed, and Office 2010.
Although there's no mention of Visual Studio, it could well be assumed since the page is titled "Python Tools for Visual Studio." If anyone has run it successfully without VS, I'd love to know (I don't currently have Office 2010, or I'd try it myself)
I managed to get a hold of Office 2010 and can confirm that Pyvot doesn't require Visual Studio or even Python Tools for Visual Studio.
[EDIT: Although I haven't tested extensively, it seems to work just fine with Office 2003!]
I installed iron python 2.7.3
and python tools for visual studio 1.1
but when i try to create a new python project it only offers me to create a command-line application.
I wanted to create a GUI with iron Python so i was looking forward to create a WPF project. The documentation states that it should be available if I installed iron python. Did I do anything wrong? I tried reinstalling both iron python and python tools.
After installing it. Did you setup the interactive and interpreter settings to use your ironpython 2.7.3?
Step "3. Getting PTVS": http://pytools.codeplex.com/wikipage?title=Installation%20-%20details&referringTitle=Home
You should see your IronPython 2.7.3 version on the dropdown list on both screens under Tools > Options > Python Tools
And, for me, it worked, all templates are available:
UPDATE: Look for the templates folder:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\IronPython Interpreter\1.5\Templates\Projects
You should have:
- ConsoleProject
- SilverlightProject
- WinformsProject
- WpfProject
You may have a problem with the templates, so look at this website and find out exactly how project templates work and where are all located so you can try to fix them yourself (if the problem persists).
Visual Studio Templates
http://msdn.microsoft.com/en-us/library/vstudio/6db0hwky(v=vs.100).aspx