Skip to content

Instantly share code, notes, and snippets.

@bollwyvl
Last active July 30, 2020 04:34
Show Gist options
  • Save bollwyvl/b5443c87c58b2e04ac5faba4d62ff232 to your computer and use it in GitHub Desktop.
Save bollwyvl/b5443c87c58b2e04ac5faba4d62ff232 to your computer and use it in GitHub Desktop.
Using pypy on binder

on

Binder

Thanks to the toil of the folks at conda-forge, you can try out PyPy, a fast alternative Python implementation.

Not everything is available yet, but the bot just keeps on migrating: there's still lots to do, so stay tuned!

name: _mamba
channels:
- conda-forge
- nodefaults
dependencies:
- mamba
- pybind11
name: pypy-notebook
channels:
- conda-forge
- nodefaults
dependencies:
- ipywidgets
- jupyterlab >=2.2.0,<3.0.0a0
- matplotlib-base
- nodejs
- notebook
- numpy
- pandas
- pypy
#!/usr/bin/env bash
source activate
set -eux
time conda env update --prefix ${CONDA_DIR} --file environment-mamba.yml
rm -rf ${NB_PYTHON_PREFIX}
time mamba env update -p ${NB_PYTHON_PREFIX} --file environment-pypy.yml
time jupyter labextension install --no-build @jupyter-widgets/jupyterlab-manager
time jupyter lab build --dev-build=False --minimize=True
time jupyter lab clean
time jlpm cache clean
time conda clean -yaf
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment