pyegeria 5.3.3.13.dev2__py3-none-any.whl → 5.3.3.13.dev3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyegeria/mermaid_utilities.py +5 -41
- {pyegeria-5.3.3.13.dev2.dist-info → pyegeria-5.3.3.13.dev3.dist-info}/METADATA +1 -1
- {pyegeria-5.3.3.13.dev2.dist-info → pyegeria-5.3.3.13.dev3.dist-info}/RECORD +6 -6
- {pyegeria-5.3.3.13.dev2.dist-info → pyegeria-5.3.3.13.dev3.dist-info}/LICENSE +0 -0
- {pyegeria-5.3.3.13.dev2.dist-info → pyegeria-5.3.3.13.dev3.dist-info}/WHEEL +0 -0
- {pyegeria-5.3.3.13.dev2.dist-info → pyegeria-5.3.3.13.dev3.dist-info}/entry_points.txt +0 -0
pyegeria/mermaid_utilities.py
CHANGED
@@ -42,35 +42,7 @@ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
|
|
42
42
|
EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
|
43
43
|
EGERIA_MERMAID_FOLDER = os.environ.get("EGERIA_MERMAID_FOLDER", "./work/mermaid_graphs")
|
44
44
|
|
45
|
-
|
46
|
-
# def check_mermaid_version():
|
47
|
-
# """Check the version of Mermaid.js loaded in Jupyter Notebook"""
|
48
|
-
# display(HTML("""
|
49
|
-
# <script>
|
50
|
-
# function checkMermaid() {
|
51
|
-
# if (window.mermaid && typeof window.mermaid.version !== "undefined") {
|
52
|
-
# console.log("Mermaid.js version:", mermaid.version);
|
53
|
-
# alert("Mermaid.js version: " + mermaid.version);
|
54
|
-
# } else {
|
55
|
-
# console.warn("Mermaid.js is not loaded yet. Please ensure it's properly injected.");
|
56
|
-
# alert("Mermaid.js is not loaded yet. Please ensure it's properly injected.");
|
57
|
-
# }
|
58
|
-
# }
|
59
|
-
# // Delay execution to ensure Mermaid.js has had time to load
|
60
|
-
# setTimeout(checkMermaid, 1000);
|
61
|
-
# </script>
|
62
|
-
# """))
|
63
|
-
|
64
|
-
# another site to get mermaid from is "https://cdnjs.cloudflare.com/ajax/libs/mermaid/11.4.1/mermaid.min.js";
|
65
|
-
# below was:
|
66
|
-
#<script src="https://unpkg.com/mermaid@11.4.0/dist/mermaid.min.js"></script>
|
67
|
-
# <script type="text/javascript">
|
68
|
-
# if (!window.mermaid) {
|
69
|
-
# var mermaidScript = document.createElement('script');
|
70
|
-
# mermaidScript.src = https://unpkg.com/mermaid@11.4.1/dist/mermaid.min.js"
|
71
|
-
# document.head.appendChild(mermaidScript);
|
72
|
-
# }
|
73
|
-
# </script>
|
45
|
+
|
74
46
|
def load_mermaid():
|
75
47
|
"""Inject Mermaid.js library"""
|
76
48
|
# Alternative CDN URL via unpkg
|
@@ -83,15 +55,7 @@ def load_mermaid():
|
|
83
55
|
</script>
|
84
56
|
|
85
57
|
"""
|
86
|
-
|
87
|
-
# <script src="https://unpkg.com/mermaid@11.4.0/dist/mermaid.min.js"></script>
|
88
|
-
# <script>
|
89
|
-
# document.addEventListener('DOMContentLoaded', function() {{
|
90
|
-
# mermaid.initialize({{"startOnLoad": true}});
|
91
|
-
# }});
|
92
|
-
# </script>
|
93
|
-
#
|
94
|
-
# """
|
58
|
+
|
95
59
|
display(HTML(mermaid_js))
|
96
60
|
|
97
61
|
|
@@ -130,9 +94,9 @@ def construct_mermaid_html(mermaid_str: str) -> str:
|
|
130
94
|
<style type="text/css">
|
131
95
|
#mySvgId {
|
132
96
|
width: 100%;
|
133
|
-
height:
|
134
|
-
overflow:
|
135
|
-
border:
|
97
|
+
height: 600px;
|
98
|
+
overflow: scroll;
|
99
|
+
border: 2px solid #ccc;
|
136
100
|
position: relative;
|
137
101
|
margin-bottom: 10px;
|
138
102
|
}
|
@@ -229,7 +229,7 @@ pyegeria/feedback_manager_omvs.py,sha256=B66e3ZCaC_dirb0mcb2Nz3PYh2ZKsoMAYNOb3eu
|
|
229
229
|
pyegeria/full_omag_server_config.py,sha256=k3fUfopAFAE3OKkFR7zZPiki_FYj6j2xQ4oD2SVaefQ,47350
|
230
230
|
pyegeria/glossary_browser_omvs.py,sha256=NcitYaZJqwVODBO5zBtWpXPNUJJ3DKzEbRaOFSAyUlg,93554
|
231
231
|
pyegeria/glossary_manager_omvs.py,sha256=tBjoHrrHJLasXoeQSpW-KpF3vEQdN_GR3jfcceTjt_c,132444
|
232
|
-
pyegeria/mermaid_utilities.py,sha256=
|
232
|
+
pyegeria/mermaid_utilities.py,sha256=n12wLznJ9yQdyfKyRHaQORF8nX1SQt3hZR4WNU0h7dM,17525
|
233
233
|
pyegeria/metadata_explorer_omvs.py,sha256=XBg6q-JXOA8UYsT85nlpBVe4EQ6jxwj70MvE7tkVvH0,86905
|
234
234
|
pyegeria/my_profile_omvs.py,sha256=DyECbUFEcgokrIbzdMMNljC3bqfqKGXAF2wZEpzvRYs,34666
|
235
235
|
pyegeria/platform_services.py,sha256=CJIOYIFEbcIGwdWlApAQcXxZTsdrhFtpJcm4O3p7dG0,41646
|
@@ -242,8 +242,8 @@ pyegeria/template_manager_omvs.py,sha256=Sw5xsQAhy7a48xFCg59mg9_nqyhawoS9v4WyF-P
|
|
242
242
|
pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
|
243
243
|
pyegeria/valid_metadata_omvs.py,sha256=cCt5CCLv6BdzCu90n68r_PkG_PEQJjrtwCxio7K6yko,65034
|
244
244
|
pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
|
245
|
-
pyegeria-5.3.3.13.
|
246
|
-
pyegeria-5.3.3.13.
|
247
|
-
pyegeria-5.3.3.13.
|
248
|
-
pyegeria-5.3.3.13.
|
249
|
-
pyegeria-5.3.3.13.
|
245
|
+
pyegeria-5.3.3.13.dev3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
246
|
+
pyegeria-5.3.3.13.dev3.dist-info/METADATA,sha256=347eZXBRgtTN5q54HUSeg2D9bDoAigGlOuj-oePlYik,2741
|
247
|
+
pyegeria-5.3.3.13.dev3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
248
|
+
pyegeria-5.3.3.13.dev3.dist-info/entry_points.txt,sha256=cLnCR81Pm2c35hDDg7BOlQ9Mtvx5wofuvwXHnL1bGis,5956
|
249
|
+
pyegeria-5.3.3.13.dev3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|