Code¶
Julia design patterns
Some notes of Tom kwong's book Hands on Design patterns in Julia.
Julia package loading
When your Julia codebase grows larger, you might want to organize it into modules and packages.
Publish Julian Jupyter notebooks
This post will demonstrate my template repositoryabout
- How to use Docker to build a Julian Jupyter notebooks runtime environment.
- How to use GitHub actions to execute notebooks in the docker container in parallel.
- How to use
jupyter-book
to publish notebooks automatically when changes are pushed to GitHub.
Make IJulia use Python package provided by CondaPkg.jl
Set the JUPYTER
environment variable to CondaPkg.jl
-provided jupyter
and IJulia.jl
will take it to start the kernel. 1
Convert vector of vector to matrix
Use the stack function.
PyPlot.jl tips
Some tips about JuliaPy/PyPlot.jl, the matplotlib
(Python) visualization library for Julia. See also docs for matplotlib since PyPlot.jl
largely follows matplotlib
's API.
Force display format to PNG
In the VSCode plot panel and fredrikekre/Literate.jl notebooks, PNG images are generally smaller than SVG ones. To force plots to be shown as PNG images, you can use tkf/DisplayAs.jl to show objects in a chosen MIME type.
Get the ODE Function from an ODE system
f = ODEFunction(sys)
could be useful in plotting vector fields.