# Use pypy as default python version

**URL:** <https://discourse.jupyter.org/t/use-pypy-as-default-python-version/15628>\
**Category:** Binder\
**Created:** [September 5, 2022, 12:19am UTC](https://discourse.jupyter.org/t/use-pypy-as-default-python-version/15628 "2022-09-05T00:19:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John1](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/john1/32/4670_2.png) [@John1](https://discourse.jupyter.org/u/John1)\
**Post date:** [September 5, 2022, 12:19am UTC](https://discourse.jupyter.org/t/use-pypy-as-default-python-version/15628/1 "2022-09-05T00:19:24Z")

</div>

Is it possible to launch mybinder to use pypy as the default version of python? If so how do you do it.

---

<div class="post-metadata">

**Author:** ![fomightez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fomightez/32/495_2.png) [@fomightez](https://discourse.jupyter.org/u/fomightez)\
**Post date:** [September 5, 2022, 4:01am UTC](https://discourse.jupyter.org/t/use-pypy-as-default-python-version/15628/2 "2022-09-05T04:01:43Z")

</div>

Yes, it should be possible as the example [here shows](https://nbviewer.org/urls/gist.githubusercontent.com/bollwyvl/b5443c87c58b2e04ac5faba4d62ff232/raw/bbac9a5a30adfdb7118b5d0a91ef34c28da507d9/Untitled.ipynb).

Current result from launching that notebook from the gist and running the code to show the version is `PyPy 7.3.7`:

```python
'3.7.12 | packaged by conda-forge | (44db2626, Oct 29 2021, 16:13:40)\n[PyPy 7.3.7 with GCC 9.4.0]'

```

The [pertinent gist](https://gist.github.com/bollwyvl/b5443c87c58b2e04ac5faba4d62ff232).

[Launch with pypy directly](https://mybinder.org/v2/gist/bollwyvl/b5443c87c58b2e04ac5faba4d62ff232/master?urlpath=lab%2Ftree%2FUntitled.ipynb) to the example noteback backed py pypy.

**All credits to Nick (@bollwyvl /[bollwyvl (Nicholas Bollweg) · GitHub](https://github.com/bollwyvl)) for that gist.**

* * *

Interestingly, I learned of that gist repo from [here](https://github.com/GaryZ700/CatLab_CompChem), which credits the one above as a guide for using pypy, however, launching from the main branch using the launch badge there at this time doesn’t seem to result in pypy now.

---

<div class="post-metadata">

**Author:** ![John1](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/john1/32/4670_2.png) [@John1](https://discourse.jupyter.org/u/John1)\
**Post date:** [September 5, 2022, 6:30pm UTC](https://discourse.jupyter.org/t/use-pypy-as-default-python-version/15628/3 "2022-09-05T18:30:13Z")

</div>

Thanks, I got pypy to work now in mybinder.

> **[GitHub: jcoady/vpbindernbspypy/HEAD](https://mybinder.org/v2/gh/jcoady/vpbindernbspypy/HEAD)**
>
> Click to run this interactive environment. From the Binder Project: Reproducible, sharable, interactive computing environments.

for my github repository.

> **[GitHub - jcoady/vpbindernbspypy](https://github.com/jcoady/vpbindernbspypy)**
>
> Contribute to jcoady/vpbindernbspypy development by creating an account on GitHub.

I made small changes to use jupyterlab3.x instead of jupyterlab2.x in the original environment-pypy.yml file.

---

<div class="post-metadata">

**Author:** ![fomightez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fomightez/32/495_2.png) [@fomightez](https://discourse.jupyter.org/u/fomightez)\
**Post date:** [September 5, 2022, 6:48pm UTC](https://discourse.jupyter.org/t/use-pypy-as-default-python-version/15628/4 "2022-09-05T18:48:49Z")

</div>

> [@John1](#):
>
> I made small changes to use jupyterlab3.x instead of jupyterlab2.x in the original environment-pypy.yml file.

I was going to mention that the version NIck had hasn’t been updated in two years. Glad to do hear it was easy to make it use JupyterLab version 3. And thanks for posting the link to your version so that others can benefit.
