== HOW TO REMOVE IT
IT JUMPS TO NEXT LINE AND UNFORTUNATELY PYTHON STOPS WORKING
HELP, PEOPLE
IN INDENT BLUE LINE WITH SMALL TEETH
(5 posts) (5 voices)-
Posted 2 years ago #
-
I assune you mean the indentation guides. You can disable them here:
tools > options > general > visual help > show indentation guidesBut I don't think that they could cause problems with python or anything else. They are not inserted into the text, they are just a visual help.
Although I'm no moderator here, please don't SHOUT your text completely in capitals...
Posted 2 years ago # -
It is probably telling you that you have mixed spaces and hard tabs in your indentation, which is also probably why your Python program is not working. My guess is you are also getting an "unexpected indent" error message when you try to import or run your Python code.
Note that in the default configuration PN inserts hard tabs, and the pnscriptfile macro mentioned in the PyPN Scripting tutorial inserts a hard tab. Note also that throughout the Python community, and PEP 8 (Style Guide), hard tabs are strongly discouraged.
Mike
Posted 2 years ago # -
Yeah, it's probably the mismatched tabs/spaces like Mike said. I'd turn on View > Mark Whitespace to see what your indents are.
Incidentally, I *love* the title of this post, conjures up such images. Can we nominate this for "best of"?
Posted 2 years ago # -
This is, without a doubt, my favourite topic since the forums started.
Posted 2 years ago #
Reply
You must log in to post.