Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pangiole/rust-notebooks


https://github.com/pangiole/rust-notebooks

Last synced: 16 days ago
JSON representation

Awesome Lists containing this project

README

        

# rust-notebooks

## requirements

* [pyenv](https://github.com/pyenv/pyenv)
* [poetry](https://python-poetry.org/)
* [rustup](https://rustup.rs/)

## setup
First of all, by using `pyenv`, install a new Python interpreter which is going to be used as the **base** for yet another Python virtual environment, specifically created for this project.

```
# install the base
pyenv install 3.11.4
```

### virtual environment
Install the new Python virtual environment and all the packages specified as dependencies of this project (see `pyproject.toml`). Notice how `poetry` is going to create the new Python virtual environment in the `.venv` directory.

```
poetry self update
poetry install
```

### jupyter kernel
Install the EvCxR Jupyter kernel, and test if it works.

```
rustup update stable
cargo install --locked evcxr_jupyter
```

```
poetry shell
evcxr_jupyter --install
jupyter lab
```