import IPython; IPython.embed()
์๋ ์์์ด ์์ต๋๋ค. https://github.com/ipython/ipython/issues/9450 ์ ๊ด๋ จ์ด ์์ง๋ง ์ค๋๋์์ต๋๋ค.
์์ดํ์ด์ฌ 7.1.1
ํ์ด์ฌ 3.6.6
์ฐ๋ถํฌ 18.04
์ฌ๊ธฐ๋ ๋ง์ฐฌ๊ฐ์ง์ ๋๋ค.
์์ดํ์ด์ฌ 7.1.1
ํ์ด์ฌ 3.7.0,
๋งฅ OS X 10.14
์ฌ๊ธฐ๋.
์์ดํ์ด์ฌ 7.2.0
ํ์ด์ฌ 3.6.6
RHEL 7.4 / ๋งฅ OS 10.14
์ด ๋ฌธ์ ๋ #11265์์ ๋ฐ์ํ ๊ฒ ๊ฐ์ต๋๋ค.
์ด์ ๊ธฐ๋ณธ๊ฐ์ด 'NoColor'์ ์์์ ์ผ๋ก ์์์ ํ ๋นํ๋ ์ด์ ๋ ๋ฌด์์ ๋๊น?
๋๋ฌ์ด ์์ ์ ์ํด ์ค์ ํ์ต๋๋ค.
IPython.embed(using=False)
์ด๊ฒ์ ๋ถ๋ช
ํ ์ฝ๋๋ฅผ ๋จ์ฉํ๊ณ IPython.core.async_helpers._AsyncIORunner
๋์ IPython.core.async_helpers._pseudo_sync_runner
ํฉ๋๋ค. ์ ํน๋ณํ ๊ฒฝ์ฐ์๋ ์๋ํ์ง ์์ ๋ถ์์ฉ์ด ๋ฌด์์ธ์ง ์ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค.
์ฐ๋ฆฌ๋ ๋ํ 5.x์์ ์ ๊ทธ๋ ์ด๋ํ๋ ๊ฒ์ ๋ฐฉํดํ๋ ์ด ๋ฌธ์ ๋ฅผ ๊ฒช๊ณ ์์ต๋๋ค... ์ด ๋ฌธ์ ๋ฅผ ์์ ํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
์, ์ด๊ฒ์ ์ด์ํ ํ๋์ ๋๋ค. ์ ๊ฒฝ์ฐ์๋ @topherocity ์ ์๋ฃจ์ ์์ด ์ ์ฒด ๊ตฌ์ฑ์ ๋ฎ์ด์๋๋ค.
์ฌ์ ํ ๋ฌธ์ ์ธ ๊ฒ ๊ฐ์ต๋๋ค.
Windows์ Linux ๋ชจ๋์์ ์ฌ์ ํ ๋ฌธ์ ์
๋๋ค. BTW ์ด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋๊ธฐ ์ ์ %colors linux
๋๋ %colors lightbg
๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
Windows์ Linux ๋ชจ๋์์ ์ฌ์ ํ ๋ฌธ์ ์ ๋๋ค. BTW ์ด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋๊ธฐ ์ ์
%colors linux
๋๋%colors lightbg
๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
@Arnie97 ์์ธํ %colors linux
์ฌ์ฉ"์ด ๋ฌด์์ ์๋ฏธํ๋์ง ๋ชจ๋ฅด๊ฒ ์ต๋๋ค.
์๋ฒ ๋๋ ํฐ๋ฏธ๋์ '%colors linux'๋ฅผ ์ ๋ ฅํ๊ณ ์ํฐ๋ฅผ ๋๋ฆ ๋๋ค.
์ด๊ฒ์ ์ฐ์ฐํ ๋ฐ๊ฒฌํ ์ฌ๋์ ์ํด ์ ๋ ๋ค์๊ณผ ๊ฐ์ด ๊ณ ์น ์ ์์์ต๋๋ค.
IPython.embed(colors="neutral")
@banol๋ ๊ฐ์ฌํฉ๋๋ค!
์ด๊ฒ์ด ๋ค๋ฅธ ์ฌ๋๋ค์๊ฒ๋ ๋์์ด ๋๊ธฐ๋ฅผ ๋ฐ๋ผ์ง๋ง ๋ค์์ ๊ธฐ๋ณธ์ ์ผ๋ก ์ ๊ณต๋๋ ์์ ์ ํ ๋ชฉ๋ก์ ๋๋ค. ์ด๊ฒ์ ์ง์๋์ง ์๋ ์์ ํน์ฑ์ ์ฌ์ฉํ๋ ค๊ณ ํ๋ฉด ๋ฐ์ํ๋ ์์ธ์์ ๊ฐ์ ธ์ต๋๋ค.
The 'colors' trait of an InteractiveShellEmbed instance must be any of ['Neutral', 'NoColor', 'LightBG', 'Linux'], but a value of True <class 'bool'> was specified
"Linux"
์์ ํน์ฑ์ ์ฌ์ฉํ๋ ๋ ๋ค๋ฅธ ์์
๋๋ค. Linux ์์์ ์ฌ์ฉํ์ฌ ๋ฉ์ง ๋ฐ์ง์ด๋ ์์์ ํฐ๋ฏธ๋์ ์ป์ต๋๋ค.
$ python -c 'import IPython; IPython.embed(colors="Linux")'
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]:
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด๊ฒ์ ์ฐ์ฐํ ๋ฐ๊ฒฌํ ์ฌ๋์ ์ํด ์ ๋ ๋ค์๊ณผ ๊ฐ์ด ๊ณ ์น ์ ์์์ต๋๋ค.