Running Rust Kernel in Deepnote

The Mythical Engineer


If you need to work with a language other than Python, the Jupyter ecosystem offers a wide range of other kernels. Deepnote supports a lot of them!

Deepnote Official documentation has instructions on setting up R, Julia, Bash, Scala and Ruby.

I tried to set up a Rust kernel and it works well in Deepnote. You can use the provided custom Dockerfile in your environment and you can run rust in Deepnote.

Dockerfile for Rust Kernel

FROM deepnote/python:3.10
RUN apt-get update -y
RUN curl -sSf >
RUN bash -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo --help
RUN cargo install evcxr_jupyter
RUN rustup component add rust-src
RUN pip install jupyter-console
RUN evcxr_jupyter --install
RUN jupyter kernelspec list
RUN jupyter console --kernel rust

After the completion of the build, you can execute Rust in the deepnote notebook.

Rust Example

It’s a little rusty right now as it throws a SIGKILL error sometimes.

Error: Subprocess terminated with status: signal: 9 (SIGKILL)

Rust SIGKILL Error

You can check out my older blog post explaining use of C++ and Javascript Kernel in Deepnote.

#development  #jupyter  #docker  #deepnote  #rust 

Suggested Reading

  • * List of most used Key-Value stores and databases

    * Docker Pull Too Many Requests

    * Change the default editor in Linux

    * Running CPP and JS Kernel in Deepnote Jupyter Notebook

    * Converting Markdown to Epub or Mobi

  • Share this: