Skip to content

nbsite currently does not work with ipykernel >= 7.0 #349

@hoxbro

Description

@hoxbro

Pinned in #348.

A lot of changes have been made in 7.0, but the culprit is what we are doing around these, the execute here:

nbsite/nbsite/nbbuild.py

Lines 85 to 107 in b8f22c5

class ExecutePreprocessor1000(ExecutePreprocessor):
"""Sigh"""
_ipython_startup = None
@property
def kc(self):
return self._kc
@kc.deleter
def kc(self):
del self._kc
@kc.setter
def kc(self, v):
self._kc = v
if v is not None and self._ipython_startup is not None:
self._kc.execute(
self._ipython_startup,
silent=False,
store_history=False,
allow_stdin=False,
stop_on_error=True,
)

To recreate the problem, you should be able to have no untracked files in site/ and then run the following command: pixi run -e docs install && pixi run docs-build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions