I am currently using Pycharm. What I like about PyCharm are the following:
Simplicity of creating virtualenvs
Intellisense
GUI package installer
Console (automatically activates the venv)
However, I also lacked the following
intellisense for javascript (I believe they require a paid
license)
I recently tried visual studio but it lacked
GUI package installer
Is there an ide that can give me all the aforementioned features? I need to use this ide for full stack development in Python
Related
I have Anaconda installed in my system and personally use jupyter notebook for my development. The problem is I want to debug my code with a visual debugger which jupyter doesn't support Reference.
Could you introduce some tool which gives full visual debugging experience and also works well with Anaconda?
This one seems appropriate to me but as mentioned in the comments, It's problematic in windows 10.
I recommend VSCode. I'm using it myself with anaconda and python interactive files, plus full debugging experience is available. In my opinion, it's the best IDE for DS with python (see link).
I am fairly new to python. So I installed python and my editor is Visual Studio Code. The Intellisense seems to work for this code (extension BeautifulSoup):
enter image description here
But it doesn't work for this:
enter image description here
I tried to restart my computer, but it didn't help.
I have also tried to use virtual enviroments and I also selected the right associated interpreter. To use python in Visual Studio Code, I installed following extensions:
MagicPython
Pylance
Python
Python Extension Pack
Visual Studio IntelliCode
Do you have any Idea why my Intellisense is not working for packages?
In VS Code, the "Intellisense" function of Python code is provided by the the Python extension, and the language service provided by "Pylance" provide us with docsing content.
Therefore, it is recommended that you "disable" other extensions to avoid interference between them and affect the use of the "Intellisense" function.
In addition, if it still doesn't work, please reinstall the Python extension and reload VS Code.
I'm used to use VS to code C++ and Eclipse to code python but lately I have tried VS for both languages.
I found something very difficult to understand that while VS autocompletes it doesn't warn you about errors before runtime.
There is no warning regarding non existent variables or methods. I can't believe that VS does not warn about this kind of typical coding issues as it does for C++ code (as every IDE does).
What am I missing?
I tested this with VS2013 and VS2015.
I'm expecting something like:
Thanks
In order to get the python detailed IntelliSense support in VS2015 you have to install python tools for visual studio which provide the following:
CPython, PyPy, IronPython and more
Detailed IntelliSense
Interactive debugging
Integrated with Visual Studio features
Free and open-source
And the best thing, it's completely free.
Just download it from here:
https://www.visualstudio.com/en-us/features/python-vs.aspx
I hope it supports your question.
Update after comment:
You just need to refresh the Database. It works for me. Check to make sure the environment options are set (specifically path variable to PYTHONPATH) and the DB is refreshed.
Sometimes Deleting the __init__.py file in my source root directory did the trick
It seems that with a regular Python installation (2.x or 3.x in 32bit or 64bit) there are limited "warnings" (hovering over an undefined variable gives "unknown type"), but Syntax Highlighting / Intellisense doesn't seem to work.
Intellisense NOT Working:
Getting Intellisense to Work:
After some research I tried installing another Python interpreter for Visual Studio to work with. I went with Iron Python because it is "tightly integrated with the .NET Framework".
Download it from here --> http://ironpython.codeplex.com/downloads/get/970325
After installing IronPython open Visual Studio and set it as the "Default Environment for New Projects". You can set it in "Tools" --> "Python Tools" --> "Python Environments" (or by pressing Ctrl + K + `)
Make sure to refresh the database and Syntax Highlighting will start working. It doesn't seem very thorough, but it is there.
See photo below:
Does anybody have documentation on how to set up the Canopy Python environment as an interpreter within Visual Studio? I am new to VS and Canopy so I apologize if this seems trivial. I have read the following sites but still struggling to get Canopy integrated as the interpreter. Currently Python 64bit 2.7 is the only interpreter that shows up.
Install
https://pytools.codeplex.com/wikipage?title=PTVS%20Installation
Environments
http://pytools.codeplex.com/wikipage?title=Python%20Environments
Python Tools for Visual Studio (PTVS) will typically automatically detect Canopy and show it as "Python 2.7 64-bit". You can check to see if it is detecting Canopy by selecting 'Environment Options' in PTVS. The path in 'Path' by default will be something like ...\AppData\User\Enthought\Canopy\User... If this is what it is finding, you should be set.
If the Python interpreter PTVS is finding is not Canopy, then it sounds like you have another version of Python installed. This is ok and there are two options.
If you want it to find Canopy automatically, you need to be running Canopy 1.1 or later and make it your default Python environment. To update Canopy if needed, go to Help -> Software Updates. Then to make it your default Python environment, Edit -> Preferences and click the button to make it your default. This has the effect of changing some Python-standard registry keys.
If you don't want Canopy to mess with your environment, that's completely fine, too. You can get the same effect by clicking 'Add environment' in the PTVS environment options dialog. The settings for a default Canopy install are:
Path: C:\Users\\AppData\Local\Enthought\Canopy\User\python.exe
Windows path: C:\Users\\AppData\Local\Enthought\Canopy\User\pythonw.exe
Lib: C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.1.0.1371.win-x86_64\Lib
Note that the first two point to the 'User' environment whereas the last points into the core install.
The upcoming Canopy 1.2 release in a couple of weeks will include more complete integration with PTVS and Visual Studio that will automate this and remove the need for Canopy to be the default Python environment.
I'm looking to be working on a Python app. Does Python Tools for Visual Studio support 3rd-party libraries, such as Twisted?
3rd party libraries will run just fine. To get intellisense against them they'll need to be installed in site-packages or part of your project. If you install them after installing PTVS you'll need to run Tools->Options->Python Tools->Interpreter Options and select the interpreter you have configured and regenerated the completion database. Alternately you can have the libraries as part of your project and they'll be analyzed in real time.
You also seem interested in some specialized app... If that app is a pure Python app that starts up like "python.exe app.py" you'll have no problems at all. You may need to setup a custom interpreter again in Tools->Options->Python Tools->Interpreter Options which points at the specific python.exe that the app is using if it's a special app specific build.
If the app is actually a C++ app which is hosting Python life is a little more difficult. You should have no problems editing the code in PTVS but debugging will probably need to be accomplished by doing Debug->Attach to Process. This should work if the app is hosting a normal Python build and has it dynamically linked. PTVS will discover the Python interpreter and inject it's debugging script into the process. The workflow might be a little cumbersome doing the attach each time after launching but if you're not restarting frequently it shouldn't be too bad
PTVS is just an IDE. So it does not need to "support" any libraries - they just need to be in your PYTHONPATH so your python code can import them.
However, chances are good that PTVS cannot launch a twisted-based daemon using twistd like you would do on the command line...