When using ipython, sometimes it’s very uncomfortable for copy & paste some code. Ipython use auto indentation, so it goes wrong with indent.
I want to figure out how to solve this issue - and I found the solution.
IPython has --no-autoindent options. For default, ipython use --autoindent but you can use --no-autoindent option to turn off indentation.
ipython --no-autoindent
Python 3.6.0 (default, Mar 17 2017, 22:33:12)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: def test_indent():
...: print('testing --no-autoindent')
...:'backend > python' 카테고리의 다른 글
| python: distributing package (0) | 2018.12.19 |
|---|---|
| python: photo encrypt using python (0) | 2018.11.28 |
| python: make variable from dict (0) | 2018.07.25 |
| python: pyenv, virtualenv, auto in mac os (0) | 2018.06.28 |
| python: make flat list (0) | 2018.06.22 |