Skip to content

Commit

Permalink
Drop workaround for jupyter/nbclient#85
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Sep 11, 2024
1 parent d469fd3 commit bb48e78
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ixmp/testing/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,6 @@ def run_notebook(nb_path, tmp_path, env=None, **kwargs):
import nbformat
from nbclient import NotebookClient

# Workaround for https://github.com/jupyter/nbclient/issues/85
if (
sys.version_info[0] == 3
and sys.version_info[1] >= 8
and sys.platform.startswith("win")
):
import asyncio

asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

# Read the notebook
nb = nbformat.read(nb_path, as_version=4)

Expand Down

0 comments on commit bb48e78

Please sign in to comment.