Mikołaj Buchwald

Deprecation warning: This web page is out of date. My current web page is located at: mikolajbuchwald.com.

Jupyter Notebook and server utilities

January 21, 2020  

Workshop on Jupyter Notebook for Python and various server tools and utilities.

Agenda

  1. Jupyter Notebook – general overview
  2. Install and run Jupyter Notebook locally
  3. How to setup and run Jupyter instance on a server
  4. Server tools:
  5. IDEs
  6. Access over SSH, and SSL certificates

Introduction

Who am I?

Inspiration for this workshop

1. Jupter Notebook

jupyter

Background

Basic example:

Utils, part 1:

Materials

Utils, part 2:

2. Install and run Jupyter Notebook locally

How to install and run Jupyter on various platforms – readthedocs.

TL;DR:

pip install jupyter notebook
jupyter notebook

3. How to setup and run Jupyter instance on a server

In order to run Jupyter Notebook on a server, it’s best you knew the following concepts:

Do-it-yourself version is provided with these two web pages:

4. Server tools:

ZSH

z-shell

General information

In short, zsh is a more interactive version of bash. What does the interactive stand for? Basically, with zsh your Tab key becomes an intelligent, powerful entity (advanced autocompletion).

Particularly useful with:

Time for a little demonstration :)

Recommended zsh framework: oh-my-zsh.

The easiest way to install zsh:

(with curl)

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

(with wget)

sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

vim

vi-tariser

tarsier /ˈtɑːsɪə/

vim web page tells you all

Descendant of ex line editor (reminiscence in vi’s ex mode).

Advantages:

Disadvantages:

one-does-not-simply

tmux

tmux-vim

Terminal multiplexer – your best friend both: locally and on a server.

Nice introductory tutorial on tmux.

Do you know terminator? Tmux is similar, but better.

gpakosz has the best tmux configuration

iTerm (for macOS)

Next-gen terminal for macOS (web page). I dont even remember the name of the default macOS terminal anymore…

iterm-jump-to-file

5. IDEs

Atom (with plugins)

Atom is light, Atom is nice, Atom is open.

atom-logo

Bare-bones Atom is very crude. However, there are plethora of plugins (aka packages)!

Must-have plugins:

IntelliJ products, e.g., PyCharm

pycharm-example

Magnificent, heavy, feature-packed:

6. Access over SSH, and SSL certificates

SSH:


Last modified on Jan 20, 2020