opensciencelab-tours 0.2.0__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.
Files changed (32) hide show
  1. opensciencelab_tours-0.2.0/.copier-answers.yml +15 -0
  2. opensciencelab_tours-0.2.0/.gitignore +124 -0
  3. opensciencelab_tours-0.2.0/.prettierignore +6 -0
  4. opensciencelab_tours-0.2.0/.yarnrc.yml +2 -0
  5. opensciencelab_tours-0.2.0/CHANGELOG.md +9 -0
  6. opensciencelab_tours-0.2.0/LICENSE +29 -0
  7. opensciencelab_tours-0.2.0/PKG-INFO +141 -0
  8. opensciencelab_tours-0.2.0/README.md +85 -0
  9. opensciencelab_tours-0.2.0/RELEASE.md +80 -0
  10. opensciencelab_tours-0.2.0/install.json +5 -0
  11. opensciencelab_tours-0.2.0/opensciencelab_tours/__init__.py +16 -0
  12. opensciencelab_tours-0.2.0/opensciencelab_tours/_version.py +4 -0
  13. opensciencelab_tours-0.2.0/opensciencelab_tours/labextension/package.json +203 -0
  14. opensciencelab_tours-0.2.0/opensciencelab_tours/labextension/static/728.8d6537396f2936663ea8.js +1 -0
  15. opensciencelab_tours-0.2.0/opensciencelab_tours/labextension/static/986.daa5df8c997759f47ec8.js +1 -0
  16. opensciencelab_tours-0.2.0/opensciencelab_tours/labextension/static/remoteEntry.11ca209ab66727102fdc.js +1 -0
  17. opensciencelab_tours-0.2.0/opensciencelab_tours/labextension/static/style.js +4 -0
  18. opensciencelab_tours-0.2.0/opensciencelab_tours/labextension/static/third-party-licenses.json +16 -0
  19. opensciencelab_tours-0.2.0/package.json +198 -0
  20. opensciencelab_tours-0.2.0/pyproject.toml +78 -0
  21. opensciencelab_tours-0.2.0/setup.py +1 -0
  22. opensciencelab_tours-0.2.0/src/icons.ts +9 -0
  23. opensciencelab_tours-0.2.0/src/index.ts +52 -0
  24. opensciencelab_tours-0.2.0/src/osl_logo.svg +62 -0
  25. opensciencelab_tours-0.2.0/src/svg.d.ts +4 -0
  26. opensciencelab_tours-0.2.0/src/tour_helpers.ts +144 -0
  27. opensciencelab_tours-0.2.0/src/tours.tsx +302 -0
  28. opensciencelab_tours-0.2.0/style/base.css +5 -0
  29. opensciencelab_tours-0.2.0/style/index.css +1 -0
  30. opensciencelab_tours-0.2.0/style/index.js +1 -0
  31. opensciencelab_tours-0.2.0/tsconfig.json +25 -0
  32. opensciencelab_tours-0.2.0/yarn.lock +7729 -0
