Closed jtpio closed 1 year ago
It seems because nbformat
uses importlib.metadata
for find the version: https://github.com/jupyter/nbformat/blob/633a433d13436247c5994f571911c74a1ec507d4/nbformat/_version.py#L5-L10
This change happened in https://github.com/jupyter/nbformat/pull/304
In the xeus python kernel doing something similar to find the version of pandas
returns None
:
Pinning on nbformat=5.5.0
which is the version just before https://github.com/jupyter/nbformat/pull/304 fixes the issue: https://github.com/jupyter/nbformat/releases/tag/5.5.0
In the xeus python kernel doing something similar to find the version of
pandas
returnsNone
:
Although it's not clear why importlib.metadata.version
returns None
.
Just tried with the latest empack==3.1.4
and it seems to be fixing the issue.
Closing as fixed by https://github.com/emscripten-forge/empack/pull/82, thanks!
Description
Building a fresh JupyterLite site with
nbformat
as a dependency gives the following issue:Reproduce
environment.yml
with the following content:python -m pip install jupyterlite-xeus-python
jupyter lite build
jupyter lite serve
Expected behavior
It should be possible to import
nbformat
.Context
This came up when checking if
plotly
works with the xeus python kernel in JupyterLite: