Skip to content

Instantly share code, notes, and snippets.

@isuruf
Forked from bollwyvl/README.md
Last active July 30, 2020 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isuruf/8130c792a082bc131994765693a7f04d to your computer and use it in GitHub Desktop.
Save isuruf/8130c792a082bc131994765693a7f04d 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 install pypy -p ${NB_PYTHON_PREFIX}
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
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'3.6.9 (?, Apr 10 2020, 19:47:05)\\n[PyPy 7.3.1 with GCC 7.3.0]'"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import sys\n",
"sys.version"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment