<?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: Kevin Ogaba</title>
    <description>The latest articles on DEV Community by Kevin Ogaba (@kevogaba).</description>
    <link>https://dev.to/kevogaba</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%2F717360%2Fbbf542b0-8352-4b8b-b283-54f567e9c9af.png</url>
      <title>DEV Community: Kevin Ogaba</title>
      <link>https://dev.to/kevogaba</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kevogaba"/>
    <language>en</language>
    <item>
      <title>Installing Jupyter Notebook Using Anaconda Distribution in Linux.</title>
      <dc:creator>Kevin Ogaba</dc:creator>
      <pubDate>Thu, 10 Feb 2022 13:03:10 +0000</pubDate>
      <link>https://dev.to/kevogaba/installing-jupyter-notebook-using-anaconda-distribution-in-linux-4lcp</link>
      <guid>https://dev.to/kevogaba/installing-jupyter-notebook-using-anaconda-distribution-in-linux-4lcp</guid>
      <description>&lt;p&gt;&lt;a href="http://jupyter.org/" rel="noopener noreferrer"&gt;Jupyter Notebook&lt;/a&gt; is an application, widely used in the Data Science domain, for creating and sharing documents that contain Live code, Equations, Visualizations, and Explanatory text. A server-client application that allows editing and running &lt;a href="https://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/what_is_jupyter.html#notebook-document" rel="noopener noreferrer"&gt;notebook documents&lt;/a&gt; via the web browser, and it can be executed on a local desktop requiring no internet access. It also has a Dashboard (&lt;a href="https://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/what_is_jupyter.html#dashboard" rel="noopener noreferrer"&gt;Notebook Dashboard&lt;/a&gt;) and a control panel, displaying local files and allowing you to open notebook documents or shut down their &lt;a href="https://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/what_is_jupyter.html#kernel" rel="noopener noreferrer"&gt;kernels&lt;/a&gt;. Jupyter Notebook can also be run without any installation.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Download and install Anaconda&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Download &lt;a href="https://www.anaconda.com/products/individual#linux" rel="noopener noreferrer"&gt;anaconda installer&lt;/a&gt; for linux(for beginners plus avoid &lt;a href="https://stackoverflow.com/questions/45421163/anaconda-vs-miniconda" rel="noopener noreferrer"&gt;Miniconda&lt;/a&gt;). And make sure the Python Distribution is 3.x. This is a large file(approx 581 mb), so it will take some time depending on your internet connection. To install in your machine, run the following command, include the bash command regardless of whether or not you are using Bash shell.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bash ~\&amp;lt;download directory&amp;gt;\&amp;lt;Anaconda3-&amp;lt;version&amp;gt;-Linux-x86_64.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The installer prompts to review licence, click &lt;code&gt;Enter&lt;/code&gt; to view and scroll down to the bottom of the licence terms and enter &lt;code&gt;yes&lt;/code&gt;.&lt;br&gt;
