How to write Rust in JupyterLab
This is going to be a super short article. After installing Rust and Jupyter Lab, you just need to run the following commands one-by-one.
cargo install evcxr_jupyter
evcxr_jupyter --install
You might get some errors, but the terminal should give you enough information to resolve them.
For example, if you installed Rust a while ago, you might have to run rustup update
before running the two commands above.
Or if you are running macOS, you might have to run sudo xcodebuild -license
and agree to the terms and conditions before running the commands above.
After the installation is complete, you can run jupyter lab
and you should see a Jupyter notebook with Rust logo in the user interface.