Archives For Python IDE

PyCharm IDE

PyCharm python IDE 2018.2 was released yesterday. Here’s how to install it in Ubuntu 18.04, Ubuntu 16.04.

PyCharm 2018.2 release highlights:

  • Fully supports pipenv: easily create projects with pipenv, create a pipfile, and have PyCharm update it for you when you install packages.
  • Improved support for pytest: code completion and inspections are now support for pytest fixtures.
  • Redesigned quick documentation for easy use and better look.

See the feature video for more about PyCharm 2018.2:

How to Install PyCharm 2018.2 in Ubuntu:

It’s quite easy to install the latest PyCharm in Ubuntu since JetBrains offers the official snap packages in snap store.

Simply open Ubuntu Software and search for PyCharm. You’ll see the community, professional, and educational packages are available.

You can also install the software by running command in terminal (Ctrl+Alt+T):

snap install pycharm-community

For professional version, replace pycharm-community with pycharm-professional in command.

Note for Ubuntu 16.04 users first time installing a snap package, make sure if the snapd is installed via command:

sudo apt install snapd snapd-xdg-open

PyCharm IDE

The first release of PyCharm python IDE 2018 was announced earlier today with great new features.

PyCharm 2018.1 release highlights:

  • Data scientists can now define code cells in their files, and choose exactly which parts to execute. No more need to re-import your data every time you finetune your analysis!
  • Do you run Python code on remote machines? Configuring an SSH remote Python interpreter is now easier than ever.
  • Even though Python 3.7 isn’t out yet, PyCharm 2018.1 already fully supports developing Python 3.7 code.
  • Those of you who take pride in having precise commits will be pleased to hear that you can now choose which chunks of files to include in your git commits.
  • PyCharm is the Python IDE that knows your code, and PyCharm 2018.1 knows Python code better than ever with new code intelligence features.
  • Docker Compose file format 3.3 and later are now supported. Also, performance of Docker Compose interpreters has improved significantly.

How to Install PyCharm 2018.1 in Ubuntu:

Jetbrains offers official snap packages for Ubuntu Linux users. You can install it in Ubuntu 16.04, Ubuntu 17.10, Ubuntu 18.04 via following steps.

1. (Ubuntu 16.04 only) For those who never installed a snap package, open terminal (Ctrl+Alt+T) and run command to install snapd daemon:

sudo apt-get install snapd snapd-xdg-open

No visual feedback while typing your password due to security reason.

2. Then you can search for and install PyCharm via Ubuntu Software:

Or run command in terminal instead to install the IDE:

snap install pycharm-community --classic

For professional, replace pycharm-community with pycharm-professional in the code.

PyCharm IDE

Jet Brains announced the release of PyCharm 2017.3 earlier today. Here’s how to install it in Ubuntu 16.04, Ubuntu 17.04, Ubuntu 17.10, Ubuntu 18.04.

PyCharm 2017.3 release highlights:

  • Performance improvements: Python indexing is twice as fast, JavaScript indexing is up to 40% faster, configuring SSH interpreters is much faster (in some cases over 100x), and more!
  • The new release makes creating and selecting Python interpreters easier.
  • A new scientific mode, which puts all the tools you need for data science at your fingertips (professional version only)
  • An all new HTTP client for those who build (REST) APIs.
  • Fully supports for Django 2.0 (professional edition only)
  • Supports running Python modules (python -m )
  • Supports for SSH config files

How to Install PyCharm 2017.3 in Ubuntu:

You can easily run the new release in Ubuntu via either:

method 1: official Linux binaries. NON-INSTALL version, just extract and run executable file to launch the IDE:

Download PyCharm Linux binary

method 2 (recommended): or install the Snap package. WELL integrated with Ubuntu. Support for Ubuntu 16.04 and higher:

Simply open terminal via Ctrl+Alt+T or by searching for ‘terminal’ from app launcher. When it opens, run command:

sudo snap install pycharm-community --classic

For sudo prompts, input your password (no visual feedback while typing) when it asks and hit Enter.

For professional edition, run following command instead:

sudo snap install pycharm-professional --classic

Once installed, launch the IDE from your application launcher and enjoy!

Uninstall:

To remove the snap packages, either use Ubuntu Software or run command in terminal:

sudo snap remove pycharm-community pycharm-professional

This quick tutorial is going to show you how to install the latest Python 3.6.1 in Ubuntu 16.04 LTS via PPA.

Ubuntu 16.04 comes with both Python 2.7 and Python 3.5 by default. You can install Python 3.6 along with them via a third-party PPA by doing following steps:

1. Open terminal via Ctrl+Alt+T or searching for “Terminal” from app launcher. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:jonathonf/python-3.6

Type in your password (no visual feedback due to security reason) when it asks and hit Enter.

2. Then check updates and install Python 3.6 via commands:

sudo apt-get update

sudo apt-get install python3.6

Now you have three Python versions, use python command for version 2.7, python3 for version 3.5, and/or python3.6 for version 3.6.1.

3. To make python3 use the new installed python 3.6 instead of the default 3.5 release, run following 2 commands:

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2

Finally switch between the two python versions for python3 via command:

sudo update-alternatives --config python3

After selecting version 3.6:

python3 -V

UPDATE: due to this bug, gnome-terminal won’t launch after step 3, a workaround is running following commands to recreate the symlink:

sudo rm /usr/bin/python3

sudo ln -s python3.5 /usr/bin/python3

PyCharm IDE

PyCharm 2017.1 was released yesterday. Features a much faster debugger, improved Python and JavaScript unit testing, and support for the six library.

PyCharm 2017.1 release highlights:

  • The Python debugger got forty times faster for Python 3.6 projects, and up to two times faster for older versions of Python
  • added support for the six compatibility library
  • Unit test runners for Python have been rebuilt from the ground up: you can now run any test configuration with PyCharm
  • Improved JavaScript unit testing: gutter icons indicating whether a test passed and support for Jest, Facebook’s JS testing framework (PyCharm Professional only)
  • Zero-latency typing is now on by default
  • Support for native Docker for Mac – no more need to use SOCAT! (PyCharm Professional only)
  • And more!

How to Install PyCharm 2017.1 in Ubuntu:

For the community version, the GetDeb repository has made the packages for Ubuntu 16.04, Ubuntu 16.10, and Linux Mint 18.

1. Open terminal via Ctrl+Alt+T for searching for “terminal” from start menu. When it opens, run command:

sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu $(lsb_release -sc)-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'

2. After adding the GetDeb repository, setup the GPG key via command:

wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -

For Linux Mint, please enable GetDeb repository via Software Sources -> Additional Repositories.

3. Finally install PyCharm, the community version, via commands:

sudo apt update

sudo apt install pycharm

For the professional version, download the official Linux package from the link below, extract, and run the executable from bin/ folder (or read the document).

PyCharm Download Page