Setup the FUSE environment
Julia installation
We highly recommend using the Juliaup manager to install Julia
- Mac & Linux:
curl -fsSL https://install.julialang.org | sh - Windows:
winget install julia -s msstore --accept-source-agreements --accept-package-agreements
Once installed, restart your termninal to pick-up the julia executable.
FUSE installation
FUSE and related packages are registered at the FuseRegistry. For installation start your Julia interpreter by typing julia at the terminal, then:
Add the
FuseRegistryand theFUSEpackage as you would for any other julia package (for a fresh install this can take 5+ mins):using Pkg Pkg.Registry.add(RegistrySpec(url="https://github.com/ProjectTorreyPines/FuseRegistry.jl.git")) Pkg.Registry.add("General") Pkg.add("FUSE")Now you should be able to import the FUSE package:
using FUSEInstall the
fusebotutility to simplify install/updates later on. Nowfusebotshould be a command that you can type anywhere from the terminal.FUSE.install_fusebot()Run the regression tests (optional, this can take 1h+)
julia ] test FUSEExit julia and clone
FUSE examplesin the current working directory. To see/run those.ipynbfiles, you'll need to use Jupyter-Lab or VScode.git clone https://github.com/ProjectTorreyPines/FuseExamplesThis is a git repository that you are in control of. Do a
git fetch && git reset --hard origin/masterto gather the latest updates (NOTE: this will wipe out any changes you have made to those examples!)
Install Jupyter-Lab with Julia support
You will need to install
jupyter-labif that's not already available on your systemNote The WebIO jupyter-lab extension is needed for the
Interact.jlpackage to work.Make sure WebIO is working with
jupyter labextension list. If it is working properly, you should see something like: webio-jupyterlab-provider v0.1.0 enabled OK (python, webiojupyterextension). This can also be checked withjupyter nbextension list, which should show something like: webio-jupyter-nbextension/nbextension enabled.If the extension has compatibility issues, install an older verision of Jupyter (eg.
conda install jupyterlab=3.6.7). Also ensure that the WebIO and Interact packages are fully up-to-date, and restart the notebook session before testing that it works. Finally, it may be necessary to downgrade your system's version of Python - the recommended version for compatibility with Interact is 3.11.11.Install the
IJuliapackage by running:fusebot install_IJuliaStart a new Jupyter-lab session (this should open a web-browser page with Jupyter running)
jupyter-labNow you can browse the examples in the
FuseExamplesfolder that you have cloned, and take a tour of the example Jupyter notebooks there.
Updating FUSE
Get notified of new FUSE releases by "watching" the FUSE repo on GitHub
FUSE is updated like any other Julia package:
julia ] up
Become familiar with how managing Julia packages works.
Updating Julia
Use
juliaup updateto install the latest version of JuliaInstall FUSE to the new version of Julia
using Pkg Pkg.add("FUSE")Run
fusebot install_IJuliato install the Kernel for the latest version of Julia in Jupyter-Lab