When prompted accept the default installation location or click &lt;code&gt;CTRL-C&lt;/code&gt; to terminate installation process, or specify alternative the directory that you want it to be installed. It is recommend to accept the default location &lt;code&gt;PREFIX=/home/&amp;lt;user&amp;gt;/anaconda3&lt;/code&gt; and avoid the path as &lt;code&gt;/usr&lt;/code&gt; for the Anaconda Installation. This process takes a few minutes. and finally accept Anaconda to be initialised.&lt;br&gt;
Close and open your terminal window for the installation to take effect, or you can enter the command &lt;code&gt;source ~/.bashrc&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Open Jupyter using Anaconda Navigator&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;On your terminal, enter the command &lt;code&gt;anaconda-navigator&lt;/code&gt; and the Navigator GUI will initialize and be displayed.&lt;br&gt;
On Navigator’s Home tab, in the Applications pane on the right, scroll to the Jupyter Notebook tile and click the Install button to install Jupyter Notebook.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1244%2F0%2Ah3UAqhOKixvGGw5-.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1244%2F0%2Ah3UAqhOKixvGGw5-.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you already have Jupyter Notebook installed, you can jump right to the Launch step.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Launch Jupyter Notebook by clicking Jupyter Notebook’s Launch button.&lt;/li&gt;
&lt;li&gt;This will launch a new browser window (or a new tab) showing the &lt;a href="https://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/what_is_jupyter.html#notebook-dashboard" rel="noopener noreferrer"&gt;Notebook Dashboard&lt;/a&gt;.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1400%2F0%2AFkAZkXXFbsPaRlhE.png"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Launching via the Terminal&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;That also involves just one step: simply type and run &lt;code&gt;jupyter notebook&lt;/code&gt; in your Terminal. This will print some information about the notebook server in your terminal, including the URL of the web application which may open on your default browser or copy and paste on the browser, (by default, &lt;a href="http://localhost:8888" rel="noopener noreferrer"&gt;http://localhost:8888&lt;/a&gt;) . If launched successful, the Jupyter Dashboard will open in the browser&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1400%2F0%2AVjr8RxDIAkKI_9Sm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1400%2F0%2AVjr8RxDIAkKI_9Sm.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;How to navigate within Jupyter Notebook&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Jupyter Notebook has a user-friendly Editor with a row of easy-to-use navigation/execution buttons on top . These notebook documents are stored in the JSON plain text format, which makes them easy to share and provides for version control. They are also available from a publicly accessible URL and can be shared using Jupyter Notebook Viewer without requiring everyone to install Jupyter Notebook on their machines. These notebooks have a .ipynb extension. Use the complete Notebook &lt;a href="https://jupyter.brynmawr.edu/services/public/dblank/Jupyter%20Notebook%20Users%20Manual.ipynb" rel="noopener noreferrer"&gt;User’s manual&lt;/a&gt; for reference.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1400%2F0%2A8-NgrA24jFplrx3e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1400%2F0%2A8-NgrA24jFplrx3e.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Alternatively, you can also use &lt;a href="https://www.cheatography.com/weidadeyue/cheat-sheets/jupyter-notebook/" rel="noopener noreferrer"&gt;keyboard shortcuts&lt;/a&gt; to access files and execute your Python scripts.&lt;br&gt;
The dashboard automatically detects all the &lt;code&gt;.ipynb&lt;/code&gt; files in your directory but if your required files are in a separate directory, it also allows you to upload (has an &lt;code&gt;UPLOAD&lt;/code&gt; button in the Dashboard) a file. There is also a &lt;code&gt;NEW&lt;/code&gt; button, which allows you to select a Python &lt;a href="https://simple.wikipedia.org/wiki/Kernel_(computer_science)" rel="noopener noreferrer"&gt;kernel&lt;/a&gt;() from the drop-down menu .&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1400%2F0%2AQ1KOop7mgehgkJrI.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1400%2F0%2AQ1KOop7mgehgkJrI.png"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F704%2F0%2Au3rd4aaFYU3ZFUBM.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F704%2F0%2Au3rd4aaFYU3ZFUBM.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Notebooks and files can be uploaded to the current directory by dragging a notebook file onto the notebook or by using the &lt;em&gt;‘click here’&lt;/em&gt; text above the list. The notebook list shows green &lt;em&gt;Running&lt;/em&gt; text and a green notebook icon next to running notebooks. These remain running until you shut them down — closing the notebook’s page is not sufficient. To shutdown, delete, duplicate, or rename a notebook, check/tick the checkbox next to it and an array of controls will appear at the top of the notebook list. You may also use a similar operations on directories and files. Lastly, to view all of your running notebooks along with their directories, click on the &lt;em&gt;Running&lt;/em&gt; tab.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1176%2F0%2AAkxOk3nkrKkRlJPI.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1176%2F0%2AAkxOk3nkrKkRlJPI.png"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Common issues with Jupyter Notebook&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;The Jupyter Notebook team is made up of dedicated developers who consistently resolve their open issues. If you wish to take a look at open issues or report a new issue, visit their &lt;a href="https://github.com/jupyter/notebook/issues" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. As a beginner, it is your responsibility to check all the possible online resources, such as &lt;a href="https://stackoverflow.com/questions/tagged/jupyter-notebook" rel="noopener noreferrer"&gt;StackOverflow&lt;/a&gt; (currently 6000+ questions have been already answered), for existing solutions, before raising a new one.&lt;br&gt;
Here are some of the common issues that one may encounter and their solutions:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/15632663/launch-ipython-notebook-with-selected-browser" rel="noopener noreferrer"&gt;Launch IPython notebook with selected browser&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/15680463/change-ipython-jupyter-notebook-working-directory" rel="noopener noreferrer"&gt;Change IPython/Jupyter notebook working directory&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/35254852/how-to-change-the-jupyter-start-up-folder" rel="noopener noreferrer"&gt;How to change the Jupyter start-up folder&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/jupyter/notebook/issues/1979" rel="noopener noreferrer"&gt;Jupyter Notebook suddenly started asking for Password or Token&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/41159797/how-to-disable-password-request-for-a-jupyter-notebook-session" rel="noopener noreferrer"&gt;How to disable password request for a Jupyter notebook session?&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/43288550/iopub-data-rate-exceeded-when-viewing-image-in-jupyter-notebook" rel="noopener noreferrer"&gt;IOPub data rate exceeded when viewing image in Jupyter notebook&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/15411967/how-can-i-check-if-code-is-executed-in-the-ipython-notebook" rel="noopener noreferrer"&gt;How can I check if code is executed in the IPython notebook?&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/37433363/link-conda-environment-with-jupyter-notebook" rel="noopener noreferrer"&gt;Link Conda environment with Jupyter Notebook&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/42648610/error-when-executing-jupyter-notebook-no-such-file-or-directory" rel="noopener noreferrer"&gt;Error when executing &lt;code&gt;jupyter notebook&lt;/code&gt; (&lt;/a&gt;No such file or directory)&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/39604271/conda-environments-not-showing-up-in-jupyter-notebook" rel="noopener noreferrer"&gt;Conda environments not showing up in Jupyter Notebook&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/44943646/jupyter-notebook-not-trusted" rel="noopener noreferrer"&gt;Jupyter notebook not trusted&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/tagged/jupyter-notebook" rel="noopener noreferrer"&gt;How to make Jupyter Notebook Matplotlib plot inline?&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/28831854/how-do-i-add-python3-kernel-to-jupyter-ipython" rel="noopener noreferrer"&gt;How do I add Python 3 kernel to Jupyter?&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/42661637/jupyter-notebook-timeout-waiting-for-response-in-chrome" rel="noopener noreferrer"&gt;Jupyter Notebook timeout waiting for response in Chrome&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/21971449/how-do-i-increase-the-cell-width-of-the-jupyter-ipython-notebook-in-my-browser" rel="noopener noreferrer"&gt;How do I increase cell width of Jupyter Notebook in my browser?&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/31974797/ipython-notebook-wont-read-the-configuration-file" rel="noopener noreferrer"&gt;IPython notebook won’t read the configuration file&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/15514593/importerror-no-module-named-when-trying-to-run-python-script" rel="noopener noreferrer"&gt;“ImportError: No module named” when trying to run Python script&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Thank you for tagging along.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>python</category>
    </item>
  </channel>
</rss>
