I use Intellij IDEA for python, and it used to show every error I made on it. For some reason now, even if I do something that is clearly wrong, that check mark on the side always shows up. I tried fixing it, but that didn't work.
Related
I am wondering if anybody knows how to get the # back to the toolbar in Spyder 5.1.5. I used to use that a lot when searching for functions in long codes of mine. Recently, I updated to the most recent version of Spyder and could not find # anywhere. Now, I need to scroll down a lot to see where the functions I am looking for are.
Using find is also OK, but for that, it is better to remember the name of the function correctly. So, this makes searching and finding last a lot longer than using one click to the # button.
Any ideas of how to get the # back?
Or does anybody use any other tool/shortcut to access the functions inside a very long code?
Thanks in advance.
I don't know how this happens or why,
but I'll be in a jupyter notebook grouping by things and I will very conciously type in dataframe.groupby, write some other code and hit ctrl+ enter
and there will be that damn error. Every single time, I will go back and delete the 'groupyouby' and type in groupby.
I doubt that anyone has run into this error,and I don't know how long it will be until someone else creates the mess of libraries that I have that resulted in this chinese water tourture like nightmare. I am here, to let you know, that you are not alone.
Also if someone has a fix that would be great. I got nothing for you other than that description above.
Grammarly was the cause of this.
If you use jupyter notebooks and have the grammarly extension. It will cause problems.
So this happens and I have tried retyping it the def statement. How can I fix this? I don't know when it started happening or why it happens but I know that I got it working once I think from restarting the program. This is python btw
https://i.stack.imgur.com/5A7kS.png
You should make sure your indentation is uniform (always 4 spaces). Starting with if Submit == "yes":, your lines have one extra space. This will be easier to do if you use a better IDE than IDLE, which will automatically highlight and label problems like this. Some good alternatives are Spyder (which is free), and PyCharm (which is free for students).
I've been searching everywhere for an answer to this but to no avail. I want to be able to run my code and have the variables stored in memory so that I can perhaps set a "checkpoint" which I can run from in the future. The reason is that I have a fairly expensive function that takes some time to compute (as well as user input) and it would be nice if I didn't have to wait for it to finish every time I run after I change something downstream.
I'm sure a feature like this exists in PyCharm but I have no idea what it's called and the documentation isn't very clear to me at my level of experience. It would save me a lot of time if someone could point me in the right direction.
Turns out this is (more or less) possible by using the PyCharm console. I guess I should have realized this earlier because it seems so simple now (though I've never used a console in my life so I guess I should learn).
Anyway, the console lets you run blocks of your code presuming the required variables, functions, libraries, etc... have been specified beforehand. You can actually highlight a block of your code in the PyCharm editor, right click and select "Run in console" to execute it.
This feature is not implement in Pycharm (see pycharm forum) but seems implemented in Spyder.
I'm using Atom at work for editing Python code, and I'm running against a painful interaction between muscle memory and a labor-saving feature.
Near as I can tell, Atom will, when you paste a snippet of code, redo the indentation so that it's consistent with the indentation of the line it was pasted into, preserving relative indents.
If I didn't have any baggage from using editors without this feature, I'm pretty sure it'd be great, but as it is, I can't break my habit of selecting back to the preceding newline, and pasting that, which tends to do crazy things when pasting to or from the first line of a block.
I've tried to turn off Auto Indent on Paste, but it's not on anywhere I can find, and I'm not even sure it's the same feature; it's just what I hear about from people complaining about Atom going crazy when they paste Python.
So, where do I look to disable this? I'm willing to work up from no extensions back to what I've got installed, so assume a vanilla install.
I guess the workflow I'm looking for is "paste, manual re-indent", because at least that way I know what I'm getting and my response is always the same. As it stands, I don't have to think about it until it converts simple line rearrangements into syntactic garbage, which is worse than just adjusting things every time.
EDIT: In response to Milo Price, I have just now tried setting both autoIndentOnPaste and normalizeIndentOnPaste to false. The behavior is unchanged.
FURTHER EDIT: I had to reload the configuration for it to take. It's working now.
You have to set the config options autoIndentOnPaste and normalizeIndentOnPaste both to false, and then reload the configuration.