Skip to content

Commit

Permalink
Add support for using Python 3.13 (#161)
Browse files Browse the repository at this point in the history
* Document using Python 3.13

Also remove the hard pin on the emscripten-abi, allowing to use the new
channel

* Fix link

* Update Playwright Snapshots

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
martinRenou and github-actions[bot] authored Jan 22, 2025
1 parent ed148b1 commit 00bf9ef
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
16 changes: 16 additions & 0 deletions docs/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ Then those packages are usable directly:
plt.show();
```

### Python 3.13 support

If you specify the emscripten-forge mirror published on [prefix.dev](https://prefix.dev), you will be able to use Python 3.13 in your deployment.

⚠ This is still a work-in-progress feature and some packages may be missing ⚠

```yaml
name: xeus-python-kernel
channels:
- https://repo.prefix.dev/emscripten-forge-dev
- conda-forge
dependencies:
- xeus-python
- numpy
```
### pip packages
⚠ This feature is experimental. You won't have the same user-experience as when using conda/mamba in a "normal" setup ⚠
Expand Down
2 changes: 0 additions & 2 deletions jupyterlite_xeus/create_conda_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def create_conda_env_from_env_file(root_prefix, env_file_content, env_file_locat

# get the specs
specs, pip_dependencies = _extract_specs(env_file_location, env_file_content)
# Force emscripten version
specs.append("emscripten-abi=3.1.45")

create_conda_env_from_specs(
env_name=env_name,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 00bf9ef

Please sign in to comment.