<?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: SittingDev</title>
    <description>The latest articles on DEV Community by SittingDev (@sittingdev).</description>
    <link>https://dev.to/sittingdev</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%2F572899%2F06fc2697-ced5-4296-bdd9-c2a34e82060c.png</url>
      <title>DEV Community: SittingDev</title>
      <link>https://dev.to/sittingdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sittingdev"/>
    <language>en</language>
    <item>
      <title>Install Node.js on Ubuntu 20.04
</title>
      <dc:creator>SittingDev</dc:creator>
      <pubDate>Thu, 25 Feb 2021 14:20:28 +0000</pubDate>
      <link>https://dev.to/sittingdev/install-node-js-on-ubuntu-20-04-293f</link>
      <guid>https://dev.to/sittingdev/install-node-js-on-ubuntu-20-04-293f</guid>
      <description>&lt;p&gt;Learn how to install Node.js and NPM on Ubuntu 20.04 LTS with this quick tutorial.&lt;/p&gt;

&lt;p&gt;Find the latest version of Node.js through the apt repository.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt-cache show nodejs&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The apt repository version is often outdated compared to the latest long-term support version available on the Node.js website. So we will install it from there instead.&lt;/p&gt;

&lt;p&gt;Go to the Node.js website - &lt;a href="https://nodejs.org/en/"&gt;https://nodejs.org/en/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Click on the 'other downloads' link and navigate to 'install node.js via package manager'.&lt;/p&gt;

&lt;p&gt;Go to this URL - &lt;a href="https://github.com/nodesource/distributions/blob/master/README.md"&gt;https://github.com/nodesource/distributions/blob/master/README.md&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Scroll down until you find the LTS version of Node.js and proceed to the next step.&lt;/p&gt;

&lt;p&gt;To install Node.js you will need to make sure you have curl installed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you need to install curl -&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt install curl&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now go back to the github page we opened and proceed to follow the instructions.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -&lt;br&gt;
sudo apt-get install -y nodejs&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Once this has run, you will want to check the version to confirm that node has installed as it should.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;node --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can also check the NPM version as it was installed with Node in this case.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm --version&lt;/code&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>javascript</category>
      <category>ubuntu</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python PIP Tutorial - Basics for Beginners</title>
      <dc:creator>SittingDev</dc:creator>
      <pubDate>Tue, 16 Feb 2021 14:32:16 +0000</pubDate>
      <link>https://dev.to/sittingdev/python-pip-tutorial-basics-for-beginners-3c5p</link>
      <guid>https://dev.to/sittingdev/python-pip-tutorial-basics-for-beginners-3c5p</guid>
      <description>&lt;p&gt;In this Python tutorial you will learn the basics of PIP. You will learn how to stay up-to-date, install packages, uninstall packages, and more.&lt;/p&gt;

&lt;p&gt;PIP which is known as PIP Installs Python or PIP Installs Packages. Whatever you want to call it... We just call it PIP.&lt;/p&gt;

&lt;p&gt;Note - There are some bash commands in this tutorial that may not work for you if you use Windows.&lt;/p&gt;

&lt;p&gt;Let's get started.&lt;/p&gt;

&lt;h2&gt;
  
  
  Want to watch the video tutorial instead?
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/eocEhJQRxYU"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Tutorial
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Check the version you are using.&lt;/strong&gt; &lt;em&gt;If they are the same you can use either pip or pip3 as you wish.&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip --version&lt;br&gt;
pip3 --version&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If PIP needs upgrading then you can use the following command.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;python -m pip install --upgrade pip&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For help you can use the following command.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip help&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For the manual you can use this command.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;man pip&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;List out all installed packages.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip list&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use some bash commands to filter through your list.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip list | grep "packagename"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;List out more details about a specific package.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip show packagename&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Display a list of all packages along with version.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip freeze&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output the list into a .txt file.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip freeze &amp;gt; pip.txt&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output our new file to the console.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cat pip.txt&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install a PIP package&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip install packagename&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install a specific version of a PIP package&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip install packagename==1.0.0&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install multiple PIP packages from a .txt file&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip install -r pip.txt&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Uninstall a package&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip uninstall packagename&lt;/code&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>bash</category>
      <category>terminal</category>
    </item>
    <item>
      <title>Install classic Jupyter Notebook on Ubuntu 20.04</title>
      <dc:creator>SittingDev</dc:creator>
      <pubDate>Wed, 10 Feb 2021 22:26:23 +0000</pubDate>
      <link>https://dev.to/sittingdev/install-classic-jupyter-notebook-on-ubuntu-20-04-2g8c</link>
      <guid>https://dev.to/sittingdev/install-classic-jupyter-notebook-on-ubuntu-20-04-2g8c</guid>
      <description>&lt;p&gt;&lt;em&gt;Original tutorial appeared on &lt;a href="https://sittingdev.com/blog/classic-jupyter-notebook-ubuntu/"&gt;https://sittingdev.com/blog/classic-jupyter-notebook-ubuntu/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In this simple tutorial, you are going to learn how to install the classic version of Jupyter Notebook on Ubuntu 20.04.&lt;/p&gt;

&lt;p&gt;For this tutorial, you will need to make sure that you have Python 3 installed.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: This tutorial should also work if you are using Ubuntu 18.04 if you have Python 3 installed.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can check this by opening up a terminal and typing &lt;code&gt;python --version&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you are using Python 3 then you should already have pip installed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You can update pip by running this command:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;python -m pip install -U pip&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now we are ready to install the classic version of jupyter notebook.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In your terminal enter the following pip command:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip3 install notebook&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Before you run the server you might want to create a new directory to hold the files you will be using inside of jupyter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Go back to the command line in your terminal.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mkdir jupyter-folder&lt;br&gt;
cd jupyter-folder&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You might want to create a readme file as well.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;touch README.md&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now launch the jupyter notebook server in your terminal.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;jupyter notebook&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can close the server by hitting &lt;code&gt;ctrl + c&lt;/code&gt; and then confirming &lt;code&gt;y&lt;/code&gt; you want to quit in the terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating a virtual environment for your jupyter notebook folder:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Run the following command:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo python3 apt install python3-venv&lt;br&gt;
python3 -m venv virtual&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now run the command:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;source virtual/bin/activate&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can exit the virtual environment by entering the &lt;code&gt;deactivate&lt;/code&gt; command.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating a jupyter notebook kernel linked to your virtual environment.
&lt;/h2&gt;



&lt;p&gt;&lt;code&gt;pip3 install ipykernel&lt;br&gt;
python3 -m ipykernel install --user --name=virtual&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now run jupyter notebook again.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;jupyter notebook&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;That's it!&lt;/p&gt;

</description>
      <category>python</category>
      <category>jupyter</category>
      <category>ubuntu</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
