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
Or if you are using VScode, select the Rust kernel manually
Now write Rust code like Python!
Acknowledgement
evcxr
evcxr • Updated Oct 28, 2024