<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ngazetungue Muheue</title>
    <description>The latest articles on DEV Community by Ngazetungue Muheue (@ngazetungue).</description>
    <link>https://dev.to/ngazetungue</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F343396%2F126e7120-b655-4bce-985b-9b579b172996.jpg</url>
      <title>DEV Community: Ngazetungue Muheue</title>
      <link>https://dev.to/ngazetungue</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ngazetungue"/>
    <language>en</language>
    <item>
      <title>My experience at PyCon UK 2018</title>
      <dc:creator>Ngazetungue Muheue</dc:creator>
      <pubDate>Tue, 05 Oct 2021 07:41:52 +0000</pubDate>
      <link>https://dev.to/ngazetungue/my-experience-at-pycon-uk-2018-98h</link>
      <guid>https://dev.to/ngazetungue/my-experience-at-pycon-uk-2018-98h</guid>
      <description>&lt;p&gt;After meeting Daniele Procida, Vincent Knight, Nikoleta .E. Glynatsi Loek Van Gent, and others at our first Python Conference in 2015, I had a great time chatting with them about their experience of different PyCon around the world. I decided to expand the borders of my experience by participating in an international conference. I submitted my talk to PyCon UK 2018, and it was accepted. Everything went smoothly after the acceptance, I just needed to take my laptop and go to the airport since Namibians don’t need VISA when visiting the UK.&lt;/p&gt;

&lt;p&gt;On the 12th of September, I traveled to Wales to attend PyCon UK from the 15th to the 19th of September.&lt;/p&gt;

&lt;p&gt;I reached Hosea Kutako International Airport 30 minutes before the scheduled flight time. I had to complete some customs and other formalities quickly before going to the plane. My plane was ready for flight. It was a very big KLM, a Dutch airline with luxurious seats. It looked so royal, impressive, and wonderful. Likewise, it was the first time that I had to touch and sit on an aeroplane. I was really excited and full of many expectations. I had got a window seat, which gave me a fine view of the outside world. It was so cool as we were taking off. I had an amazing time in the sky, enjoying the first flight of my life.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FgpeXCs0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d60ra5subd1s4ctens64.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FgpeXCs0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d60ra5subd1s4ctens64.png" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
Between the clouds &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6VrYOxx9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ju0hvljtjeqau8fqvn3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6VrYOxx9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ju0hvljtjeqau8fqvn3.png" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  Pythonista landed in Cardiff
&lt;/h5&gt;

&lt;p&gt;Upon arrival at Cardiff Airport, I met with Daniele Procida (PyCon UK director) and an active member of the international PyCon community) who drove me to the city. I was staying at the Mrs. Potts Hostel at St Mary Street, Cardiff not far from Cardiff Market which gave me the opportunity to explore the city center. Evening time, we went to a local restaurant where we had a delicious meal at an Italian restaurant closer to my hostel. Thanks, Daniele and others for the wonderful gesture.&lt;/p&gt;

&lt;h5&gt;
  
  
  At City Hall (Conference Venue)
&lt;/h5&gt;

&lt;p&gt;The annual PyCon UK took place in Cardiff’s City Hall from Saturday the 15th to Wednesday the 19th of September 2018. The conference included five days of talks, workshops, and collaboration. My friend &lt;a href="https://nikoleta-v3.github.io/"&gt;Nikoleta Glynatsi&lt;/a&gt; was one of the four keynote speakers and I had the opportunity to attend her talk. Also, I met &lt;a href="https://www.trallard.dev/"&gt;Tania Allard&lt;/a&gt;  who received the John Pinner Award (a UK Python Association community award) this year. Both Tania and Nikoleta coached at the Django Girls UK workshop, where a total of 53 women were introduced to programming.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1K54askN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d68ghbk7ar6cyi6ii3e9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1K54askN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d68ghbk7ar6cyi6ii3e9.png" alt="alt text"&gt;&lt;/a&gt;&lt;br&gt;
There were different amazing talks that I enjoyed listening to, and I attended some robotics workshop that was so amazing too. The conference is a great place to meet new people and become a friend.&lt;br&gt;
I had the pleasure of meeting some amazing participants and speakers like &lt;a href="https://adamj.eu/"&gt;Adam Johnson&lt;/a&gt;, James King, &lt;a href="https://bennuttall.com/"&gt;Ben Nuttall&lt;/a&gt;, &lt;a href="https://vknight.org/"&gt;Vincent Knight&lt;/a&gt;,&lt;a href="https://twitter.com/judy2k"&gt;Mark Smith&lt;/a&gt; and &lt;a href="https://twitter.com/lambdanis"&gt;Ania Kapuścińska.&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  Day of my talk
&lt;/h5&gt;

