Using Your Module in a Notebook: autoreload

A notebook can import functions from your own .py file, but the kernel keeps the version it imported first, so after editing the file you restart the kernel and run every cell, or turn on %load_ext autoreload and %autoreload 2 to load each saved change before every cell runs.

By

Updated

Cheat sheet: Using Your Module in a Notebook: autoreload
Category
Data Analysis
Level
Journeyman
Tags
autoreload, import, Kernel (python), Magic Command, Module (python), python