@@ -0,0 +1,15 @@
1
+ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
+ _commit: v4.5.2
3
+ _src_path: https://github.com/jupyterlab/extension-template
4
+ author_email: admin@opensciencelab.asf.alaska.edu
5
+ author_name: OpenScienceLab
6
+ has_ai_rules: false
7
+ has_binder: true
8
+ has_settings: false
9
+ kind: frontend
10
+ labextension_name: opensciencelab-tours
11
+ project_short_description: Tours for OpenScienceLab
12
+ python_name: opensciencelab_tours
13
+ repository: https://github.com/ASFOpenSARlab/opensciencelab-tours
14
+ test: false
15
+
@@ -0,0 +1,124 @@
1
+ *.bundle.*
2
+ lib/
3
+ node_modules/
4
+ *.log
5
+ .eslintcache
6
+ .stylelintcache
7
+ *.egg-info/
8
+ .ipynb_checkpoints
9
+ *.tsbuildinfo
10
+ opensciencelab_tours/labextension
11
+ # Version file is handled by hatchling
12
+ opensciencelab_tours/_version.py
13
+
14
+ # Created by https://www.gitignore.io/api/python
15
+ # Edit at https://www.gitignore.io/?templates=python
16
+
17
+ ### Python ###
18
+ # Virtual environments
19
+ .venv
20
+
21
+ # Byte-compiled / optimized / DLL files
22
+ __pycache__/
23
+ *.py[cod]
24
+ *$py.class
25
+
26
+ # C extensions
27
+ *.so
28
+
29
+ # Distribution / packaging
30
+ .Python
31
+ build/
32
+ develop-eggs/
33
+ dist/
34
+ downloads/
35
+ eggs/
36
+ .eggs/
37
+ lib/
38
+ lib64/
39
+ parts/
40
+ sdist/
41
+ var/
42
+ wheels/
43
+ pip-wheel-metadata/
44
+ share/python-wheels/
45
+ .installed.cfg
46
+ *.egg
47
+ MANIFEST
48
+
49
+ # PyInstaller
50
+ # Usually these files are written by a python script from a template
51
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
52
+ *.manifest
53
+ *.spec
54
+
55
+ # Installer logs
56
+ pip-log.txt
57
+ pip-delete-this-directory.txt
58
+
59
+ # Unit test / coverage reports
60
+ htmlcov/
61
+ .tox/
62
+ .nox/
63
+ .coverage
64
+ .coverage.*
65
+ .cache
66
+ nosetests.xml
67
+ coverage/
68
+ coverage.xml
69
+ *.cover
70
+ .hypothesis/
71
+ .pytest_cache/
72
+
73
+ # Translations
74
+ *.mo
75
+ *.pot
76
+
77
+ # Scrapy stuff:
78
+ .scrapy
79
+
80
+ # Sphinx documentation
81
+ docs/_build/
82
+
83
+ # PyBuilder
84
+ target/
85
+
86
+ # pyenv
87
+ .python-version
88
+
89
+ # celery beat schedule file
90
+ celerybeat-schedule
91
+
92
+ # SageMath parsed files
93
+ *.sage.py
94
+
95
+ # Spyder project settings
96
+ .spyderproject
97
+ .spyproject
98
+
99
+ # Rope project settings
100
+ .ropeproject
101
+
102
+ # Mr Developer
103
+ .mr.developer.cfg
104
+ .project
105
+ .pydevproject
106
+
107
+ # mkdocs documentation
108
+ /site
109
+
110
+ # mypy
111
+ .mypy_cache/
112
+ .dmypy.json
113
+ dmypy.json
114
+
115
+ # Pyre type checker
116
+ .pyre/
117
+
118
+ # End of https://www.gitignore.io/api/python
119
+
120
+ # OSX files
121
+ .DS_Store
122
+
123
+ # Yarn cache
124
+ .yarn/
@@ -0,0 +1,6 @@
1
+ node_modules
2
+ **/node_modules
3
+ **/lib
4
+ **/package.json
5
+ !/package.json
6
+ opensciencelab_tours
@@ -0,0 +1,2 @@
1
+ nodeLinker: node-modules
2
+ enableScripts: false
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ <!-- <START NEW CHANGELOG ENTRY> -->
4
+
5
+ ## 0.2.0
6
+
7
+ No merged PRs
8
+
9
+ <!-- <END NEW CHANGELOG ENTRY> -->
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, OpenScienceLab
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,141 @@
1
+ Metadata-Version: 2.4
2
+ Name: opensciencelab_tours
3
+ Version: 0.2.0
4
+ Summary: Tours for OpenScienceLab
5
+ Project-URL: Homepage, https://github.com/ASFOpenSARlab/opensciencelab-tours
6
+ Project-URL: Bug Tracker, https://github.com/ASFOpenSARlab/opensciencelab-tours/issues
7
+ Project-URL: Repository, https://github.com/ASFOpenSARlab/opensciencelab-tours.git
8
+ Author-email: OpenScienceLab <admin@opensciencelab.asf.alaska.edu>
9
+ License: BSD 3-Clause License
10
+
11
+ Copyright (c) 2026, OpenScienceLab
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.10
49
+ Classifier: Programming Language :: Python :: 3.11
50
+ Classifier: Programming Language :: Python :: 3.12
51
+ Classifier: Programming Language :: Python :: 3.13
52
+ Classifier: Programming Language :: Python :: 3.14
53
+ Requires-Python: >=3.10
54
+ Requires-Dist: jupyterlab-tour>=4.0.1
55
+ Description-Content-Type: text/markdown
56
+
57
+ # opensciencelab_tours
58
+
59
+ [![Github Actions Status](https://github.com/ASFOpenSARlab/opensciencelab-tours/workflows/Build/badge.svg)](https://github.com/ASFOpenSARlab/opensciencelab-tours/actions/workflows/build.yml)
60
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ASFOpenSARlab/opensciencelab-tours/main?urlpath=lab)
61
+
62
+ Tours for OpenScienceLab
63
+
64
+ ## Requirements
65
+
66
+ - JupyterLab >= 4.0.0
67
+
68
+ ## Install
69
+
70
+ To install the extension, execute:
71
+
72
+ ```bash
73
+ pip install opensciencelab_tours
74
+ ```
75
+
76
+ ## Uninstall
77
+
78
+ To remove the extension, execute:
79
+
80
+ ```bash
81
+ pip uninstall opensciencelab_tours
82
+ ```
83
+
84
+ ## Contributing
85
+
86
+ ### Development install
87
+
88
+ Note: You will need NodeJS to build the extension package.
89
+
90
+ The `jlpm` command is JupyterLab's pinned version of
91
+ [yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
92
+ `yarn` or `npm` in lieu of `jlpm` below.
93
+
94
+ ```bash
95
+ # Clone the repo to your local environment
96
+ # Change directory to the opensciencelab_tours directory
97
+
98
+ # Set up a virtual environment and install package in development mode
99
+ python -m venv .venv
100
+ source .venv/bin/activate
101
+ pip install --editable "."
102
+
103
+ # Link your development version of the extension with JupyterLab
104
+ jupyter labextension develop . --overwrite
105
+
106
+ # Rebuild extension Typescript source after making changes
107
+ # IMPORTANT: Unlike the steps above which are performed only once, do this step
108
+ # every time you make a change.
109
+ jlpm build
110
+ ```
111
+
112
+ 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.
113
+
114
+ ```bash
115
+ # Watch the source directory in one terminal, automatically rebuilding when needed
116
+ jlpm watch
117
+ # Run JupyterLab in another terminal
118
+ jupyter lab
119
+ ```
120
+
121
+ 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).
122
+
123
+ 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:
124
+
125
+ ```bash
126
+ jupyter lab build --minimize=False
127
+ ```
128
+
129
+ ### Development uninstall
130
+
131
+ ```bash
132
+ pip uninstall opensciencelab_tours
133
+ ```
134
+
135
+ In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
136
+ command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
137
+ folder is located. Then you can remove the symlink named `opensciencelab-tours` within that folder.
138
+
139
+ ### Packaging the extension
140
+
141
+ See [RELEASE](RELEASE.md)
@@ -0,0 +1,85 @@
1
+ # opensciencelab_tours
2
+
3
+ [![Github Actions Status](https://github.com/ASFOpenSARlab/opensciencelab-tours/workflows/Build/badge.svg)](https://github.com/ASFOpenSARlab/opensciencelab-tours/actions/workflows/build.yml)
4
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ASFOpenSARlab/opensciencelab-tours/main?urlpath=lab)
5
+
6
+ Tours for OpenScienceLab
7
+
8
+ ## Requirements
9
+
10
+ - JupyterLab >= 4.0.0
11
+
12
+ ## Install
13
+
14
+ To install the extension, execute:
15
+
16
+ ```bash
17
+ pip install opensciencelab_tours
18
+ ```
19
+
20
+ ## Uninstall
21
+
22
+ To remove the extension, execute:
23
+
24
+ ```bash
25
+ pip uninstall opensciencelab_tours
26
+ ```
27
+
28
+ ## Contributing
29
+
30
+ ### Development install
31
+
32
+ Note: You will need NodeJS to build the extension package.
33
+
34
+ The `jlpm` command is JupyterLab's pinned version of
35
+ [yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
36
+ `yarn` or `npm` in lieu of `jlpm` below.
37
+
38
+ ```bash
39
+ # Clone the repo to your local environment
40
+ # Change directory to the opensciencelab_tours directory
41
+
42
+ # Set up a virtual environment and install package in development mode
43
+ python -m venv .venv
44
+ source .venv/bin/activate
45
+ pip install --editable "."
46
+
47
+ # Link your development version of the extension with JupyterLab
48
+ jupyter labextension develop . --overwrite
49
+
50
+ # Rebuild extension Typescript source after making changes
51
+ # IMPORTANT: Unlike the steps above which are performed only once, do this step
52
+ # every time you make a change.
53
+ jlpm build
54
+ ```
55
+
56
+ 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.
57
+
58
+ ```bash
59
+ # Watch the source directory in one terminal, automatically rebuilding when needed
60
+ jlpm watch
61
+ # Run JupyterLab in another terminal
62
+ jupyter lab
63
+ ```
64
+
65
+ 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).
66
+
67
+ 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:
68
+
69
+ ```bash
70
+ jupyter lab build --minimize=False
71
+ ```
72
+
73
+ ### Development uninstall
74
+
75
+ ```bash
76
+ pip uninstall opensciencelab_tours
77
+ ```
78
+
79
+ In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
80
+ command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
81
+ folder is located. Then you can remove the symlink named `opensciencelab-tours` within that folder.
82
+
83
+ ### Packaging the extension
84
+
85
+ See [RELEASE](RELEASE.md)
@@ -0,0 +1,80 @@
1
+ # Making a new release of opensciencelab_tours
2
+
3
+ The extension can be published to `PyPI` and `npm` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).
4
+
5
+ ## Manual release
6
+
7
+ ### Python package
8
+
9
+ This extension can be distributed as Python packages. All of the Python
10
+ packaging instructions are in the `pyproject.toml` file to wrap your extension in a
11
+ Python package. Before generating a package, you first need to install some tools:
12
+
13
+ ```bash
14
+ pip install build twine hatch
15
+ ```
16
+
17
+ Bump the version using `hatch`. By default this will create a tag.
18
+ See the docs on [hatch-nodejs-version](https://github.com/agoose77/hatch-nodejs-version#semver) for details.
19
+
20
+ ```bash
21
+ hatch version <new-version>
22
+ ```
23
+
24
+ Make sure to clean up all the development files before building the package:
25
+
26
+ ```bash
27
+ jlpm clean:all
28
+ ```
29
+
30
+ You could also clean up the local git repository:
31
+
32
+ ```bash
33
+ git clean -dfX
34
+ ```
35
+
36
+ To create a Python source package (`.tar.gz`) and the binary package (`.whl`) in the `dist/` directory, do:
37
+
38
+ ```bash
39
+ python -m build
40
+ ```
41
+
42
+ > `python setup.py sdist bdist_wheel` is deprecated and will not work for this package.
43
+
44
+ Then to upload the package to PyPI, do:
45
+
46
+ ```bash
47
+ twine upload dist/*
48
+ ```
49
+
50
+ ### NPM package
51
+
52
+ To publish the frontend part of the extension as a NPM package, do:
53
+
54
+ ```bash
55
+ npm login
56
+ npm publish --access public
57
+ ```
58
+
59
+ ## Automated releases with the Jupyter Releaser
60
+
61
+ The extension repository should already be compatible with the Jupyter Releaser. But
62
+ the GitHub repository and the package managers need to be properly set up. Please
63
+ follow the instructions of the Jupyter Releaser [checklist](https://jupyter-releaser.readthedocs.io/en/latest/how_to_guides/convert_repo_from_repo.html).
64
+
65
+ Here is a summary of the steps to cut a new release:
66
+
67
+ - Go to the Actions panel
68
+ - Run the "Step 1: Prep Release" workflow
69
+ - Check the draft changelog
70
+ - Run the "Step 2: Publish Release" workflow
71
+
72
+ > [!NOTE]
73
+ > Check out the [workflow documentation](https://jupyter-releaser.readthedocs.io/en/latest/get_started/making_release_from_repo.html)
74
+ > for more information.
75
+
76
+ ## Publishing to `conda-forge`
77
+
78
+ If the package is not on conda forge yet, check the documentation to learn how to add it: https://conda-forge.org/docs/maintainer/adding_pkgs.html
79
+
80
+ Otherwise a bot should pick up the new version publish to PyPI, and open a new PR on the feedstock repository automatically.
@@ -0,0 +1,5 @@
1
+ {
2
+ "packageManager": "python",
3
+ "packageName": "opensciencelab_tours",
4
+ "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package opensciencelab_tours"
5
+ }
@@ -0,0 +1,16 @@
1
+ try:
2
+ from ._version import __version__
3
+ except ImportError:
4
+ # Fallback when using the package in dev mode without installing
5
+ # in editable mode with pip. It is highly recommended to install
6
+ # the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
7
+ import warnings
8
+ warnings.warn("Importing 'opensciencelab_tours' outside a proper installation.")
9
+ __version__ = "dev"
10
+
11
+
12
+ def _jupyter_labextension_paths():
13
+ return [{
14
+ "src": "labextension",
15
+ "dest": "opensciencelab-tours"
16
+ }]
@@ -0,0 +1,4 @@
1
+ # This file is auto-generated by Hatchling. As such, do not:
2
+ # - modify
3
+ # - track in version control e.g. be sure to add to .gitignore
4
+ __version__ = VERSION = '0.2.0'