&lt;p&gt;The day of my talk finally came. I was a bit nervous because I wanted to be perfect. My talk was about “What Python means in Namibia”. Twenty minutes before my talk, I had a big fight with my laptop that was freezing and restarting all the time. The PC disappointed me in front of everyone. I had gone from one corner to corner waiting for the laptop to cool down. The feelings of anxiety, stress, and worry at this moment were actually beyond my levels and that’s a day I almost forgot my English that I came with. Imagine talking to Native English speakers with stress, not easy at all. Fortunately, Daniele came to my rescue and everything got sorted a few minutes before the presentation and the talk went better than initially planned. After the talk, everyone congratulated me, and we exchanged emails. I moved to Linux, I don’t want further disappointment with Windows OS. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ivx1lgu0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ewk3aomird4vp9tivzq4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ivx1lgu0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ewk3aomird4vp9tivzq4.png" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  The Beautiful Cardiff city
&lt;/h5&gt;

&lt;p&gt;Outside the conference, I had great opportunities to see the city. I walked around the city to see its architecture. There are a lot of parks, shops, bars, cafés, and beautiful castles all around. Cardiff is small, so it’s easy to get around quickly. I had observed there aren’t that many big roads going through the center of town, so it was easy for me to walk around from one shopping mall to another. The food was nice, I never experience any problem with food in Cardiff, the only thing that was strange to me was a strong COFFEE without Sugar. I didn’t understand why they were drinking coffee without sugar. In Namibia, we use sugar in coffee.&lt;/p&gt;

&lt;p&gt;Cardiff has pretty good air quality and not much pollution and the center of town was cleaned and that was my first judgment of Cardiff city since I came from one of the cleanest cities in Africa (Windhoek). I have had a lot of memorable times in my life, but this was probably one of the most memorable times in my life.&lt;/p&gt;

&lt;p&gt;To conclude, the experience was amazing, and I can’t wait to visit Cardiff again. Hopefully, I would get the opportunity to visit other cities in Wales and many other tourist attractions that missed out on during this trip.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8B0X_Lna--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1rdh6s3mo4qry5g5w8z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8B0X_Lna--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1rdh6s3mo4qry5g5w8z.png" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Bye Cardiff&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Leading Namibia's Community of Python Developers</title>
      <dc:creator>Ngazetungue Muheue</dc:creator>
      <pubDate>Thu, 17 Sep 2020 13:50:12 +0000</pubDate>
      <link>https://dev.to/ngazetungue/leading-namibia-s-community-of-python-developers-5fg1</link>
      <guid>https://dev.to/ngazetungue/leading-namibia-s-community-of-python-developers-5fg1</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qAvHR-At--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/70xbi2p8x7f9p43v69kx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qAvHR-At--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/70xbi2p8x7f9p43v69kx.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In Africa, the Python community consists of hundreds of passionate developers scattered across the continent. In Namibia’s capital city Windhoek, there is a small but vibrant Python community spearheaded by The Python Software Community of Namibia or PyNam for short. This week Built in Africa spotlight was on me. Find full article here &lt;a href="https://www.builtinafrica.io/blog-post/ngazetungue-muheue-python-namibia"&gt;https://www.builtinafrica.io/blog-post/ngazetungue-muheue-python-namibia&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>django</category>
    </item>
    <item>
      <title> After 2020 Python Software Foundation Board of Directors Election . </title>
      <dc:creator>Ngazetungue Muheue</dc:creator>
      <pubDate>Sat, 27 Jun 2020 12:39:47 +0000</pubDate>
      <link>https://dev.to/ngazetungue/after-2020-python-software-foundation-board-of-directors-election-2dhi</link>
      <guid>https://dev.to/ngazetungue/after-2020-python-software-foundation-board-of-directors-election-2dhi</guid>
      <description>&lt;h4&gt;
  
  
  Here we Go!!!.
