Setup Jupyter for blogging
Create your environment for hardcore blogging
- Background info on Jupyter's intentions
- JupyterLab vs Jupyter Notebook
- How to setup Python
- How to setup JupyterLab or Jupyter Notebook
Background info on Jupyter's intentions
Jupyer and its usefulness with R have been covered in a previous blogpost here. Go back and have a quick look at what you are capable to do in Jupyter.
This post will help you setup this framework on your local station and start creating your posts. For further details, please refer to the main page of the projects.
In this post we are assuming that you, the reader, is starting from zero and have no Python installation (or literacy) on your compuater.
There are many ways to set you toolkit up for hardcore blogging at CorrelAid. In here we will cover:
- JupyterLab vs Jupyter Notebook.
- How to setup Python.
- How to setup JupyterLab or Jupyter Notebook.
Let's get started!
JupyterLab vs Jupyter Notebook
If you are completely new to the Python world, you might have not heard of JupyterLab or Jupyter Notebook. That's alright, the bottom line is that both can be used to create your IPython notebooks (and therefore posts) for our blog!
Both are web-based interface, although JupyterLab feels more like a complete IDE (like RStudio) while Jupyter Notebook are documents that combine live runnable code with narrative text (Markdown), equations (LaTeX), images, interactive visualizations and other rich output. Pick you poison and follow us to the next step.
How to setup Python
Installing Python can be done in multiple ways depending on your operative system, but also on the choice of package management system that you prefer to use.
In here we present
conda; they have different ways to be installed.
What is "pip"?
PIP is an acronym that stands for "PIP Installs Packages" or "Preferred Installer Program". It's a command-line utility that allows you to install, reinstall, or uninstall PyPI packages with a simple and straightforward command:
How to get "pip" on my computer?
We reccomend to use Python 3.x versions, in this way
pip will already be available. Here are the installation for Windows, Linux/UNIX and MacOS X.
What is "conda"?
Anaconda is a package manager, an environment manager, a Python/R data science distribution, and a collection of over 7,500+ open-source packages. Anaconda is free and easy to install, and it offers free community support.
How to get "conda" on my computer?
This system is very broad and organic, please refer to the installation page of the project to choose between the full suite or the reduced one (Miniconda)
How to setup JupyterLab or Jupyter Notebook
After choosing the Python package manager and between the two methods to create your IPython notebooks, let's have a quick look on how to run the install.
Install Jupyter Notebook
Install Jupyter Notebook via
pip, you can run in console:
pip install notebook
conda install -c conda-forge notebook
Run the following command at the Terminal (Mac/Linux) or Command Prompt (Windows) to open your notebooks:
Install JupyterLab via
pip, you can run in console:
pip install jupyterlab
conda install -c conda-forge jupyterlab
Run the following command at the Terminal (Mac/Linux) or Command Prompt (Windows) to open the web interface: