programing tip

Spyder 편집기 배경을 어둡게 변경하는 방법은 무엇입니까?

itbloger 2020. 11. 7. 09:03
반응형

Spyder 편집기 배경을 어둡게 변경하는 방법은 무엇입니까?


방금 Spyder를 버전 3.1로 업데이트했는데 색 구성표를 어둡게 변경하는 데 문제가 있습니다. Python과 iPython 콘솔을 어둡게 변경할 수 있었지만 편집기를 어둡게 변경하는 옵션은 내가 예상했던 곳이 아닙니다. 누구든지 Spyder 3.1 편집기의 색 구성표를 어둡게 변경하는 방법을 알려줄 수 있습니까?


이동하십시오

Tools > Preferences > Syntax Coloring

사용하려는 어두운 테마를 선택하십시오.


Tools->Preferences->Syntax coloring->Scheme changed to "Spyder Dark"

Linux에서 apt-get을 통해 여전히 설치된 Spyder 2.3의 경우 다음을 통해 테마를 변경합니다.

Tools > Preferences > Editor > Syntax Color 

그만큼

Tools > Preferences > Syntax Coloring

다른 테마를 조정하는 옵션 만 표시하고 실제로 다른 테마를 적용하지는 않습니다. Spyder 3.x는 Syntax Color를 통해 두 번째 옵션을 사용합니다.


MacBook Pro (OS X)를 사용하는 경우 다음 단계를 따르십시오.

python > Preference > Syntax coloring

여기에 이미지 설명 입력

여기에 이미지 설명 입력


에서 우분투 스파이더 2.3.8 , 나는이 작업을 수행하는 몇 가지 설정을 발견 - 윈도우의 다른 부분에 대한 각각의 하나는 ... 당신이 비록 모든 영역의 어둠을 할 수없는 것 같다.

편집자

조사관

콘솔

역사

IPython

최종 결과는 다음과 같습니다.

결정적인


나는 에디터 다크 스킴을 IPython 다크 스킴과 일치시키는 것을 좋아합니다. IPython에 관해서는

Tools > Preferences > IPython cosole > display tab

그리고 확인하십시오 Dark background.

커널을 다시 시작하십시오. 그런 다음 가져올 때 얻는 색상을 확인합니다. 내 spyder2 (python 2.7)는 Anaconda의 ipython 5.3.0을 사용하고 가져 오기는 분홍색이며 편집기에 가장 적합한 체계는 Monokai입니다.

Tools > Preferences > Syntax coloring

내 spyder3, 어두운 IPython (2.4.1) 배경을 선택하면 Monokai와 약간 다른 색상이 인쇄되지만

Tools > Preferences > Syntax coloring  

Monokai탭으로 이동 하여 색상을 약간 조정합니다. 빌트인을 라일락에서 시안으로 바꿔야 했어


I tried the option: Tools > Preferences > Syntax coloring > dark spyder is not working.

You should rather use the path: Tools > Preferences > Syntax coloring > spyder then begin modifications as you want your editor to appear


I think some of the people answering this question don’t actually try to do what they recommend, because there is something wrong with way the Mac OS version handles the windows.

When you choose the new color scheme and click OK, the preferences window looks like it closed, but it is still there behind the main spyder window. You need to switch windows with command ~ or move the main spyder window to expose the preferences window. Then you need to click Apply to get the new color scheme.


@D.Wolf -- if Preferences doesn't appear in the drop-down under Tools, there is also an icon in the toolbar that is a direct path to tools -> Preferences, and the Syntax Coloring is on the left-hand side. See the wrench? Just click that.


On mine it's Tools --> Preferences --> Editor and "Syntax Color Scheme" dropdown is at the very bottom of the list.


I've seen some people recommending installing aditional software but in my opinion the best way is by using the built-in skins, you can find them at:

Tools > Preferences > Syntax Coloring


hey there go to GITHUB link here(https://github.com/joonro/Spyder-Color-Themes) do as the page says u can get the stunning tomorrow night theme


At First click on preferences(Ctrl+Shift+alt+p) then click the option of syntax coloring and change the scheme to "Monokai".Now apply it and you will get the dark scheme.


1.Click Tools
2.Click Preferences
3.Select Syntax Coloring


I want to add that you can change the theme of Spyder 3 to a dark on Linux by using:

Qtmodern


Install Qtmodern with pip3

pip3 install --user qtmodern

Open the file:

python-site-packages/spyder/app/mainwindow.py

Import modern style

Find:

# Qt imports

Add:

import qtmodern.styles
import qtmodern.windows

Theme the app

Find method:

def run_spyder(

Add:

#wrapper for custom theme
qtmodern.styles.dark(app)

Theme the window

Find:

main.show()

Replace it with:

##wrapper for dark window theme
mw = qtmodern.windows.ModernWindow(main)
mw.show()

Yes, that's the intuitive answer. Nothing in Spyder is intuitive. Go to Preferences/Editor and select the scheme you want. Then go to Preferences/Syntax Coloring and adjust the colors if you want to. tcebob

참고URL : https://stackoverflow.com/questions/40595961/how-to-change-the-spyder-editor-background-to-dark

반응형