&lt;/h4&gt;

&lt;p&gt;Before i start let me use this opportunity to give thanks to &lt;a href="https://twitter.com/ewa_jodlowska"&gt;Ewa Jodlowska&lt;/a&gt; and the entire PSF team for the election and leadership skills during the dark cloud of COVID-19. &lt;/p&gt;

&lt;p&gt;Grown up in the hot desert and mountainous area of Kunene Region in &lt;a href="https://en.wikipedia.org/wiki/Namibia"&gt;Namibia&lt;/a&gt;. Hanging with elephants and other wild animals everyday is my day to day activity when i am at the village.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OJq0_RzE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/o7qkl4xtb8ijw91w2qvg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OJq0_RzE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/o7qkl4xtb8ijw91w2qvg.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This year, the &lt;a href="https://www.python.org/psf-landing/"&gt;Python Software Foundation&lt;/a&gt;  had four seats going vacant with directors fulfilling their term. After many years of working with Python community in Namibia and around the globe, I decided to run for a seat.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;I&lt;/span&gt; &lt;span class="n"&gt;didn&lt;/span&gt;&lt;span class="s"&gt;'t know one day I would be running for the high position in the world of tech. 
I had a privilege to contest with well-known people in Python community this year.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;The results didn’t go well on my side, and I accepted as it is. I received the bunch of email from people around the world encouraging me not to give up since I was closer. Some went to extend of calling me on my mobile phone. A wounded lion never gives up, but always trying its best to protect the pride. I have a long journey with our community. I see a defeat as a ladder to the brighter future. I will keep fighting for the Python community day and night. Cheer to you all.&lt;/p&gt;

&lt;h4&gt;
  
  
  The community i serve.
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dLKkLg5a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/k21ldakzt0tbgh9zxlmp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dLKkLg5a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/k21ldakzt0tbgh9zxlmp.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
I have been an active volunteer in the Python community for several years, advocating for usage of Python in Namibia and around the globe.&lt;br&gt;&lt;br&gt;
&lt;a href="https://www.python.org/nominations/elections/2020-python-software-foundation-board/nominees/ngazetungue-muheue/"&gt;Read the full nomination statement here&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Check out the responsibilities of a director of the PSF here.
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://wiki.python.org/moin/PythonSoftwareFoundation/DutiesAndResponsibilitiesOfDirectors"&gt; Duties &amp;amp; Responsibilities of PSF Directors&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=ZLKj6FaQA4M"&gt; Life as a Python Software Foundation Director&lt;/a&gt; &lt;/p&gt;

&lt;h4&gt;
  
  
  The results
&lt;/h4&gt;

&lt;p&gt;It was that time where we separate sheeps from goats, the dark hour came and the election results was announced, I was in 8th place out of 26 nominees  with 201 votes and the highest got 263 votes. Four board seats were available for grab. 1,151 people were eligible to vote, while those that actually voted were 462 persons. &lt;/p&gt;

&lt;h4&gt;
  
  
  The elected top four nominees was:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.python.org/nominations/elections/2020-python-software-foundation-board/nominees/nina-zakharenko/"&gt;Nina Zakharenko&lt;/a&gt; with 263 votes &lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.python.org/nominations/elections/2020-python-software-foundation-board/nominees/dustin-ingram/"&gt;Dustin Ingram&lt;/a&gt; with 249 votes &lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.python.org/nominations/elections/2020-python-software-foundation-board/nominees/jeff-triplett/"&gt;Jeff Triplett&lt;/a&gt; with 240 votes &lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.python.org/nominations/elections/2020-python-software-foundation-board/nominees/thomas-wouters/"&gt;Thomas Wouters&lt;/a&gt; with 237 votes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Congratulations !!! Congratulations !!! Omake - means hands in my home language (One way of appreciating someone after the achievement). Cheer to everyone who got elected.&lt;br&gt;
