<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jupyter Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/jupyter/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 08 Jun 2021 18:39:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Install Jupyter on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-jupyter-ubuntu/</link>
					<comments>https://www.osradar.com/install-jupyter-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 11 Jun 2021 06:38:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Jupyter]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[python]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=30530</guid>

					<description><![CDATA[<p>Hello friends. Having a tool like Jupyter Notebook can be something very useful that we should take into account. So in this post, you will learn how to install it. According to the official site of the Jupyter project: The Jupyter Notebook is an open-source web application that allows you to create and share documents [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-jupyter-ubuntu/">Install Jupyter on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello friends. Having a tool like Jupyter Notebook can be something very useful that we should take into account. So in this post, you will learn how to install it.</p>



<p>According to the official site of the <a href="https://jupyter.org/" target="_blank" rel="noreferrer noopener">Jupyter project</a>:</p>



<blockquote class="wp-block-quote"><p>The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.</p></blockquote>



<p>The program is run from the client web application that works in any standard browser. The prerequisite is to install and run the Jupyter Notebook server on the system. Documents created in Jupyter can be exported, among other formats, to HTML, PDF, Markdown, or Python and can also be shared with other users by e-mail, using Dropbox or GitHub, or via the integrated Jupyter Notebook viewer.</p>



<p>The installation is quite simple although it requires a series of steps.</p>



<p>So, let’s get started.</p>



<h2 id="install-jupyter-notebook-on-ubuntu-20.04"><a href="#install-jupyter-notebook-on-ubuntu-20.04" name="install-jupyter-notebook-on-ubuntu-20.04"></a>Install Jupyter Notebook on Ubuntu 20.04</h2>



<p>Before starting, in a terminal environment, make sure Ubuntu is fully updated.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>This will get you started.</p>



<h3 id="install-python-libraries-and-python-pip"><a href="#install-python-libraries-and-python-pip" name="install-python-libraries-and-python-pip"></a>Install Python libraries and Python PIP</h3>



<p>Next, it is necessary to install Python and some of its libraries along with <code><a href="https://www.osradar.com/how-to-install-pip-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">PIP</a></code>. To do this, run the following command</p>



<pre class="wp-block-preformatted">sudo apt install python3-pip python3-dev</pre>



<p>Before using PIP it is advisable to update it so that you do not face package problems.</p>



<pre class="wp-block-preformatted">sudo -H pip3 install --upgrade pip</pre>



<p>Check the new version of <code>PIP</code> with the command:</p>



<pre class="wp-block-preformatted">pip --version
pip 21.1.2 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)</pre>



<p>Now, using <code>PIP</code> install the <code>virtualenv</code> package with which we can create virtualized environments.</p>



<pre class="wp-block-preformatted">sudo -H pip3 install virtualenv</pre>



<p>Now we have the requirements to proceed to install Jupyter.</p>



<h3 id="install-jupyter-notebook-on-ubuntu-20.04"><a href="#install-jupyter-notebook-on-ubuntu-20.04" name="install-jupyter-notebook-on-ubuntu-20.04"></a>Install Jupyter Notebook on Ubuntu 20.04</h3>



<p>First, create a folder where the installation will be installed. I will call it <code>notebook</code> but you can choose any name.</p>



<pre class="wp-block-preformatted">mkdir notebook
cd notebook</pre>



<p>Now create a new python environment, called <code>jupyter</code>.</p>



<pre class="wp-block-preformatted">virtualenv jupyter
created virtual environment CPython3.8.5.final.0-64 in 963ms
  creator CPython3Posix(dest=/home/angelo/notebook/jupyter, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/angelo/.local/share/virtualenv)
    added seed packages: pip==21.1.2, setuptools==57.0.0, wheel==0.36.2
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator</pre>



<p>And then, activate the environment</p>



<pre class="wp-block-preformatted">source jupyter/bin/activate</pre>



<p>Now yes, with the help of <code>PIP</code> install Jupyter</p>



<pre class="wp-block-preformatted">pip install jupyter</pre>



<p>After that, run Jupyter with the following command</p>



<pre class="wp-block-preformatted">jupyter notebook
[I 18:39:20.257 NotebookApp] Writing notebook server cookie secret to /home/angelo/.local/share/jupyter/runtime/notebook_cookie_secret
[I 18:39:20.570 NotebookApp] Serving notebooks from local directory: /home/angelo/notebook
[I 18:39:20.570 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 18:39:20.570 NotebookApp] http://localhost:8888/?token=78f2898d7e50f76247a54d04de84f70ff9c157f71e4f3275
[I 18:39:20.570 NotebookApp]  or http://127.0.0.1:8888/?token=78f2898d7e50f76247a54d04de84f70ff9c157f71e4f3275
[I 18:39:20.570 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 18:39:20.574 NotebookApp] No web browser found: could not locate runnable browser.</pre>



<p>On the output screen, you will have the information that you can access from the browser but we can configure Jupyter to make it more secure and personal.</p>



<h3 id="configuring-jupyter"><a href="#configuring-jupyter" name="configuring-jupyter"></a>Configuring Jupyter</h3>



<p>Press the <code>CTRL</code> + <code>C</code> keys to finish running Jupyter.</p>



<p>Once you have done this, generate a default configuration file by running:</p>



<pre class="wp-block-preformatted">jupyter notebook --generate-config
Writing default config to: /home/angelo/.jupyter/jupyter_notebook_config.py</pre>



<p>Then, modify it so that you can access it from any host or network. If you will be using Jupyter on your computer locally, skip this step.</p>



<pre class="wp-block-preformatted">nano /home/angelo/.jupyter/jupyter_notebook_config.py</pre>



<p>Find the <code>c.NotebookApp.allow_remote_access</code> line and set it to <code>True</code>.</p>



<pre class="wp-block-preformatted">c.NotebookApp.allow_remote_access = True</pre>



<p>Save the changes and close the editor.</p>



<p>Then, generate a password that will help us to secure the Jupyter instance.</p>



<pre class="wp-block-preformatted">jupyter notebook password
Enter password:
Verify password:
[NotebookPasswordApp] Wrote hashed password to /home/angelo/.jupyter/jupyter_notebook_config.json</pre>



<p>Now run it and from a web browser, you will be able to log in.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/06/1-4-1024x502.png" alt="1.- Access to Jupyter" class="wp-image-30531" srcset="https://www.osradar.com/wp-content/uploads/2021/06/1-4-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/06/1-4-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/06/1-4-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/06/1-4-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/06/1-4-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/06/1-4.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Access to Jupyter</figcaption></figure>



<p>After entering the password you have defined, you can start working.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/06/2-3-1024x502.png" alt="2.- Jupyter on Ubuntu 20.04" class="wp-image-30532" srcset="https://www.osradar.com/wp-content/uploads/2021/06/2-3-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/06/2-3-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/06/2-3-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/06/2-3-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/06/2-3-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/06/2-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Jupyter on Ubuntu 20.04</figcaption></figure>



<p>Enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Jupyter is a very productive tool that we can easily install on any computer thanks to PIP. This way we can take advantage of its features and make it our own.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-jupyter-ubuntu/">Install Jupyter on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-jupyter-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
