Skip to content

Commit 102ea92

Browse files
committed
some cleanup
1 parent 1108034 commit 102ea92

File tree

7 files changed

+336
-349
lines changed

7 files changed

+336
-349
lines changed

examples/notebooks/conditional-join-w-cmp.ipynb

Lines changed: 152 additions & 152 deletions
Large diffs are not rendered by default.

examples/notebooks/why-janitor.ipynb

Lines changed: 182 additions & 182 deletions
Large diffs are not rendered by default.

pyjviz/method_call.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import ipdb
22
import threading
33
import pandas as pd
4-
import base64
54
import inspect
65

76
from . import wb_stack

pyjviz/method_call_rdf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import ipdb
2-
import pandas as pd
3-
import base64
4-
import inspect
5-
1+
#import ipdb
62
from . import rdf_utils
73
from . import fstriplestore
84
from . import wb_stack

pyjviz/obj_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import textwrap
55
import pandas as pd
66
import io
7-
import base64
87

98
from . import fstriplestore
109
from . import obj_tracking

pyjviz/obj_utils_rdf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import textwrap
44
import pandas as pd
55
import io
6-
import base64
76

87
from . import fstriplestore
98
from . import obj_tracking

pyjviz/viz.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
# there is no dependency of this code to other part of pyjanitor
44
#
55
import os.path, tempfile
6-
import base64
76
import pandas as pd
8-
97
import rdflib
108
from io import StringIO
11-
129
import graphviz
1310

1411
from . import fstriplestore
@@ -66,10 +63,7 @@ def dump_subgraph(g, cc_uri, out_fd, popup_output):
6663
) in g.query(
6764
rq, base=fstriplestore.base_uri, initBindings={"sg": subgraph}
6865
):
69-
method_display = base64.b64decode(
70-
method_display.toPython().encode("ascii")
71-
).decode("ascii")
72-
# method_display = "<br/>".join(textwrap.wrap(method_display, width = 40))
66+
method_display = fstriplestore.from_base64(method_display.toPython())
7367
print(
7468
f"""
7569
node_{uri_to_dot_id(method_call_obj)} [ label = <<TABLE border="0" align="left"><TR><TD>{method_display}</TD></TR></TABLE>> ];

0 commit comments

Comments
 (0)