See full results &lt;a href="http://pyfound.blogspot.com/2020/06/2020-python-software-foundation-board_26.html"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  PSF Board Election Reform
&lt;/h4&gt;

&lt;p&gt;The result margins was narrow, therefore the Python Software Foundation (PSF) staff, incoming directors, existing directors, and community have already taken time to discuss the participation and representation of our global community on the PSF Board of Directors. Checkout &lt;a href="https://twitter.com/loooorenanicole"&gt;Lorena Mesa&lt;/a&gt; from the PSF thread: &lt;a href="https://discuss.python.org/t/psf-board-election-reform/4527"&gt;here&lt;/a&gt; maybe you'll be interested in the thread, or you want to share your thought with the community.&lt;/p&gt;

&lt;p&gt;Lastly let’s hold hands and support the upcoming directors as one community. I know there have been many thoughts &amp;amp; emotions about the recent election but that shouldn't divert us away from the community we lead.&lt;/p&gt;

&lt;p&gt;Thank you all.&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>How i changed my game to become a Developer.</title>
      <dc:creator>Ngazetungue Muheue</dc:creator>
      <pubDate>Sun, 07 Jun 2020 02:20:42 +0000</pubDate>
      <link>https://dev.to/ngazetungue/how-i-changed-my-mindset-to-become-a-developer-1doj</link>
      <guid>https://dev.to/ngazetungue/how-i-changed-my-mindset-to-become-a-developer-1doj</guid>
      <description>&lt;p&gt;Watching only YouTube tutorials almost cost me opportunity to become a developer. I spent most of my time sitting behind the computer watching video tutorials trying to get a better understanding of the programming language especially Python but time was my biggest enemy. I wasted one year trying to understand Django without coding much. &lt;br&gt;
I wouldn’t advise beginners to watch only online tutorials without creating projects and following official documentation of any language or framework. Better to use both at the same time.&lt;/p&gt;

&lt;h4&gt;
  
  
  What help me?
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;I started focusing on practicing more or coding then watching tutorials on YouTube.&lt;/li&gt;
&lt;li&gt;I stop copying codes I found online, I make sure I understand before i do so.&lt;/li&gt;
&lt;li&gt;Documentation always my good friend, highly recommend.&lt;/li&gt;
&lt;li&gt;I started creating simple projects, to make my idea into reality.&lt;/li&gt;
&lt;li&gt;I started reading other people blogs, articles.&lt;/li&gt;
&lt;li&gt;Teaching and sharing my programming skills with other helps me.&lt;/li&gt;
&lt;li&gt;I started using github, this helps to clean up my codes. &lt;/li&gt;
&lt;li&gt;I started participating on python/ django community.&lt;/li&gt;
&lt;li&gt;I started giving talks at PyCon, meetup and other conference. Been in UK, Ghana and etc.&lt;/li&gt;
&lt;li&gt;I value my time, time is money. No more gaming unless if I am on vacation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Conclusion
&lt;/h4&gt;

&lt;p&gt;Practicing helps me to become a developer. Some video on YouTube are misleading. If I get stuck, I don’t give up. Instead, I search for help online. We have huge community, there are people who are willing to help other.&lt;/p&gt;

</description>
      <category>python</category>
      <category>django</category>
      <category>github</category>
    </item>
    <item>
      <title>Thank you Adam Johnson !!</title>
      <dc:creator>Ngazetungue Muheue</dc:creator>
      <pubDate>Sun, 07 Jun 2020 01:09:39 +0000</pubDate>
      <link>https://dev.to/ngazetungue/thank-you-adam-johnson-4f4m</link>
      <guid>https://dev.to/ngazetungue/thank-you-adam-johnson-4f4m</guid>
      <description>&lt;h3&gt;
  
  
  That time of the year 🙋‍♂️
