I'm developing a package in Julia, and I'm using Jupyter Notebook to do some testing. The problem is, every time I make a change to my package, I need to restart the kernel.
I heard that the package Revise.jl is supposed to solve this type of problem, but even after sniffing through the documentation, I didn't quite understand how to properly use it with Jupyter Notebook.
How does one properly avoid restarting the kernel for Jupyter every time one makes a change to the package?
Just to give some more context. I have a folder with the following structure:
Manifest.toml
Project.toml
Readme.md
./examples/Notebook.ipynb
./src/function.jl
./src/MyPackage.jl
using Revise
in the first cell of your notebook, beforeusing MyPackage
? When you modify some source file and re-run a cell in your notebook, doesn't it automatically pick the change? (I just checked it works forincludet
, but was too lazy to check for full-fledged packages)