Mu, shigar da wannan editan Python don masu farawa ta amfani da pip

game da mu

A talifi na gaba zamuyi dubi kan Mu.wannan shine Editan buda ido wanda yake neman sawwaka wa dalibai saukin koyan lambobi tare da Python. Kamar yadda nace, Mu editan Python ne don masu shirye-shiryen farawa. An tsara shi don sa ƙwarewar ilmantarwa ya ɗan ƙara daɗi. Wannan edita yana ba ɗalibai ikon sanin nasarar coding tun daga farawa. Wannan ina tsammanin yana da mahimmanci duk lokacin da kuka koyi sabon abu. Idan kun taɓa ƙoƙarin koya wa wani lamba, nan da nan za ku fahimci mahimmancin Mu.

Yawancin kayan aikin shirye-shiryen an tsara su ne ta hanyar masu haɓakawa kuma mai yiwuwa basu dace da fara masu shirye-shirye ba, ba tare da la'akari da shekarun su ba. Koyaya, wannan shirin ya kasance wanda malami ya rubuta wa ɗalibai.

Mu ne kwakwalwar Nicholas Tollervey. Nicholas ƙwararren mawaƙa ne wanda ya sami sha'awar Python da ci gaba yayin aiki a matsayin malamin kiɗa. Yana neman sauƙi mai sauƙi don shirye-shiryen Python. Ina son wani abu ba tare da rikitarwa na sauran editoci ba. A wannan dalilin, ta yi aiki tare da Carrie Ann Philbin, daraktan ilimi a Gidajen Rasberi Pi, wajen haɓaka wannan editan.

Mahaliccinta ya ce Mu 'da nufin zama gaske', saboda babu wanda zai iya koyon Python a cikin minti 30. Yayin da yake haɓaka Mu, ya yi aiki tare da malamai, ya lura da kulab ɗin shirye-shirye, da ɗaliban makarantar sakandare kamar yadda suke aiki tare da Python. Da wannan, ya gano cewa ƙasa da ƙari, kuma sauƙaƙa abubuwa yana inganta aikin ƙirar da aka gama. Wannan shirin yana da kusan layuka 3.000 na lambar.

Mu aikace-aikace ne na tushen buɗewa (lasisi a ƙarƙashin GNU GPLv3) wanda aka rubuta a Python. An kirkireshi asali don aiki tare da Micro bit minicomputer. Godiya ga tsokaci da buƙatun daga wasu malamai, sun sa mahaliccinta ya sake rubuta Mu a matsayin babban editan Python.

Sanya Mu akan Ubuntu

Ee na sani kuna da Python3 tare da saitin kantuna y dabaran shigar a cikin ƙungiyar ku, girka Mu zai zama iska ne ta amfani da ginannen mai sarrafa kunshin Python, pip. Domin shigar da wannan editan, kawai zamu bude tashar (Ctrl + Alt + T) sannan mu rubuta a ciki:

pip3 install mu-editor

Yayin shigarwa za mu ga abubuwa da yawa waɗanda aka sauke daga Intanet. Waɗannan su ne sauran ɗakunan karatu na Python da Mu ke buƙatar aiki. Lokacin gamawa, zuwa gudanar da shirin, har yanzu a cikin tashar, zamu rubuta:

mu-editor

Createirƙiri gajerar hanya don Mu

Mu sannu duniya a cikin Python

Lokacin da pip ya girka software a kwamfutarmu, ba za'a ƙirƙiri mai ƙaddamarwa ko abun menu ta atomatik ba. Abin farin, wani ya ƙirƙiri wani mai amfani da ake kira gajerar hanya. Da shi za mu iya magance wannan matsalar idan ba ku ware Mu ba a cikin wani abu mai kyau.

Kawai Amurka pip shigar da gajerar hanya. Sannan zaku iya samun gajeriyar hanyar zuwa Mu akan kwamfutarka. Don ƙirƙirar gajerar hanya, buɗe tashar (Ctrl + Alt + T) sai ka buga a ciki:

pip3 install shortcut

shortcut mu-editor

A wannan lokacin zamu iya ƙaddamar da wannan editan Python. Dole ne in faɗi cewa bayan amfani da gajerar hanya, na gano cewa mai ƙaddamarwa ya bayyana a cikin Ubuntu kamar kowane, amma hoton ya bata.

Don ƙara hoto zuwa gare shi, da farko za mu adana hoton da muke son amfani da shi azaman gunki a cikin kundin adireshin ~ / .local / share / gumaka / hicolor / 16 × 16 / apps. Idan kundayen adireshi basu wanzu, ƙirƙira su. Don wannan misali na yi amfani da hoton da ake kira kawan.png.

Da zarar mun sami hoton a cikin kundin adireshin da aka nuna, zamu bude tashar (Ctrl + Alt + T). A ciki muke rubuta lamba mai zuwa don gyara gajerar hanya:

sudo vim ~/.local/share/applications/launch_mu-editor.desktop

A cikin wannan fayil ɗin dole ne mu ƙara sunan hoto, kamar yadda aka nuna a ƙasa:

Hoton hoto don fayil ɗin daidaitawa mai ƙaddamarwa

Bayan wannan, mun adana fayil ɗin. A halin da nake ciki Dole ne in fita kuma in sake buɗe shi ya same ni yanzu mai ƙaddamarwa tare da hoton.

Fara editan Mu

Bayan duk abubuwan da ke sama, lokacin neman shirin akan kwamfutata tuni na iya ganin mai zuwa:

launcher mu edita

Lokacin da muka fara shi, za mu iya zabi yadda ake amfani da edita.

Mu yanayin zaɓi

Don wannan labarin na zaɓi Python 3, wanda ke ƙaddamar da yanayi don lambar rubutu. Harshen Python yana ƙasa kai tsaye. Wannan yana faruwa ba da damar ganin lambar zartarwa bayan latsa maɓallin Kashewa. Tsarin menu wanda aka gabatar dashi yana da sauƙin amfani da fahimta. Wannan yana sanya lambobi tare da wannan editan mai sauƙi don fara masu shirye-shirye.

Baya ga sauki, edita yayi mai yawa bayanai a cikin hanyar koyawa da sauran albarkatun da ake samu a gidan yanar gizo. Shirin zai kuma sami maballin samun damar taimako daga burauzar gidan yanar gizo.

A shafin, zamu kuma iya ganin sunayen wasu daga cikin masu sa kai wadanda suka taimaka wajen bunkasa Mu. Idan kuna so zama daya daga cikinsu kuma suna bayar da gudummawa ga ci gaban wannan shirin, a yanar gizo suna cewa duk masu sa kai zasu samu karbuwa sosai.


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

2 comments, bar naka

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   FERNANDO GOMEZ m

    Barka dai, na gwada duk hanyoyin da aka ambata anan don girka Mu a cikin Ubuntu amma na sami kuskuren mai zuwa:

    Traceback (kiran kwanannan da suka gabata):
    Fayil «/home/fergomez/.local/bin/mu-editor», layi 7, a ciki
    daga mu.app shigo da gudu
    Fayil "/home/fergomez/.local/lib/python3.5/site-packages/mu/app.py", layi 29, a cikin
    daga PyQt5.QtCore shigo da QTimer, Qt
    Shigo da Kuskure: /home/fergomez/.local/lib/python3.5/site-packages/PyQt5/QtCore.so: alamar da ba a bayyana ba: PySlice_AdjustIndices

    1.    Damian Amoedo m

      Barka dai. Wannan kuskuren da kuke koma baya yana faruwa ga wasu masu amfani. Suna yin tsokaci akansa a ciki shafin GitHub naka. Kalli ko zai iya taimaka maka. Salu2.