&lt;/h3&gt;

&lt;p&gt;I'm only left with few months to finish the Bsc of Computer Science (Honours) degree AND I'm working on my final year project using Django/Python. &lt;/p&gt;

&lt;h3&gt;
  
  
  Hey Man !!!
&lt;/h3&gt;

&lt;p&gt;I don't know how to reward you Adam but the piece of resources you shared with me through blogs, PyCon talks, chatting on WhatsApp and email changed my life. Hopefully, at the end of the year, I will obtain my second Computer Science qualification at the University Of Namibia.Thank you, you played a role in my journey.&lt;/p&gt;

&lt;h3&gt;
  
  
  Y'All
&lt;/h3&gt;

&lt;p&gt;If you are an upcoming or aspiring web developer or you want some cool stuff about Django and Python i recommend to visit Adam Johnson website for blog post that cover plenty of topics.&lt;br&gt;
&lt;a href="https://adamj.eu/"&gt;Find him here&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Who is Adam?
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="err"&gt;✍️&lt;/span&gt; &lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="s"&gt;'m an author and "solo consultant" working with Ansible, AWS,
 Django, and Python.
🦄 I'&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;member&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;Django&lt;/span&gt; &lt;span class="n"&gt;project&lt;/span&gt; &lt;span class="n"&gt;Technical&lt;/span&gt; &lt;span class="n"&gt;Board&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;2.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;3.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="mf"&gt;3.1&lt;/span&gt; &lt;span class="n"&gt;release&lt;/span&gt; &lt;span class="n"&gt;cycles&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; 
&lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;co&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;organizer&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;The&lt;/span&gt; &lt;span class="n"&gt;London&lt;/span&gt; &lt;span class="n"&gt;Django&lt;/span&gt; &lt;span class="n"&gt;Meetup&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="n"&gt;New&lt;/span&gt; &lt;span class="n"&gt;Book&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="err"&gt;“&lt;/span&gt;&lt;span class="n"&gt;Speed&lt;/span&gt; &lt;span class="n"&gt;Up&lt;/span&gt; &lt;span class="n"&gt;Your&lt;/span&gt; &lt;span class="n"&gt;Django&lt;/span&gt; &lt;span class="n"&gt;Tests&lt;/span&gt;&lt;span class="err"&gt;”&lt;/span&gt;

&lt;span class="n"&gt;Released&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="n"&gt;th&lt;/span&gt; &lt;span class="n"&gt;May&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;my&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;book&lt;/span&gt; &lt;span class="n"&gt;has&lt;/span&gt; &lt;span class="n"&gt;lots&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;advice&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; 
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="n"&gt;Django&lt;/span&gt; &lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="s"&gt;'s tests faster. 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;We&lt;/span&gt; &lt;span class="n"&gt;first&lt;/span&gt; &lt;span class="n"&gt;met&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;Cardiff&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="n"&gt;PyCon&lt;/span&gt; &lt;span class="n"&gt;UK&lt;/span&gt; &lt;span class="mi"&gt;2018&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;again&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;Namibia&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;our&lt;/span&gt; &lt;span class="n"&gt;PyCon&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="n"&gt;He&lt;/span&gt;&lt;span class="s"&gt;'s always behind my back, pushing me, advising me.
He'&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="n"&gt;one&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;special&lt;/span&gt; &lt;span class="n"&gt;people&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;my&lt;/span&gt; &lt;span class="n"&gt;life&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="n"&gt;I&lt;/span&gt; &lt;span class="n"&gt;like&lt;/span&gt; &lt;span class="n"&gt;his&lt;/span&gt; &lt;span class="n"&gt;way&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;doing&lt;/span&gt; &lt;span class="n"&gt;things&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;writing&lt;/span&gt; &lt;span class="n"&gt;cool&lt;/span&gt; &lt;span class="n"&gt;stuffs&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;always&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;point&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Thanks Adam&lt;/p&gt;

