How can I get sublime to stop outlining my comments? - python

I have been trying to get sublime to stop outlining my comments with python but am having a hard time. I am not sure if it is one of the packages I downloaded, or the language I am using. It makes it difficult to read whats in the comments sometimes. I am new to programming and this text editor and would appreciate any help, thanks! Here's what it looks like
The packages I installed are anaconda, Djaneiro, Emmet, PyV8, requirementstxt, sidebarenhancements, sublimeLinter, and sublimeREPL.

Since you installed the anaconda package you need to add the following package setting:
"anaconda_linting":false
See the Anaconda Python IDE docs
There is people that doesn’t care about linting or they just use another plugin to do it, they can completely deactivate this feature setting the anaconda_linting as false in the anaconda or project configuration.
note: imports validation depends of anaconda linting handler so it will not work if anaconda linting is disabled

Related

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.

Getting Pip working in PyCharm on MacOS 10.14.5

I'm a python noob working through this intro to python: https://www.youtube.com/watch?v=rfscVS0vtbw. (definitely no need to watch this. Just adding it as context)
It's been going really well, except now I'm up to the part where I need to use pip, and despite having downloaded version 3.8 of Python, it keeps telling me that it doesn't even have pip installed.
I'm wondering if anyone could walk me through what the issue might be and how to actually start using pip in PyCharm.
I've tried downloading pip and installing it but even that doesn't seem to work. If anyone has an ultra-hand-holdy solution (very much for a noob) that would be appreciated.
I feel like the problem might be that I'm putting things in the wrong directories or something? Obviously there are some built-in versions on Python (2.x) already on the Mac so maybe they are interfering?
Thanks in advance for your help.
If I recall correctly, the version of Python that is used when you use the command python is the 2.x version, which doesn't have pip. So if you want to use python in terminal, you should call it as python3 and pip3 for using the pip command.
If you want to set a different Python version as the default one, you can do that. Here is a tutorial that can get you started with that (there's a plethora of other tutorials if this one isn't clear enough): https://opensource.com/article/19/5/python-3-default-mac
For using PyCharm specifically, you can setup the Python interpreter that is used with PyCharm by going to Preferences(or Settings) -> Project:[name of your project] -> Project Interpreter and then chose the desired Python Interpreter from the drop down menu. You can also create a virtual environment there by clicking on the cog icon and choosing Add. This is the preferred way and very convenient to keep installed packages local to your project. After you're done with that, open up PyCharms terminal (at the bottom of your PyCharm window) and you should be able to normally use pip with the command pip.
Alternatively, you can install Python packages in PyCharm using their built in package manager that you can find in the same window where you set your Python Interpreter. Below the dropdown menu you'll see a + sign, where you can click to add packages.

Go to implementation doesn't work for Python in IntelliJ Idea

Image link of directory structureNothing happens if I press Ctrl+Alt+B in my python project on IntelliJIdea and it feels as if this feature is not supported for Python in IntelliJ, from whatever I read, PyCharm has this feature, and considering both are from JetBrains, I fail to understand how that is not working.
Same for library method options, I've installed scikit-learn in my conda environment but when I press control+space after scikit-learn. I don't see any suggestions coming my way. I need solution to both these issues, if IntelliJ does support both these features for python or I've to go to pyCharm which is kind of a let down honestly.

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.

SublimeREPL for IPython under Windows not possible. Any workaround?

SublimeREPL says 'IPython doesn't work under SublimeREPL on Windows' when I select Ipython from it.
Is there any solution out there for this great plugin to work with IPython on Windows as well.
tl;dr: try master branch from github. If something doesn't work, get in touch with me (github issues), I'll try to help:)
Hi everyone,
there is no need for such heated discussion :) SublimeREPL is in a bit of a transitional state right now. Development is progressing steadily (https://github.com/wuub/SublimeREPL/commits/master) with most of my personal focus on Python/IPython.
However there was no release to Package Control for some time now, since I switched to Sublime Text 3 and Linux in march. This is mostly because ST2 (python2) -> St3 (python3) port dropped some functions, and compatibility with OSX & Windows isn't 'production ready' yet. I'm afraid to release current code to everyone, as it'll most definitely not work for some people.
To cut the long story short. SublimeREPL version available in Package Control is stable but out of date. SublimeREPL from git master is used daily by me and several other people, but I test it only on Linux.
Will Bond is planning to roll out new version of Package Control soon (https://twitter.com/wbond/status/334753348018388992). It will allow me to target specific versions of SublieText with different code, and roll out new code separately for compatible platforms.
On a related note: SublimePTY was not updated for a very long time and its future is uncertain at best.
If you haven't made any changes to config files within the Packages/SublimeREPL directory, try erasing/backing it up, and running the following in the Packages directory:
git clone git://github.com/wuub/SublimeREPL.git
to get the absolute latest version. Assuming you have IPython set up properly on your system, you should be able to choose Tools -> SublimeREPL -> Python -> Python - IPython and have it run fine. Make sure you have the latest build of Sublime Text 2. I have it set up at work on WinXP with ST2 Build 2220, IPython 0.13.2, and the latest versions of NumPy and matplotlib/pylab, and it works like a charm.
If this still doesn't work, let me know and I'll try and walk you through it...
When I did a search, the first Google result took me to the Sublime Forums, where this thread says "IPython is working on Windows for some time now".
So, It seems like you just need a newer version of Sublime Text and/or SublimeREPL.
Alternatively, as the SublimeREPL FAQ says:
Is this a terminal emulator?
No. Shell (cmd.exe/bash) REPL can be used for simple tasks (file creation, git init etc.) but anything terminal like (mc, ipython, vim) will not work! SublimeREPL has a sister project: SublimePTY that aims to bring real terminal emulator to SublimeText2.
That seems a little out of date, but you can try SublimePTY anyway.
Finally, it looks like the author of SublimeREPL follows the Sublime Forum pretty closely, and in fact a large chunk of the forum seems to be devoted to plugins. So, you will probably do better asking there, rather than here.

Categories

Resources