mayutils 1.2.42__tar.gz → 1.2.44__tar.gz
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.
- {mayutils-1.2.42 → mayutils-1.2.44}/PKG-INFO +1 -1
- {mayutils-1.2.42 → mayutils-1.2.44}/pyproject.toml +1 -1
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/export/slides.py +13 -16
- {mayutils-1.2.42 → mayutils-1.2.44}/LICENSE +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/README.md +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/core/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/core/constants.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/data/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/data/analysis/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/data/cache/.gitkeep +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/data/live.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/data/local.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/data/queries/.gitkeep +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/data/queries/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/data/queries/examples/.gitkeep +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/data/read.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/environment/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/environment/benchmarking.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/environment/databases.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/environment/filesystem.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/environment/logging.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/environment/memoisation.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/environment/oauth.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/environment/secrets.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/environment/webdrivers.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/export/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/export/html.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/export/images.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/export/pdf.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/interfaces/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/interfaces/google.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/interfaces/microsoft.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/interfaces/streamlit.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/mathematics/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/mathematics/numba.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/mathematics/numpy.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/classes.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/colours.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/dataframes.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/datetime.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/decorators.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/dictionaries.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/functions.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/hashing.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/numbers.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/strings.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/objects/types.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/py.typed +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/scripts/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/scripts/clear_cache.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/scripts/versioning.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/testing/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/console.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/combine.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/matplotlib/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/matplotlib/template.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/plotly/__init__.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/plotly/charts.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/plotly/templates.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/plotly/traces.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/plotly/utilities.py +0 -0
- {mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/notebook.py +0 -0
|
@@ -14,16 +14,16 @@ from mayutils.export import OUTPUT_FOLDER
|
|
|
14
14
|
|
|
15
15
|
WARNING = "Not an ipython notebook"
|
|
16
16
|
|
|
17
|
-
try:
|
|
18
|
-
|
|
17
|
+
# try:
|
|
18
|
+
# from IPython import get_ipython # type: ignore
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
# ipython = get_ipython()
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
# if ipython is None:
|
|
23
|
+
# raise ValueError(WARNING)
|
|
24
24
|
|
|
25
|
-
except ImportError:
|
|
26
|
-
|
|
25
|
+
# except ImportError:
|
|
26
|
+
# raise ValueError(WARNING)
|
|
27
27
|
|
|
28
28
|
SLIDES_FOLDER = OUTPUT_FOLDER / "Slides"
|
|
29
29
|
|
|
@@ -52,26 +52,23 @@ def subtitle_text(
|
|
|
52
52
|
|
|
53
53
|
def export_slides(
|
|
54
54
|
title: Optional[str] = None,
|
|
55
|
-
|
|
55
|
+
file_path: Path | str = "report.ipynb",
|
|
56
56
|
theme: Optional[tuple[str, str]] = None,
|
|
57
57
|
serve: bool = False,
|
|
58
58
|
light: bool = False,
|
|
59
|
+
rerun: bool = True,
|
|
59
60
|
) -> Path | None:
|
|
60
61
|
if not not_nbconvert():
|
|
61
62
|
return None
|
|
62
63
|
|
|
64
|
+
file_path = Path(file_path)
|
|
65
|
+
|
|
63
66
|
today = Date.today().strftime(
|
|
64
67
|
format="%Y_%m_%d",
|
|
65
68
|
)
|
|
66
69
|
|
|
67
|
-
filepath = (
|
|
68
|
-
os.path.dirname(p=os.path.realpath(filename="__file__")) + "/" + file_name
|
|
69
|
-
)
|
|
70
|
-
|
|
71
70
|
file_title = (
|
|
72
|
-
f"{title}_{today}"
|
|
73
|
-
if title is not None
|
|
74
|
-
else f"{file_name.split(sep='.')[0]}_{today}"
|
|
71
|
+
f"{title}_{today}" if title is not None else f"{file_path.stem}_{today}"
|
|
75
72
|
)
|
|
76
73
|
output_filepath = SLIDES_FOLDER / file_title
|
|
77
74
|
|
|
@@ -86,7 +83,7 @@ def export_slides(
|
|
|
86
83
|
total=None,
|
|
87
84
|
)
|
|
88
85
|
call(
|
|
89
|
-
args=f"_NBCONVERT_OUTPUT_FORMAT=slides jupyter nbconvert {escape(
|
|
86
|
+
args=f"_NBCONVERT_OUTPUT_FORMAT=slides jupyter nbconvert {escape(str(file_path))} --output {escape(str(output_filepath))}{' --execute' if rerun else ''} {'' if theme is None else ('--template=' + theme[0])} --to slides --no-input --no-prompt{'' if not serve else ' --post serve'} --SlidesExporter.reveal_scroll=True --SlidesExporter.reveal_number=c/t --SlidesExporter.reveal_theme={'simple' if light else 'night'} {'' if theme is None else ('--TemplateExporter.extra_template_basedirs=' + theme[1])}",
|
|
90
87
|
shell=True,
|
|
91
88
|
)
|
|
92
89
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/matplotlib/__init__.py
RENAMED
|
File without changes
|
{mayutils-1.2.42 → mayutils-1.2.44}/src/mayutils/visualisation/graphs/matplotlib/template.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|