</description>
      <category>django</category>
      <category>python</category>
    </item>
    <item>
      <title> Python script in Virtual environment – beginners guide.</title>
      <dc:creator>Ngazetungue Muheue</dc:creator>
      <pubDate>Fri, 05 Jun 2020 14:41:05 +0000</pubDate>
      <link>https://dev.to/ngazetungue/python-script-in-virtual-environment-beginners-guide-h6d</link>
      <guid>https://dev.to/ngazetungue/python-script-in-virtual-environment-beginners-guide-h6d</guid>
      <description>&lt;p&gt;During my Django and Python tutorials, some of the participants asked me to write an article about the topic at hand since they had problems with connection during the presentation.&lt;/p&gt;

&lt;h4&gt;
  
  
  What do i have and What Is a Virtual Environment?
&lt;/h4&gt;

&lt;p&gt;In this article, i’ll be taking you through the simple example of running python script in the virtual environment. Virtual environments help us to create and manage our project in the separate environments from the default location. In most Linux environments, Python is installed under /usr/local , and that’s where you would find the libraries.The main purpose of Python virtual environments is to create an isolated environment for Python projects. This means that each project can have its own dependencies, regardless of what dependencies every other project has. In our  example, we’d create a virtual environment and then run our file inside the environment. We're using Python 3 in our example.&lt;/p&gt;

&lt;h4&gt;
  
  
  Let's get started
&lt;/h4&gt;

&lt;p&gt;You’ll need to install the virtualenv tool with pip if you’re not using Python 3. In our case we're using Python 3, then we don't need to install since we already have the venv module from the standard library installed. But below is a simple command we could use should we have different version.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ pip install virtualenv    
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Let's make a new directory to work with. Let me assume that you want to create your new directory on your desktop and name it random-virtual-environments. Below i created a directory called random-virtual-environments and navigate into it using cd command. Simple command right.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ mkdir random-virtual-environments &amp;amp;&amp;amp; cd random-virtual-environments    
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Let's create a new virtual environment inside the directory we created above. randomenv is a name of our environment. In this case we're using python3.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python3 -m venv randomenv
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;After creating the environment you should see the following files below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bin  include  lib  lib64 pyvenv.cfg
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Now it is time to activate our environment (randomenv) so that we can be able to use the packages in isolation, you need to do this, just run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ source randomenv/bin/activate
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Let's create our file that we want to run inside the environment we have created.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ touch number.py
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;After creating our file we could see our file is added to our directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bin  include  lib  lib64  number.py  pyvenv.cfg

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Open the file by typing the following command on your terminal. Let me assume you know how to use vim.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ vim number.py
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;After opening the file, write the codes below on the file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# This program displays ten random
# numbers in the range of 1 through 50.
&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;random&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;randomNumber&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
      &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="c1"&gt;# Get a random number.
&lt;/span&gt;            &lt;span class="n"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;randint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Display the number.
&lt;/span&gt;            &lt;span class="k"&gt;print&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Call the randomNumber function
&lt;/span&gt;&lt;span class="n"&gt;randomNumber&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Close the file by pressing Esc button on your keyboard and write wq to save the file. Run below command to run the file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python number.py
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Below is the output after running the file. Bear in mind that we're expecting random number and your output might be different from the one shown below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;45
21
34
17
26
2
13
44
16
39
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h4&gt;
  
  
  Conclusion
&lt;/h4&gt;

&lt;p&gt;I hope you get a picture of how you would use virtual environment to run your python script or project. Bear in mind that this article meant for beginners who don’t know what virtual environment is or who never use it before. We have a huge Python community, you can always ask around if you have any doubt in whatever you’re doing. As you progress as a developer, be sure to take time to learn how to use different tools to your advantage for example Docker that’s work almost the same as virtual environment. In future I am planning to cover Docker so that we can compare the two.&lt;/p&gt;

</description>
      <category>python</category>
    </item>
  </channel>
</rss>
