Play with Rust interactively in Jupyter
🦀

Play with Rust interactively in Jupyter

Tags
Rust
Jupyter
Setup
Published
January 14, 2024
Author
Assume you already have Jupyter Lab (or Notebook) and Rust installed
Use the following commands to install the Evcxr Jupyter kernel, which provides an evaluation context for Rust
cargo install --locked evcxr_jupyter evcxr_jupyter --install
 
If you are using Jupyter in the browser, simply click the Rust button to start a session with Rust kernel
notion image
 
Or if you are using VScode, select the Rust kernel manually
notion image
notion image
 
Now write Rust code like Python!
notion image

Acknowledgement

evcxr
evcxrUpdated Oct 28, 2024