A cikin labarin na gaba zamu kalli Spyder (Muhallin Rawar Python na Kimiyya). Wannan yanayi mai ci gaba mai ma'amala don yaren Python. Ina da fasalolin gyara na ci gaba, gwajin mu'amala, cire hankali da hangen nesa, da kuma yanayin lissafi na lamba. Godiya ga goyon bayan IPython (ingantaccen mai fassara Python) da kuma shahararrun dakunan karatu na Python kamar NumPy, SciPy, ko matplotlib (2D / 3D makircin ma'amala). Hakanan za'a iya amfani da Spyder azaman laburaren da ke bayar da dama mai nuna dama cikin sauƙi mai alaka da na'ura mai kwakwalwa don aikace-aikacenmu na PyQt. Ana iya amfani da shi don haɗa na'urar kwantar da hankali kai tsaye a cikin ƙirar ƙirar mai amfani mai zayyanar hoto.
leƙo asirin ƙasa (tsohon Pydee) a bude tushen giciye-dandamali da hadadden yanayin ci gaba (HERE) don shirye-shiryen kimiyya a cikin yaren Python. An saki wannan IDE a ƙarƙashin lasisin MIT. Spyder shine Kalmomin aiki tare da plugins. Ya haɗa da tallafi don kayan aikin hulɗa don bincika bayanai kuma ya haɗa da ingancin sarrafawa takamaiman Python da kayan kida kamar Pyflakes, Pylint, da Igiya.
Kamar yadda na riga na fada, haka ne hanyar IDE ta hanyar hanyar Anaconda, akan Windows tare da WinPython da Python (x, y), akan macOS ta MacPorts. Hakanan akwai shi don manyan rarraba Gnu / Linux kamar su Arch Linux, Debian, Fedora, Gentoo Linux, openSUSE, da Ubuntu.
Tun daga tsakiyar Nuwamba 2017, Anaconda ya dakatar da bayar da kuɗaɗen ci gaban wannan IDE, bayan yin hakan tsawon watanni 18 da suka gabata. Saboda wannan, ci gaba zai mai da hankali daga yanzu kiyaye Spyder 3 a cikin sauri fiye da yadda yake a da, kodayake wannan baya nufin cewa zasu yi watsi da aikin. Kuna iya sani game da wannan labarai a cikin masu zuwa mahada.
Janar fasali na Spyder
- Editan da ke haɗa wannan IDE shine yare daban-daban. Ina da mai bincike / ajin aiki, ayyukan yin kodin (pyflakes da pylint a halin yanzu ana tallafawa), zaɓi na kammala lambar, tsagawa a tsaye da kuma tsaye, da fassarar goto.
- Interactive wasan bidiyo. Python ko IPython consoles filin aiki ne da tallafi don warware lambar nan take da aka rubuta a cikin Edita. Hakanan yana zuwa tare da Matplotlib adadi hadewa.
- Na gabatar da mai duba takardu. Shirin zai iya nuna mana takaddara don kowane aji ko kiran aikin da aka yi a cikin Edita ko a cikin na'urar bidiyo.
- Za mu iya bincika masu canji halitta a lokacin aiwatar da fayil. Zai yiwu a gyara su tare da editocin GUI daban-daban, kamar ƙamus da na Numpy matrix.
- Za mu sami yiwuwar bincika cikin ɗakunan ajiya. Hakanan zai bamu tallafin tallafi na yau da kullun.
- Zamu iya samun Mai Binciken Fayil don mafi ta'aziyya. Hakanan zamu sami damar samun damar yin rikodin tarihin.
- Hakanan za'a iya amfani da Spyder azaman ɗakin karatu mai tsawo na PyQt5 / PyQt4 (module leken asiri). Za a iya amfani da widget din harsashin Python mai amfani da Spyder a cikin aikace-aikacen PyQt5 / PyQt4 naka.
- Ga wanda yake buƙatar shi, zaka iya nemi lambar tushe na aikin da halayensa a shafin GitHub na aikin.
Shigar Spyder
Za mu iya shigar da wannan IDE akan tsarin Gnu / Linux daban-daban, kamar yadda aka nuna a cikin takaddun aikin hukuma. A cikin wannan misalin za'ayi shigarwa akan Ubuntu 17.10. Don daidaitaccen aiki zai zama mana dole mu cika wasu bukatu zama dole. Wadannan dogaro za'a iya yin shawarwari dasu a cikin bukatun sashe, wanda ke cikakken bayanin menene sauran buƙatun da ake buƙata don shigarwa mai nasara. Da zarar masu dogaro sun cika, zamu sami damar yin shigarwar ta buɗe tashar (Ctrl + Alt + T) da kuma bugawa a ciki:
sudo apt install spyder
Hakanan zamu iya shigar da wannan shirin ta amfani da pip. Don yin wannan daga tashar (Ctrl + Alt T) za mu rubuta:
sudo pip install spyder
Cire Spyder din
Zamu iya cire wannan IDE din daga Ubuntu din mu ta hanyar bude tashar (Ctrl + Alt + T) tare da rubuta wadannan a ciki:
sudo apt remove spyder && sudo apt autoremove
Idan muka zaɓi girka ta amfani da pip, za mu iya cire shirin ta hanyar bugawa a cikin tashar:
sudo pip uninstall spyder
Na yi amfani da jagorar tare da CentOS 7.6 ta amfani da pip «shigar»
dole ne a gyara matsala tare da gcc akan kuskuren python.h da aka ɓace ta shigar da ɗakunan karatu mai ɓoye-ɓoye ta amfani da yum
sudo yum shigar da Python-devel # don python2.x shigarwa
sudo yum shigar python3-devel # don python3.x shigar
Bayan haka sai a sanya shi kuma yayi aiki mai girma (idan kuna da abu ɗaya tare da ubuntu kawai gudu)
sudo dace-samun shigar python-dev # don shigarwar Python2.x
sudo dace-samun shigar python3-dev # don shigarwar python3.x