Docs: Notebooks
The notebooks are a useful resource, but they require someone reasonably experienced with Julia environments to use them.
- Running the notebooks requires adding several packages that are not mentioned (FFTW, Arpack, Distributions, Multitaper, DelimitedFiles, Plots, and maybe others). They must also know to activate the correct project in which Multitaper.jl and all the packages are installed. Consider supplying a
Manifest.toml
andProject.toml
in the notebooks directory which people can instantiate and a function to run the notebooks from the REPL. - Consider including the output (including plots) in the
.ipynb
files so people can view them without running them. - The notebooks seem to qualify functions with the module name first (e.g.,
Multitaper.unwrapphase
). If the functions you use in the notebooks are intended to be part of the public API, consider exporting those as well. - In
01b_Data_with_Gaps
,MTdir
can be found usingdirname(dirname(pathof(Multitaper)))
, which won’t require the user to change the code to run the cell.
Comments (3)
-
repo owner -
reporter For some reason the images don’t display for me without actually running the code, but your instructions and environment work almost without fault, so this is a great improvement.
I suggest you include a
Manifest.toml
as well asProject.toml
. That way, you candev ..
and have Multitaper as a dependency of the project which will be properly included when usersinstantiate
the project. I had to do this manually to get the notebooks to work.Just to be clear,
julia> cd("Examples") julia> import Pkg julia> Pkg.activate(".") julia> Pkg.develop(path="..")
should do the right thing I think. Then you can commit the
Manifest.toml
file too. -
repo owner Ah, thanks. I’ve modified the
.gitignore
file so as to include theExamples/Manifest.toml
file in this commit. - Log in to comment
Thank you, this is a great set of suggestions. I’ve addressed these here.