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", ] 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],