Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Rust Kernel Via Evcxr for JupyterLab

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Evcxr common usage information

Tips and Traps

  1. Manually wrap code into a curly brace block might help if life time issues happen. It also help if you use buffered IO.

  2. Due to type deduction, valid code in one cell might become invalid if separated into multiple cells.

Docker Images

The Docker image dclong/jupyterhub-ds:latest contains a valid Rust kernel for Jupyter/Lab notebooks.

Configurations

:timing
:sccache 1

Dependency

Use Custom Source as Dependency

:dep serde = { version = "1.0", features = ["derive"] }

Or

:dep serde_json = "1.0"

References

Evcxr common usage information

https://github.com/google/evcxr/issues/135

Comments