From 9671ca6c4c52b1b430573043bfb6103b8cd75f5a Mon Sep 17 00:00:00 2001 From: jgunstone Date: Mon, 17 Apr 2023 11:09:14 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=9A=91=20fnmatch=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ipyautoui/autodisplay.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ipyautoui/autodisplay.py b/src/ipyautoui/autodisplay.py index b595adb8..9f5f707e 100644 --- a/src/ipyautoui/autodisplay.py +++ b/src/ipyautoui/autodisplay.py @@ -74,7 +74,7 @@ KWARGS_COLLAPSE_ALL_FILES, KWARGS_HOME_DISPLAY_FILES, ) - +from wcmatch import fnmatch import requests # from mf library @@ -619,6 +619,7 @@ def display_catfact(path): # + + class AutoDisplay(tr.HasTraits): """ displays the contents of a file in the notebook. @@ -647,6 +648,7 @@ class AutoDisplay(tr.HasTraits): notice that the class allows for "compound" filetypes, especially useful for .json files if you want to display the data in a specific way. """ + def __init__( self, display_objects_actions: ty.List[DisplayObjectActions], From 165af5587a3abd85f37e39e3b45fe6a2e8bb791b Mon Sep 17 00:00:00 2001 From: jgunstone Date: Mon, 17 Apr 2023 11:09:55 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=A7=20remove=20explicity=20traitle?= =?UTF-8?q?ts=20dependency=20(its=20required=20by=20ipywidgets)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fde78de9..59fcbdba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,6 @@ dependencies = [ "pytest", "PyYAML", "stringcase", - "traitlets", "wcmatch", "maplocal==0.1.1", ]