Installation

PyPI version

Prerequisites

Python

There are many ways to get Python. If you don’t know which one is best for you, you can try Anaconda.

pip

Recent versions of Python already come with pip pre-installed. If you don’t have it, you can install it manually.

Virtual environments

Use a virtual environment to manage the dependencies for your project, both in development and in production.

What problem does a virtual environment solve? The more Python projects you have, the more likely it is that you need to work with different versions of Python libraries, or even Python itself. Newer versions of libraries for one project can break compatibility in another project.

Virtual environments are independent groups of Python libraries, one for each project. Packages installed for one project will not affect other projects or the operating system’s packages.

Python comes bundled with the venv module to create virtual environments.

Create a project folder and a venv folder within:

macOS/Linux:

$ mkdir myproject
$ cd myproject
$ python3 -m venv venv

Windows:

> mkdir myproject
> cd myproject
> py -3 -m venv venv

Activate the environment Before you work on your project, activate the corresponding environment:

macOS/Linux:

$ . venv/bin/activate

Windows:

> venv\Scripts\activate

jupyter2hashnode

Install jupyter2hashnode with pip:

$ pip install jupyter2hashnode

Depending on your Python installation, you may have to use python instead of python3. If you have installed the module already, you can use the --upgrade flag to get the newest release.

Other Prerequisites

This prerequisites will be installed automatically when installing the jupiter2hashnode package.

nbconvert

The nbconvert is used to convert the notebook to Markdown content. It will be installed with the jupyter2hashnode package by default.

If not installed by default have a look at nbconvert’s installation instructions.

Pillow

The Pillow is used to compress images before upload them. It will be installed with the jupyter2hashnode package by default.

If not installed by default have a look at Pillow’s installation instructions.