Python IDEs with Full Debugging Support - python

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).

Related

What is difference between Python & Pylance VS Code extensions?

I just shifted from my old bud Sublime to VSCode. I really liked the way it works and the features it has. I'm a newbie python developer. I found two popular python extensions for VSCode: Python, and PyLance. My question is, What is the difference between Python and Pylance extension? I searched a lot but didn't find a good comparison.
As an editor, VSCode cannot recognize all languages and many functions cannot be implemented independently. Therefore, when we use Python code in VSCode, we need to install the 'Python' extension, which provides us with functions such as code completion, support for Jupyter notebooks, debugging Python code, etc. Therefore, the Python extension is one of the necessary dependencies for using Python in VSCode.
The extension 'Pylance' needs to be used in conjunction with the Python extension. It cannot be used independently in VSCode. It mainly provides outstanding Python language services (other Python language services such as "Microsoft", "Jedi", don't need to install specific extensions, they can be used as-is after installation). At the same time, it also provides functions such as docstrings. Therefore, the Pylance extension is not a necessary condition, but a recommended extension.
It is recommended that you install and use these two extensions. They are not opposite extensions, they are VSCode extensions that cooperate with each other (To be precise, the 'Pylance' extension relies on the 'Python' extension to use).
And for more related information, you could refer to the VS Code docs on: Using Python in VSCode and Python and Pylance.

Do I need to install Python if I already have the Anaconda distribution installed and want to use other text editors?

I am new to Python and programming in general and have been using Spyder IDE from the Anaconda distribution for the past few months on Windows 10. It has been really simple and easy to download and use, and I can run all of my code within the IDE, so it has easy for me to begin learning Python.
I have now become more interested in Python and learning to code and am looking to try other text editors like VS Code or Sublime Text. I was wondering, however, if I need to download and install python to be able to run my code in a terminal or will my current Anaconda install be fine to run the code?
If I do need to download Python, will there be any conflicts by having Anaconda installed?
Sorry if I've used the wrong terminology or it's not clear.
No, anaconda downloads the python interpreter/compiler as apart of the package. But if you want to check to make sure, check your python version in the command line (here's a walkthrough on how to do that: https://blog.finxter.com/how-to-check-your-python-version/)
Also, if you did have it downloaded and re-downloaded python again, there wouldn't be any adverse effects. At worst it overwrites your original python file (which isn't a big deal considering they contain the exact same thing) and at best you'll update your version of python.
VS Code or Sublime Text will work fine for editing and running scripts, but are not required. Anaconda comes with the Spyder IDE.
The answer for you will be No.
if you already had anaconda installed in your laptop, once you open it up you will realized you can install Python within the software.
Anaconda will not only included Python, R also will be included.
Spider or Jupiter notebook can be used for edit your Python scripts.

Exactly similar PyCharm alternative

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

Pycharm integration with Anaconda 3.6.0

I'm having a little bit of trouble with Pycharm Community recognizing Anaconda 3.6.0. The interpreter works and runs programs, however, it doesn't seem to be reading the code intuitively and providing any of the suggestive features (autocompletion) or colouring for the different text (i.e all text is just grey). So it's more like a featureless text editor that can run code then a sophisticated IDE at the moment.
When using standard Python 2.7 as the interpreter it has all of the normal features that should be appearing. I thought Pycharm had full support for Anaconda and should have these features. Does anyone have any suggestions as to what to do? Thanks!
I hope you are making sure to select the right interpreter for both the project as well as general interpreter in File->settings. I have installed anaconda for both python 2.7 and python 3. I specify the path of the anaconda version I want to use for the current project and it works fine.

Python Visual Studio extension doesn't show errors

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:

Categories

Resources