dive-custom-slideshow 0.1.3__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.
- dive_custom_slideshow-0.1.3/.copier-answers.yml +14 -0
- dive_custom_slideshow-0.1.3/.devcontainer/Dockerfile +17 -0
- dive_custom_slideshow-0.1.3/.devcontainer/devcontainer.json +33 -0
- dive_custom_slideshow-0.1.3/.gitignore +129 -0
- dive_custom_slideshow-0.1.3/.prettierignore +6 -0
- dive_custom_slideshow-0.1.3/.yarnrc.yml +1 -0
- dive_custom_slideshow-0.1.3/CHANGELOG.md +31 -0
- dive_custom_slideshow-0.1.3/Demo/SVG.png +0 -0
- dive_custom_slideshow-0.1.3/Demo/SVG_anim.png +0 -0
- dive_custom_slideshow-0.1.3/Demo/code_cell.png +0 -0
- dive_custom_slideshow-0.1.3/Demo/common_tools.png +0 -0
- dive_custom_slideshow-0.1.3/Demo/mathjax.png +0 -0
- dive_custom_slideshow-0.1.3/Demo/start_slideshow.png +0 -0
- dive_custom_slideshow-0.1.3/Demo/transition.png +0 -0
- dive_custom_slideshow-0.1.3/LICENSE +29 -0
- dive_custom_slideshow-0.1.3/PKG-INFO +198 -0
- dive_custom_slideshow-0.1.3/README.md +142 -0
- dive_custom_slideshow-0.1.3/RELEASE.md +80 -0
- dive_custom_slideshow-0.1.3/babel.config.js +1 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/_version.py +4 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/build_log.json +732 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/package.json +206 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/schemas/custom-slideshow/package.json.orig +201 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/schemas/custom-slideshow/plugin.json +125 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/lib_index_js-data_image_gif_base64_R0lGODlhIAAgAPMAAJmZmf_2F_2F_2F6_2Bvr8nJybW1tcDAwOjo6Nvb26-baaebe.d0ae3f6ff7c5fb4e87d0.js +698 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/lib_index_js-data_image_gif_base64_R0lGODlhIAAgAPMAAJmZmf_2F_2F_2F6_2Bvr8nJybW1tcDAwOjo6Nvb26-baaebe.d0ae3f6ff7c5fb4e87d0.js.map +1 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/lib_rajgoel_animate_js.79a3cbe0137d3193df47.js +488 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/lib_rajgoel_animate_js.79a3cbe0137d3193df47.js.map +1 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/lib_rajgoel_loadcontent_js.e923c36a752e11a5cf8a.js +99 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/lib_rajgoel_loadcontent_js.e923c36a752e11a5cf8a.js.map +1 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/remoteEntry.4db33c6c7b1f485debf2.js +558 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/remoteEntry.4db33c6c7b1f485debf2.js.map +1 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/style.js +4 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/style_index_js.9929588164089cdad618.js +622 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/style_index_js.9929588164089cdad618.js.map +1 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/vendors-node_modules_mathjax_src_mjs_adaptors_browserAdaptor_js-node_modules_mathjax_src_mjs_-af6e73.eb98a7e22513d321047d.js +30814 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/vendors-node_modules_mathjax_src_mjs_adaptors_browserAdaptor_js-node_modules_mathjax_src_mjs_-af6e73.eb98a7e22513d321047d.js.map +1 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/vendors-node_modules_reveal_js_dist_reveal_esm_js.3dfa07cfe8a43b5c5ab8.js +27 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/vendors-node_modules_reveal_js_dist_reveal_esm_js.3dfa07cfe8a43b5c5ab8.js.map +1 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/vendors-node_modules_svgdotjs_svg_js_src_main_js.03581806155b1fd0d3f5.js +9623 -0
- dive_custom_slideshow-0.1.3/custom_slideshow/labextension/static/vendors-node_modules_svgdotjs_svg_js_src_main_js.03581806155b1fd0d3f5.js.map +1 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/__init__.py +16 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/_version.py +4 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/package.json +206 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/schemas/dive-custom-slideshow/package.json.orig +201 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/schemas/dive-custom-slideshow/plugin.json +125 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/399.ea7c7d33549b526c9419.js +1 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/408.98c9e2d257437ef5ea89.js +2 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/408.98c9e2d257437ef5ea89.js.LICENSE.txt +7 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/626.fac37229a85ff01f4c4d.js +1 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/645.53bfdb89b3df2625d4dd.js +1 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/851.1076c315802eb66dd3ad.js +1 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/863.b5fcfa410282486dac4a.js +1 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/91.bdd56ecd920f8ab5ba78.js +1 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/remoteEntry.91c8a33759e244964d86.js +1 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/style.js +4 -0
- dive_custom_slideshow-0.1.3/dive_custom_slideshow/labextension/static/third-party-licenses.json +46 -0
- dive_custom_slideshow-0.1.3/environment.yml +12 -0
- dive_custom_slideshow-0.1.3/install.json +5 -0
- dive_custom_slideshow-0.1.3/jest.config.js +28 -0
- dive_custom_slideshow-0.1.3/package.json +201 -0
- dive_custom_slideshow-0.1.3/pyproject.toml +77 -0
- dive_custom_slideshow-0.1.3/schema/plugin.json +125 -0
- dive_custom_slideshow-0.1.3/setup.py +1 -0
- dive_custom_slideshow-0.1.3/src/__tests__/custom_slideshow.spec.ts +9 -0
- dive_custom_slideshow-0.1.3/src/constants.ts +20 -0
- dive_custom_slideshow-0.1.3/src/declare.d.ts +2 -0
- dive_custom_slideshow-0.1.3/src/index.ts +42 -0
- dive_custom_slideshow-0.1.3/src/mathjax4/LICENSE +31 -0
- dive_custom_slideshow-0.1.3/src/mathjax4/plugin.ts +61 -0
- dive_custom_slideshow-0.1.3/src/plugin.ts +526 -0
- dive_custom_slideshow-0.1.3/src/rajgoel/LICENSE +24 -0
- dive_custom_slideshow-0.1.3/src/rajgoel/animate.js +546 -0
- dive_custom_slideshow-0.1.3/src/rajgoel/loadcontent.js +97 -0
- dive_custom_slideshow-0.1.3/src/slideType.ts +75 -0
- dive_custom_slideshow-0.1.3/style/base.css +14 -0
- dive_custom_slideshow-0.1.3/style/index.js +2 -0
- dive_custom_slideshow-0.1.3/style/reveal.css +42 -0
- dive_custom_slideshow-0.1.3/tsconfig.json +27 -0
- dive_custom_slideshow-0.1.3/tsconfig.test.json +3 -0
- dive_custom_slideshow-0.1.3/ui-tests/README.md +167 -0
- dive_custom_slideshow-0.1.3/ui-tests/jupyter_server_test_config.py +12 -0
- dive_custom_slideshow-0.1.3/ui-tests/package.json +15 -0
- dive_custom_slideshow-0.1.3/ui-tests/playwright.config.js +14 -0
- dive_custom_slideshow-0.1.3/ui-tests/tests/custom_slideshow.spec.ts +23 -0
- dive_custom_slideshow-0.1.3/ui-tests/yarn.lock +0 -0
- dive_custom_slideshow-0.1.3/yarn.lock +11156 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
|
|
2
|
+
_commit: v4.4.0
|
|
3
|
+
_src_path: https://github.com/jupyterlab/extension-template
|
|
4
|
+
author_email: ltshum6-c@my.cityu.edu.hk
|
|
5
|
+
author_name: ltshum
|
|
6
|
+
has_binder: false
|
|
7
|
+
has_settings: true
|
|
8
|
+
kind: frontend
|
|
9
|
+
labextension_name: dive-custom-slideshow
|
|
10
|
+
project_short_description: JupyterLab extension for animated slideshow.
|
|
11
|
+
python_name: custom_slideshow
|
|
12
|
+
repository: https://github.com/ltshum/fyp-dive-custom-slideshow
|
|
13
|
+
test: true
|
|
14
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
FROM mcr.microsoft.com/devcontainers/miniconda:0-3
|
|
2
|
+
|
|
3
|
+
# Copy environment.yml (if found) to a temp location so we update the environment.
|
|
4
|
+
COPY environment.yml /tmp/conda-tmp/
|
|
5
|
+
RUN /opt/conda/bin/conda config --add channels conda-forge \
|
|
6
|
+
&& /opt/conda/bin/conda config --remove channels defaults \
|
|
7
|
+
&& /opt/conda/bin/conda install -y mamba
|
|
8
|
+
RUN umask 0002 && /opt/conda/bin/mamba env update -n base -f /tmp/conda-tmp/environment.yml
|
|
9
|
+
|
|
10
|
+
# [Optional] Uncomment to install a different version of Python than the default
|
|
11
|
+
# RUN mamba install -y python=3.6 \
|
|
12
|
+
# && pip install --no-cache-dir pipx \
|
|
13
|
+
# && pipx reinstall-all
|
|
14
|
+
|
|
15
|
+
# [Optional] Uncomment this section to install additional OS packages.
|
|
16
|
+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
17
|
+
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
2
|
+
// README at: https://github.com/devcontainers/templates/tree/main/src/miniconda
|
|
3
|
+
{
|
|
4
|
+
"name": "Miniconda (Python 3)",
|
|
5
|
+
"build": {
|
|
6
|
+
"context": "..",
|
|
7
|
+
"dockerfile": "Dockerfile"
|
|
8
|
+
},
|
|
9
|
+
|
|
10
|
+
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
11
|
+
// "features": {},
|
|
12
|
+
|
|
13
|
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
14
|
+
// "forwardPorts": [],
|
|
15
|
+
|
|
16
|
+
// Use 'postCreateCommand' to run commands after the container is created.
|
|
17
|
+
// "postCreateCommand": "python --version",
|
|
18
|
+
|
|
19
|
+
// Configure tool-specific properties.
|
|
20
|
+
"customizations": {
|
|
21
|
+
"vscode": {
|
|
22
|
+
"extensions": [
|
|
23
|
+
"dbaeumer.vscode-eslint",
|
|
24
|
+
"esbenp.prettier-vscode",
|
|
25
|
+
"meganrogge.template-string-converter",
|
|
26
|
+
"ms-python.python"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
32
|
+
// "remoteUser": "root"
|
|
33
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
*.bundle.*
|
|
2
|
+
lib/
|
|
3
|
+
node_modules/
|
|
4
|
+
*.log
|
|
5
|
+
.eslintcache
|
|
6
|
+
.stylelintcache
|
|
7
|
+
*.egg-info/
|
|
8
|
+
.ipynb_checkpoints
|
|
9
|
+
*.tsbuildinfo
|
|
10
|
+
dive_custom_slideshow/labextension
|
|
11
|
+
# Version file is handled by hatchling
|
|
12
|
+
dive_custom_slideshow/_version.py
|
|
13
|
+
|
|
14
|
+
# Integration tests
|
|
15
|
+
ui-tests/test-results/
|
|
16
|
+
ui-tests/playwright-report/
|
|
17
|
+
|
|
18
|
+
# Created by https://www.gitignore.io/api/python
|
|
19
|
+
# Edit at https://www.gitignore.io/?templates=python
|
|
20
|
+
|
|
21
|
+
### Python ###
|
|
22
|
+
# Byte-compiled / optimized / DLL files
|
|
23
|
+
__pycache__/
|
|
24
|
+
*.py[cod]
|
|
25
|
+
*$py.class
|
|
26
|
+
|
|
27
|
+
# C extensions
|
|
28
|
+
*.so
|
|
29
|
+
|
|
30
|
+
# Distribution / packaging
|
|
31
|
+
.Python
|
|
32
|
+
build/
|
|
33
|
+
develop-eggs/
|
|
34
|
+
dist/
|
|
35
|
+
downloads/
|
|
36
|
+
eggs/
|
|
37
|
+
.eggs/
|
|
38
|
+
lib/
|
|
39
|
+
lib64/
|
|
40
|
+
parts/
|
|
41
|
+
sdist/
|
|
42
|
+
var/
|
|
43
|
+
wheels/
|
|
44
|
+
pip-wheel-metadata/
|
|
45
|
+
share/python-wheels/
|
|
46
|
+
.installed.cfg
|
|
47
|
+
*.egg
|
|
48
|
+
MANIFEST
|
|
49
|
+
|
|
50
|
+
# PyInstaller
|
|
51
|
+
# Usually these files are written by a python script from a template
|
|
52
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
53
|
+
*.manifest
|
|
54
|
+
*.spec
|
|
55
|
+
|
|
56
|
+
# Installer logs
|
|
57
|
+
pip-log.txt
|
|
58
|
+
pip-delete-this-directory.txt
|
|
59
|
+
|
|
60
|
+
# Unit test / coverage reports
|
|
61
|
+
htmlcov/
|
|
62
|
+
.tox/
|
|
63
|
+
.nox/
|
|
64
|
+
.coverage
|
|
65
|
+
.coverage.*
|
|
66
|
+
.cache
|
|
67
|
+
nosetests.xml
|
|
68
|
+
coverage/
|
|
69
|
+
coverage.xml
|
|
70
|
+
*.cover
|
|
71
|
+
.hypothesis/
|
|
72
|
+
.pytest_cache/
|
|
73
|
+
|
|
74
|
+
# Translations
|
|
75
|
+
*.mo
|
|
76
|
+
*.pot
|
|
77
|
+
|
|
78
|
+
# Scrapy stuff:
|
|
79
|
+
.scrapy
|
|
80
|
+
|
|
81
|
+
# Sphinx documentation
|
|
82
|
+
docs/_build/
|
|
83
|
+
|
|
84
|
+
# PyBuilder
|
|
85
|
+
target/
|
|
86
|
+
|
|
87
|
+
# pyenv
|
|
88
|
+
.python-version
|
|
89
|
+
|
|
90
|
+
# celery beat schedule file
|
|
91
|
+
celerybeat-schedule
|
|
92
|
+
|
|
93
|
+
# SageMath parsed files
|
|
94
|
+
*.sage.py
|
|
95
|
+
|
|
96
|
+
# Spyder project settings
|
|
97
|
+
.spyderproject
|
|
98
|
+
.spyproject
|
|
99
|
+
|
|
100
|
+
# Rope project settings
|
|
101
|
+
.ropeproject
|
|
102
|
+
|
|
103
|
+
# Mr Developer
|
|
104
|
+
.mr.developer.cfg
|
|
105
|
+
.project
|
|
106
|
+
.pydevproject
|
|
107
|
+
|
|
108
|
+
# mkdocs documentation
|
|
109
|
+
/site
|
|
110
|
+
|
|
111
|
+
# mypy
|
|
112
|
+
.mypy_cache/
|
|
113
|
+
.dmypy.json
|
|
114
|
+
dmypy.json
|
|
115
|
+
|
|
116
|
+
# Pyre type checker
|
|
117
|
+
.pyre/
|
|
118
|
+
|
|
119
|
+
# End of https://www.gitignore.io/api/python
|
|
120
|
+
|
|
121
|
+
# OSX files
|
|
122
|
+
.DS_Store
|
|
123
|
+
|
|
124
|
+
# Yarn cache
|
|
125
|
+
.yarn/
|
|
126
|
+
|
|
127
|
+
# VS Code
|
|
128
|
+
.vscode/
|
|
129
|
+
.copier-answer.vscode.yml
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodeLinker: node-modules
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
<!-- <START NEW CHANGELOG ENTRY> -->
|
|
4
|
+
|
|
5
|
+
<!-- <END NEW CHANGELOG ENTRY> -->
|
|
6
|
+
|
|
7
|
+
## 0.1.3 - 2026/5/14
|
|
8
|
+
|
|
9
|
+
- Compile with jupyterlab 4.5.x to make it work with xeus kernel that requires 4.5.x.
|
|
10
|
+
|
|
11
|
+
## 0.1.2 - 2026/4/22
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Add class labelling for MathJax expressions (Details: [MathJax html extension](https://docs.mathjax.org/en/latest/input/tex/extensions/html.html))
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fix SVG reset error when no animation is created
|
|
20
|
+
- Fix error initializing multiple SVG images in the same cell
|
|
21
|
+
|
|
22
|
+
## 0.1.1 - 2026/3/27
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Fix MathJax selector for "animation" object in SVG animations
|
|
27
|
+
- Fix README.md image links
|
|
28
|
+
|
|
29
|
+
## 0.1.0 - 2026/3/22
|
|
30
|
+
|
|
31
|
+
- Initial release
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, ltshum
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dive-custom-slideshow
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: JupyterLab extension for animated slideshow.
|
|
5
|
+
Project-URL: Homepage, https://github.com/ccha23/fyp-custom-slideshow
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/ccha23/fyp-custom-slideshow/issues
|
|
7
|
+
Project-URL: Repository, https://github.com/ccha23/fyp-custom-slideshow.git
|
|
8
|
+
Author-email: ltshum <ltshum6-c@my.cityu.edu.hk>
|
|
9
|
+
License: BSD 3-Clause License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2025, ltshum
|
|
12
|
+
All rights reserved.
|
|
13
|
+
|
|
14
|
+
Redistribution and use in source and binary forms, with or without
|
|
15
|
+
modification, are permitted provided that the following conditions are met:
|
|
16
|
+
|
|
17
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
18
|
+
list of conditions and the following disclaimer.
|
|
19
|
+
|
|
20
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
21
|
+
this list of conditions and the following disclaimer in the documentation
|
|
22
|
+
and/or other materials provided with the distribution.
|
|
23
|
+
|
|
24
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
25
|
+
contributors may be used to endorse or promote products derived from
|
|
26
|
+
this software without specific prior written permission.
|
|
27
|
+
|
|
28
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
29
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
30
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
31
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
32
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
33
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
34
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
35
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
36
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
37
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
38
|
+
License-File: LICENSE
|
|
39
|
+
Keywords: jupyter,jupyterlab,jupyterlab-extension
|
|
40
|
+
Classifier: Framework :: Jupyter
|
|
41
|
+
Classifier: Framework :: Jupyter :: JupyterLab
|
|
42
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
43
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
|
|
44
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
|
|
45
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
46
|
+
Classifier: Programming Language :: Python
|
|
47
|
+
Classifier: Programming Language :: Python :: 3
|
|
48
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
49
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
50
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
51
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
52
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
53
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
54
|
+
Requires-Python: >=3.9
|
|
55
|
+
Description-Content-Type: text/markdown
|
|
56
|
+
|
|
57
|
+
# dive_custom_slideshow
|
|
58
|
+
|
|
59
|
+
[](https://github.com/ltshum/fyp-custom-slideshow/actions/workflows/build.yml)
|
|
60
|
+
|
|
61
|
+
JupyterLab extension for animated slideshow.
|
|
62
|
+
|
|
63
|
+
Demo: https://ltshum.github.io/jupyterlite/lab/index.html
|
|
64
|
+
<br>(Please run all cells before initializing slideshow to correctly display animations.)
|
|
65
|
+
|
|
66
|
+
## Requirements
|
|
67
|
+
|
|
68
|
+
- JupyterLab >= 4.0.0
|
|
69
|
+
|
|
70
|
+
## Install
|
|
71
|
+
|
|
72
|
+
To install the extension, execute:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pip install dive_custom_slideshow
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Uninstall
|
|
79
|
+
|
|
80
|
+
To remove the extension, execute:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pip uninstall dive_custom_slideshow
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Usage
|
|
87
|
+
|
|
88
|
+
### Slideshow
|
|
89
|
+
|
|
90
|
+
The slideshow follows the Reveal.js framework. The slide type of a cell can be changed in `COMMON TOOLS > Slide Type`. Available slide types include **Slide**, **Sub-Slide**, **Fragment**, **Skip**.
|
|
91
|
+
|
|
92
|
+

|
|
93
|
+
|
|
94
|
+
The transition type and duration of a cell can be changed in `SLIDESHOW TOOLS`. Available transition types include **Slide**, **Fade**, **Zoom**. The default transition type can be changed in Settings. Transition-out type inherits the transition type by default.
|
|
95
|
+
|
|
96
|
+
For transition type of **Slide**, the slide direction can be either **Horizontal** or **Vertical**. By default, Slides have horizontal transitions, and Sub-Slides have vertical transitions.
|
|
97
|
+
|
|
98
|
+

|
|
99
|
+
|
|
100
|
+
For code cells, the input of the cell can be hidden by checking `Hide Code Cell`, leaving only the output visible.
|
|
101
|
+
|
|
102
|
+

|
|
103
|
+
|
|
104
|
+
To start a slideshow, select `Slideshow` in the main menu and select either `Start from first cell` or `Start from current cell`. `Start from first cell` starts the slideshow from the beginning. `Start from current cell` starts the slideshow at the selected cell.
|
|
105
|
+
|
|
106
|
+
To exit a slideshow, exit fullscreen. The `Exit slideshow` option is an alternative for when exiting fullscreen does not exit the slideshow successfully.
|
|
107
|
+
|
|
108
|
+

|
|
109
|
+
|
|
110
|
+
### SVG Animation
|
|
111
|
+
|
|
112
|
+
The SVG animation feature uses the [Reveal.js Animate and LoadContent plugins by Asvin Goel](https://github.com/rajgoel/reveal.js-plugins). Animations are loaded after starting a slideshow.
|
|
113
|
+
|
|
114
|
+
To add an SVG image for animating, add `%%markdown` at the start of a code cell, and create a `<div>` block with attribute `data-animate`. Either add the SVG data inside the block, or use the [`data-load` attribute from the LoadContent plugin](https://github.com/rajgoel/reveal.js-plugins/blob/master/loadcontent/README.md).
|
|
115
|
+
|
|
116
|
+

|
|
117
|
+
|
|
118
|
+
To animate the SVG image, add a comment block with a JSON string. The `setup` object controls the images after loading. The `animation` object controls the images on each fragment. To successfully set up the animation, the corresponding number of fragments must be added in the cell. More details can be viewed in the [README of the Animate plugin](https://github.com/rajgoel/reveal.js-plugins/blob/master/animate/README.md).
|
|
119
|
+
|
|
120
|
+

|
|
121
|
+
|
|
122
|
+
### MathJax SVG
|
|
123
|
+
|
|
124
|
+
MathJax 4 is installed to convert math expressions into SVG images, which can be used for animations. Components in the SVG image can be selected with selector `g[data-latex='x']`, which is simplified into `mj['x']`.
|
|
125
|
+
|
|
126
|
+

|
|
127
|
+
|
|
128
|
+
## Contributing
|
|
129
|
+
|
|
130
|
+
### Development install
|
|
131
|
+
|
|
132
|
+
Note: You will need NodeJS to build the extension package.
|
|
133
|
+
|
|
134
|
+
The `jlpm` command is JupyterLab's pinned version of
|
|
135
|
+
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
|
|
136
|
+
`yarn` or `npm` in lieu of `jlpm` below.
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# Clone the repo to your local environment
|
|
140
|
+
# Change directory to the dive_custom_slideshow directory
|
|
141
|
+
# Install package in development mode
|
|
142
|
+
pip install -e "."
|
|
143
|
+
# Link your development version of the extension with JupyterLab
|
|
144
|
+
jupyter labextension develop . --overwrite
|
|
145
|
+
# Rebuild extension Typescript source after making changes
|
|
146
|
+
jlpm build
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
# Watch the source directory in one terminal, automatically rebuilding when needed
|
|
153
|
+
jlpm watch
|
|
154
|
+
# Run JupyterLab in another terminal
|
|
155
|
+
jupyter lab
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
|
|
159
|
+
|
|
160
|
+
By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
jupyter lab build --minimize=False
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Development uninstall
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
pip uninstall dive_custom_slideshow
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
|
|
173
|
+
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
|
|
174
|
+
folder is located. Then you can remove the symlink named `custom-slideshow` within that folder.
|
|
175
|
+
|
|
176
|
+
### Testing the extension
|
|
177
|
+
|
|
178
|
+
#### Frontend tests
|
|
179
|
+
|
|
180
|
+
This extension is using [Jest](https://jestjs.io/) for JavaScript code testing.
|
|
181
|
+
|
|
182
|
+
To execute them, execute:
|
|
183
|
+
|
|
184
|
+
```sh
|
|
185
|
+
jlpm
|
|
186
|
+
jlpm test
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
#### Integration tests
|
|
190
|
+
|
|
191
|
+
This extension uses [Playwright](https://playwright.dev/docs/intro) for the integration tests (aka user level tests).
|
|
192
|
+
More precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.
|
|
193
|
+
|
|
194
|
+
More information are provided within the [ui-tests](./ui-tests/README.md) README.
|
|
195
|
+
|
|
196
|
+
### Packaging the extension
|
|
197
|
+
|
|
198
|
+
See [RELEASE](RELEASE.md)
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# dive_custom_slideshow
|
|
2
|
+
|
|
3
|
+
[](https://github.com/ltshum/fyp-custom-slideshow/actions/workflows/build.yml)
|
|
4
|
+
|
|
5
|
+
JupyterLab extension for animated slideshow.
|
|
6
|
+
|
|
7
|
+
Demo: https://ltshum.github.io/jupyterlite/lab/index.html
|
|
8
|
+
<br>(Please run all cells before initializing slideshow to correctly display animations.)
|
|
9
|
+
|
|
10
|
+
## Requirements
|
|
11
|
+
|
|
12
|
+
- JupyterLab >= 4.0.0
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
To install the extension, execute:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install dive_custom_slideshow
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Uninstall
|
|
23
|
+
|
|
24
|
+
To remove the extension, execute:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pip uninstall dive_custom_slideshow
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
### Slideshow
|
|
33
|
+
|
|
34
|
+
The slideshow follows the Reveal.js framework. The slide type of a cell can be changed in `COMMON TOOLS > Slide Type`. Available slide types include **Slide**, **Sub-Slide**, **Fragment**, **Skip**.
|
|
35
|
+
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
The transition type and duration of a cell can be changed in `SLIDESHOW TOOLS`. Available transition types include **Slide**, **Fade**, **Zoom**. The default transition type can be changed in Settings. Transition-out type inherits the transition type by default.
|
|
39
|
+
|
|
40
|
+
For transition type of **Slide**, the slide direction can be either **Horizontal** or **Vertical**. By default, Slides have horizontal transitions, and Sub-Slides have vertical transitions.
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
For code cells, the input of the cell can be hidden by checking `Hide Code Cell`, leaving only the output visible.
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
To start a slideshow, select `Slideshow` in the main menu and select either `Start from first cell` or `Start from current cell`. `Start from first cell` starts the slideshow from the beginning. `Start from current cell` starts the slideshow at the selected cell.
|
|
49
|
+
|
|
50
|
+
To exit a slideshow, exit fullscreen. The `Exit slideshow` option is an alternative for when exiting fullscreen does not exit the slideshow successfully.
|
|
51
|
+
|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
### SVG Animation
|
|
55
|
+
|
|
56
|
+
The SVG animation feature uses the [Reveal.js Animate and LoadContent plugins by Asvin Goel](https://github.com/rajgoel/reveal.js-plugins). Animations are loaded after starting a slideshow.
|
|
57
|
+
|
|
58
|
+
To add an SVG image for animating, add `%%markdown` at the start of a code cell, and create a `<div>` block with attribute `data-animate`. Either add the SVG data inside the block, or use the [`data-load` attribute from the LoadContent plugin](https://github.com/rajgoel/reveal.js-plugins/blob/master/loadcontent/README.md).
|
|
59
|
+
|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
To animate the SVG image, add a comment block with a JSON string. The `setup` object controls the images after loading. The `animation` object controls the images on each fragment. To successfully set up the animation, the corresponding number of fragments must be added in the cell. More details can be viewed in the [README of the Animate plugin](https://github.com/rajgoel/reveal.js-plugins/blob/master/animate/README.md).
|
|
63
|
+
|
|
64
|
+

|
|
65
|
+
|
|
66
|
+
### MathJax SVG
|
|
67
|
+
|
|
68
|
+
MathJax 4 is installed to convert math expressions into SVG images, which can be used for animations. Components in the SVG image can be selected with selector `g[data-latex='x']`, which is simplified into `mj['x']`.
|
|
69
|
+
|
|
70
|
+

|
|
71
|
+
|
|
72
|
+
## Contributing
|
|
73
|
+
|
|
74
|
+
### Development install
|
|
75
|
+
|
|
76
|
+
Note: You will need NodeJS to build the extension package.
|
|
77
|
+
|
|
78
|
+
The `jlpm` command is JupyterLab's pinned version of
|
|
79
|
+
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
|
|
80
|
+
`yarn` or `npm` in lieu of `jlpm` below.
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# Clone the repo to your local environment
|
|
84
|
+
# Change directory to the dive_custom_slideshow directory
|
|
85
|
+
# Install package in development mode
|
|
86
|
+
pip install -e "."
|
|
87
|
+
# Link your development version of the extension with JupyterLab
|
|
88
|
+
jupyter labextension develop . --overwrite
|
|
89
|
+
# Rebuild extension Typescript source after making changes
|
|
90
|
+
jlpm build
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
# Watch the source directory in one terminal, automatically rebuilding when needed
|
|
97
|
+
jlpm watch
|
|
98
|
+
# Run JupyterLab in another terminal
|
|
99
|
+
jupyter lab
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
|
|
103
|
+
|
|
104
|
+
By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
jupyter lab build --minimize=False
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Development uninstall
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
pip uninstall dive_custom_slideshow
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
|
|
117
|
+
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
|
|
118
|
+
folder is located. Then you can remove the symlink named `custom-slideshow` within that folder.
|
|
119
|
+
|
|
120
|
+
### Testing the extension
|
|
121
|
+
|
|
122
|
+
#### Frontend tests
|
|
123
|
+
|
|
124
|
+
This extension is using [Jest](https://jestjs.io/) for JavaScript code testing.
|
|
125
|
+
|
|
126
|
+
To execute them, execute:
|
|
127
|
+
|
|
128
|
+
```sh
|
|
129
|
+
jlpm
|
|
130
|
+
jlpm test
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
#### Integration tests
|
|
134
|
+
|
|
135
|
+
This extension uses [Playwright](https://playwright.dev/docs/intro) for the integration tests (aka user level tests).
|
|
136
|
+
More precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.
|
|
137
|
+
|
|
138
|
+
More information are provided within the [ui-tests](./ui-tests/README.md) README.
|
|
139
|
+
|
|
140
|
+
### Packaging the extension
|
|
141
|
+
|
|
142
|
+
See [RELEASE](RELEASE.md)
|