From 4d66f0a0071a4e66c03dcc081857806b83235b69 Mon Sep 17 00:00:00 2001 From: Mehmet Bektas Date: Wed, 3 Apr 2024 19:08:36 -0700 Subject: [PATCH] fix binder build, import strip_color directly --- binder/requirements.txt | 1 + papermill/tests/test_execute.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/binder/requirements.txt b/binder/requirements.txt index 6ebde05a..6b15e076 100644 --- a/binder/requirements.txt +++ b/binder/requirements.txt @@ -3,3 +3,4 @@ pandas matplotlib ipywidgets ipykernel +ansicolors diff --git a/papermill/tests/test_execute.py b/papermill/tests/test_execute.py index f41232c2..9d9b181e 100644 --- a/papermill/tests/test_execute.py +++ b/papermill/tests/test_execute.py @@ -6,12 +6,13 @@ from functools import partial from pathlib import Path from unittest.mock import ANY, patch +from colors import strip_color import nbformat from nbformat import validate from .. import engines, translators -from ..exceptions import PapermillExecutionError, strip_color +from ..exceptions import PapermillExecutionError from ..execute import execute_notebook from ..iorw import load_notebook_node from ..log import logger