snap Archives - The Linux GURUS https://thelinuxgurus.com/tag/snap/ Learn Linux & DevOPS from THE LINUX GURUS Tue, 04 Feb 2020 10:23:15 +0000 en-US hourly 1 https://i0.wp.com/thelinuxgurus.com/wp-content/uploads/2020/01/cropped-thelinuxgurus_transparent_name.png?fit=32%2C32&ssl=1 snap Archives - The Linux GURUS https://thelinuxgurus.com/tag/snap/ 32 32 148921671 Complete guide to install PyCharm on Ubuntu https://thelinuxgurus.com/complete-guide-to-install-pycharm-on-ubuntu/ https://thelinuxgurus.com/complete-guide-to-install-pycharm-on-ubuntu/#respond Sun, 02 Feb 2020 05:03:22 +0000 https://thelinuxgurus.com/?p=1088 If you have worked with Python or for that matter any other programming language, or even working as a system admin then you probably would...

The post Complete guide to install PyCharm on Ubuntu appeared first on The Linux GURUS.

]]>
If you have worked with Python or for that matter any other programming language, or even working as a system admin then you probably would have heard about Integrated Development Environment or as they are famously called IDEs. An IDE normally consists of at least a source code editor, build automation tools and a debugger.

Recommended Read: Complete guide to install Anaconda on Ubuntu

Also Read: Simple guide to install JUPYTER NOTEBOOK on Linux

In this tutorial, we will discuss one such famous IDE, PyCharm. PyCharm is a Python IDE & is used widely for python development. It provides many features like code completion, syntax highlighting, error highlighting, code folding, code snippets, code analysis, etc. There are two editions of PyCharm, Professional & community. While the professional edition is paid & has more features, the community edition is open-source & free to use.

In this tutorial, we will learn to install PyCharm on Ubuntu. We will be installing the community edition version of PyCharm.


Install PyCharm on Ubuntu

There are three ways using which we can install PyCharm on Ubuntu. We will be discussing both the methods for the installation.

Method 1 – Using official packages

With this method, we will first download the tar package of PyCharm from the official website & will then install it. To download the package, use the following command,

$ wget https://download.jetbrains.com/python/pycharm-community-2019.3.2.tar.gz

Currently, 2019.3.2 is the latest version of PyCharm. Once the package has been downloaded, then we need to extract it,

$ tar -xzf pycharm-community-2019.3.2.tar.gz

Now, enter into the folder & then to the ‘bin’ directory inside the folder,

$ cd pycharm-community-2019.3.2

$ cd bin

Now we only need to execute the startup script to start the PyCharm on your system.

$ sh pycharm.sh


Method 2 – using PPA

There is an unofficial PPA that also maintains PyCharm on their repository. So we need to first install the PPA & then we can install PyCharm. To add PPA, run the following command,

$ sudo add-apt-repository ppa:mystic-mirage/pycharm

Now we can install PyCharm,

$ sudo apt-get install pycharm-community

And we can start PyCharm like we run any other application, either from the menu or from the terminal with the following command,

$ pycharm-community


Method 3 – using SNAP

Another method to install PyCharm is by using snap, we have already discussed about snap in detail in the following tutorial. So for this method, we will first install snap & then install pycharm using snap. Snap comes pre-installed on Ubuntu version 16.04 & above & if it’s not installed on your system, then install it using the following command,

$ sudo apt-get install snapd

Now install PyCharm using snap with the following command,

$ sudo snap install pycharm-community –classic


Configuring PyCharm

Once PyCharm has been installed & started on the system, you will get the following screen,

install pycharm on ubuntu

Since this will the first time we have installed PyCharm on Ubuntu, we will use the option ‘Do not import settings’ but if you had configs from the previous installation, you can provide the path here to that folder.

On the next screen, we are required to select a theme,

install pycharm on ubuntu

Select a theme & click on the ‘Launcher script’. Now the PyCharm will launch & we will be asked to either create a new project or open an existing one,

install pycharm on ubuntu

Installation & configuration is now complete, we can now use Pycharm. This also concludes our tutorial on how to install PyCharm on Ubuntu. Please do send any queries to us using the comment box below.

If you think we have helped you or just want to support us, please consider these:-

