Skip to content

2 Blog posts about Jupyter notebooks refactoring and a Refactoring workshop.

License

Notifications You must be signed in to change notification settings

una-honest-data-and-ai-consulting/Jupyter_refactoring_series

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content

This repo contains a workshop and Medium blog posts.

Workshop: An introduction to Refactoring in Python with Jupyter notebook

Level: Beginner

What you'll learn:

  • why refactoring is needed
  • how to refactor your Python code in Jupyter notebook
  • how to write cleaner and more efficient Python code

Prerequisites

Usage

  • Fork this repository
  • Clone forked repository

For MacOs and Linux users

  • Navigate to the cloned repository folder via terminal and run Makefile
cd Jupyter-refactoring-beginner-jul2020 && make all
  • If you finished with a workshop and want to clean everything, navigate to the main folder and run Makefile
cd Jupyter-refactoring-beginner-jul2020 && make clean

For Windows users

  • Open Anaconda Prompt, navigate to the cloned repository folder and run the following commands line by line
cd Jupyter-refactoring-beginner-jul2020
conda env create -f environment.yml
conda activate jupyter-refactoring
python -s -m ipykernel install --user --name=jupyter-refactoring
jupyter lab
  • If you finished with a workshop and want to clean everything, run the following commands line by line
jupyter kernelspec uninstall jupyter-refactoring
conda deactivate
conda env remove --name jupyter-refactoring

Video record

Refactoring in Python with Jupyter Notebook

Medium Blog posts: Jupyter Refactoring series

For more info go here