From 7c6c6cf7846ecf61e8e9c5c77c592b81e4f9a5fd Mon Sep 17 00:00:00 2001 From: jgunstone Date: Fri, 14 Apr 2023 18:26:25 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=B0=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ipyautoui/autodisplay.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/ipyautoui/autodisplay.py b/src/ipyautoui/autodisplay.py index 5364ce06..b595adb8 100644 --- a/src/ipyautoui/autodisplay.py +++ b/src/ipyautoui/autodisplay.py @@ -41,7 +41,6 @@ # + import pathlib import functools -from wcmatch.pathlib import Path as wcPath from IPython.display import ( display, clear_output, @@ -619,8 +618,6 @@ def display_catfact(path): display(d) # + -from wcmatch import fnmatch - class AutoDisplay(tr.HasTraits): """ @@ -650,14 +647,6 @@ 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. """ - - # _paths = tr.List() - - # @validate("_paths") - # def _valid_value(self, proposal): - # """makes path a wcmatch.Path (for enhanced pattern matching) and filters out directories""" - # return [wcPath(p) for p in proposal["value"] if not pathlib.Path(p).is_dir()] - def __init__( self, display_objects_actions: ty.List[DisplayObjectActions],