Connect to us: Facebook | Twitter | Linkedin

TheLinuxGURUS are thankful for your continued support.

The post Complete guide to install PyCharm on Ubuntu appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/complete-guide-to-install-pycharm-on-ubuntu/feed/ 0 1088
Simple guide to install JUPYTER NOTEBOOK on Linux https://thelinuxgurus.com/simple-guide-to-install-jupyter-notebook-on-linux/ https://thelinuxgurus.com/simple-guide-to-install-jupyter-notebook-on-linux/#respond Sun, 02 Feb 2020 04:48:53 +0000 https://thelinuxgurus.com/?p=1082 Jupyter Notebook is an open-source, interactive web application that allows us to create and share documents. These documents can a bash script or can be...

The post Simple guide to install JUPYTER NOTEBOOK on Linux appeared first on The Linux GURUS.

]]>
Jupyter Notebook is an open-source, interactive web application that allows us to create and share documents. These documents can a bash script or can be code or simple text files or visualization files. It was created as a spinoff of the IPython Notebook project. It runs on the IPython kernel only but there are over 100 other kernels that also can be utilized.

Recommended Read: Important PostgreSQL commands that every beginner should know

Also Read: How to install PIP3 on CentOS/RHEL & use it

Jupyter Notebook supports over 40 programming languages. In this tutorial, we will learn to install the Jupyter notebook on Linux systems. So let’s start this tutorial with pre-requisites first.


Pre-Requisites

There are two methods using which we can install jupyter notebook on Linux. We can install it either using ‘CONDA’ or ‘PIP’. So for pre-requisites, we should have either or both of those installed on our system.

Conda Installation

We have published detailed tutorials for the installation of CONDA (ANACONDA) on Ubuntu & CentOS. Please refer to those tutorials to install anaconda on the system.

PIP installation

Refer to the following articles for installing PIP on Ubuntu & CentOS/RHEL. Once we have these installed, we move to the next part i.e. install Jupyter Notebook.


Install Jupyter Notebook

As mentioned above, we can install jupyter notebook using either CONDA or PIP, in both cases installation required only a single command. We will see the installation steps for both now.

Using Conda

The command for installation of jupyter notebook using conda is,

# conda install -c conda-forge jupyterlab

Using PIP

The command for installation of jupyter notebook using conda is,

# pip install jupyterlab

Once the installation is complete, we need to start the jupyter notebook from the terminal with the following command,

# jupyter notebook

install jupyter notebook

You will now be redirected to your browser by default or if you need to access URL manually, then enter the following URL on the web browser

http://127.0.0.1:8888

install jupyter notebook

Mine is running on port 8080, you can also change the port with the command mentioned below. Now once the jupyter notebook webpage opens, you would be asked to enter “Password or Token” & below it you can also find instructions to find the token. The token is required to create a new password first time we log in to the jupyter notebook & you can find it on the startup logs of jupyter notebook as also shown in the previous screenshot. Enter the token & then create a new password. Once this is complete, log in to the jupyter & you should see a screen like this,

Now let’s discuss some extra options that you can use for running the jupyter notebook.

By default, jupyter will only work on the localhost & if we need to access the jupyter notebook from a remote IP address, then we need to start jupyter from the terminal with an extra parameter,

# jupyter notebook – -ip=’*’

Or we can also mention a single IP in place of ‘*’ to connect from that single IP only. The default port number for jupyter notebook is 8888, we can also change that with the following command,

# jupyter notebook – -ip=’*’ – -port=’8080’

If needed, we can also run the jupyter notebook in the background,

# nohup jupyter notebook – -ip=’*’ – -port=’8080’ &

You can now start using the jupyter notebook for your needs & this was it for this tutorial on how to install jupyter notebook on Linux. As always, your comments, questions are most welcomed. Please do send them using the comment box below.

If you think we have helped you or just want to support us, please consider these:-

Connect to us: Facebook | Twitter | Linkedin

TheLinuxGURUS are thankful for your continued support.

The post Simple guide to install JUPYTER NOTEBOOK on Linux appeared first on The Linux GURUS.

]]>
https://thelinuxgurus.com/simple-guide-to-install-jupyter-notebook-on-linux/feed/ 0 1082