jupytutor 0.1.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.

Potentially problematic release.


This version of jupytutor might be problematic. Click here for more details.

Files changed (53) hide show
  1. jupytutor-0.1.0/.copier-answers.yml +15 -0
  2. jupytutor-0.1.0/.gitignore +125 -0
  3. jupytutor-0.1.0/.prettierignore +6 -0
  4. jupytutor-0.1.0/.yarnrc.yml +1 -0
  5. jupytutor-0.1.0/CHANGELOG.md +5 -0
  6. jupytutor-0.1.0/LICENSE +29 -0
  7. jupytutor-0.1.0/PKG-INFO +135 -0
  8. jupytutor-0.1.0/README.md +80 -0
  9. jupytutor-0.1.0/RELEASE.md +80 -0
  10. jupytutor-0.1.0/babel.config.js +1 -0
  11. jupytutor-0.1.0/install.json +5 -0
  12. jupytutor-0.1.0/jest.config.js +28 -0
  13. jupytutor-0.1.0/jupytutor/__init__.py +16 -0
  14. jupytutor-0.1.0/jupytutor/_version.py +4 -0
  15. jupytutor-0.1.0/jupytutor/labextension/package.json +213 -0
  16. jupytutor-0.1.0/jupytutor/labextension/static/237.fd7acad62cc218608a2d.js +1 -0
  17. jupytutor-0.1.0/jupytutor/labextension/static/312.773d93d591cc8c4a6cc9.js +1 -0
  18. jupytutor-0.1.0/jupytutor/labextension/static/392.33e1f70cd9533a43c220.js +2 -0
  19. jupytutor-0.1.0/jupytutor/labextension/static/392.33e1f70cd9533a43c220.js.LICENSE.txt +9 -0
  20. jupytutor-0.1.0/jupytutor/labextension/static/772.d11ebfddc127515acc55.js +1 -0
  21. jupytutor-0.1.0/jupytutor/labextension/static/remoteEntry.08121379e19594414d28.js +1 -0
  22. jupytutor-0.1.0/jupytutor/labextension/static/style.js +4 -0
  23. jupytutor-0.1.0/jupytutor/labextension/static/third-party-licenses.json +100 -0
  24. jupytutor-0.1.0/package.json +208 -0
  25. jupytutor-0.1.0/pyproject.toml +77 -0
  26. jupytutor-0.1.0/setup.py +1 -0
  27. jupytutor-0.1.0/src/Jupytutor.tsx +868 -0
  28. jupytutor-0.1.0/src/__tests__/jupytutor.spec.ts +9 -0
  29. jupytutor-0.1.0/src/__tests__/testContextRetriever.js +29 -0
  30. jupytutor-0.1.0/src/config.ts +34 -0
  31. jupytutor-0.1.0/src/helpers/contextRetrieval.ts +554 -0
  32. jupytutor-0.1.0/src/helpers/dev.js +5 -0
  33. jupytutor-0.1.0/src/helpers/getCellType.ts +129 -0
  34. jupytutor-0.1.0/src/helpers/makeAPIRequest.js +207 -0
  35. jupytutor-0.1.0/src/helpers/messageFormatting.tsx +90 -0
  36. jupytutor-0.1.0/src/helpers/parseNB.ts +210 -0
  37. jupytutor-0.1.0/src/helpers/textParsing.tsx +49 -0
  38. jupytutor-0.1.0/src/index.ts +265 -0
  39. jupytutor-0.1.0/style/Jupytutor.css +682 -0
  40. jupytutor-0.1.0/style/base.css +5 -0
  41. jupytutor-0.1.0/style/index.css +2 -0
  42. jupytutor-0.1.0/style/index.js +2 -0
  43. jupytutor-0.1.0/test_extension/__init__.py +16 -0
  44. jupytutor-0.1.0/tsconfig.json +27 -0
  45. jupytutor-0.1.0/tsconfig.test.json +3 -0
  46. jupytutor-0.1.0/ui-tests/README.md +167 -0
  47. jupytutor-0.1.0/ui-tests/jupyter_server_test_config.py +12 -0
  48. jupytutor-0.1.0/ui-tests/package.json +15 -0
  49. jupytutor-0.1.0/ui-tests/playwright.config.js +14 -0
  50. jupytutor-0.1.0/ui-tests/tests/jupytutor.spec.ts +21 -0
  51. jupytutor-0.1.0/ui-tests/yarn.lock +0 -0
  52. jupytutor-0.1.0/webpack.config.js +69 -0
  53. jupytutor-0.1.0/yarn.lock +10290 -0
@@ -0,0 +1,15 @@
1
+ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
+ _commit: v4.3.8
3
+ _src_path: https://github.com/jupyterlab/extension-template
4
+ author_email: kevin.gillespie@berkeley.edu
5
+ author_name: Kevin Gillespie
6
+ has_binder: true
7
+ has_settings: false
8
+ kind: frontend
9
+ labextension_name: jupytutor
10
+ project_short_description: A Jupyter extension for providing students LLM feedback
11
+ based on autograder results and supplied course context.
12
+ python_name: jupytutor
13
+ repository: https://github.com/kevyg03/jupytutor
14
+ test: true
15
+
@@ -0,0 +1,125 @@
1
+ *.bundle.*
2
+ lib/
3
+ node_modules/
4
+ *.log
5
+ .eslintcache
6
+ .stylelintcache
7
+ *.egg-info/
8
+ .ipynb_checkpoints
9
+ *.tsbuildinfo
10
+ jupytutor/labextension
11
+ # Version file is handled by hatchling
12
+ jupytutor/_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/
@@ -0,0 +1,6 @@
1
+ node_modules
2
+ **/node_modules
3
+ **/lib
4
+ **/package.json
5
+ !/package.json
6
+ jupytutor
@@ -0,0 +1 @@
1
+ nodeLinker: node-modules
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ <!-- <START NEW CHANGELOG ENTRY> -->
4
+
5
+ <!-- <END NEW CHANGELOG ENTRY> -->
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2025, Kevin Gillespie
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,135 @@
1
+ Metadata-Version: 2.4
2
+ Name: jupytutor
3
+ Version: 0.1.0
4
+ Summary: A Jupyter extension for providing students LLM feedback based on autograder results and supplied course context.
5
+ Project-URL: Homepage, https://github.com/kevyg03/jupytutor
6
+ Project-URL: Bug Tracker, https://github.com/kevyg03/jupytutor/issues
7
+ Project-URL: Repository, https://github.com/kevyg03/jupytutor.git
8
+ Author-email: Kevin Gillespie <kevin.gillespie@berkeley.edu>
9
+ License: BSD 3-Clause License
10
+
11
+ Copyright (c) 2025, Kevin Gillespie
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
+ Requires-Python: >=3.9
54
+ Description-Content-Type: text/markdown
55
+
56
+ # jupytutor
57
+
58
+ [![Github Actions Status](https://github.com/kevyg03/jupytutor/workflows/Build/badge.svg)](https://github.com/kevyg03/jupytutor/actions/workflows/build.yml)
59
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/kevyg03/jupytutor/main?urlpath=lab)
60
+
61
+ A Jupyter extension for providing students LLM feedback based on autograder results and supplied course context.
62
+
63
+ ## Requirements
64
+
65
+ - JupyterLab >= 4.0.0
66
+
67
+ ## Testing Locally
68
+
69
+ Create a new conda environment and enter it, then run:
70
+
71
+ ```bash
72
+ pip install jupytutor
73
+ ```
74
+
75
+ From another terminal in the same environment, run
76
+
77
+ ```bash
78
+ jupyter lab
79
+ ```
80
+
81
+ Right click and hit "Inspect Element" and navigate to "Console" to confirm everything is activated.
82
+
83
+ src/config.ts currently controls the settings. This may have to chance based on hosting needs.
84
+
85
+ ## Contributing
86
+
87
+ ### Development install
88
+
89
+ Note: You will need NodeJS to build the extension package.
90
+
91
+ The `jlpm` command is JupyterLab's pinned version of
92
+ [yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
93
+ `yarn` or `npm` in lieu of `jlpm` below.
94
+
95
+ ```bash
96
+ # Clone the repo to your local environment
97
+ # Change directory to the jupytutor directory
98
+ # Install package in development mode
99
+ pip install -e "."
100
+ # Link your development version of the extension with JupyterLab
101
+ jupyter labextension develop . --overwrite
102
+ # Rebuild extension Typescript source after making changes
103
+ jlpm build
104
+ ```
105
+
106
+ 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.
107
+
108
+ ```bash
109
+ # Watch the source directory in one terminal, automatically rebuilding when needed
110
+ jlpm watch
111
+ # Run JupyterLab in another terminal
112
+ jupyter lab
113
+ ```
114
+
115
+ 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).
116
+
117
+ 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:
118
+
119
+ ```bash
120
+ jupyter lab build --minimize=False
121
+ ```
122
+
123
+ ### Development uninstall
124
+
125
+ ```bash
126
+ pip uninstall jupytutor
127
+ ```
128
+
129
+ In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
130
+ command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
131
+ folder is located. Then you can remove the symlink named `jupytutor` within that folder.
132
+
133
+ ### Packaging the extension
134
+
135
+ See [RELEASE](RELEASE.md)
@@ -0,0 +1,80 @@
1
+ # jupytutor
2
+
3
+ [![Github Actions Status](https://github.com/kevyg03/jupytutor/workflows/Build/badge.svg)](https://github.com/kevyg03/jupytutor/actions/workflows/build.yml)
4
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/kevyg03/jupytutor/main?urlpath=lab)
5
+
6
+ A Jupyter extension for providing students LLM feedback based on autograder results and supplied course context.
7
+
8
+ ## Requirements
9
+
10
+ - JupyterLab >= 4.0.0
11
+
12
+ ## Testing Locally
13
+
14
+ Create a new conda environment and enter it, then run:
15
+
16
+ ```bash
17
+ pip install jupytutor
18
+ ```
19
+
20
+ From another terminal in the same environment, run
21
+
22
+ ```bash
23
+ jupyter lab
24
+ ```
25
+
26
+ Right click and hit "Inspect Element" and navigate to "Console" to confirm everything is activated.
27
+
28
+ src/config.ts currently controls the settings. This may have to chance based on hosting needs.
29
+
30
+ ## Contributing
31
+
32
+ ### Development install
33
+
34
+ Note: You will need NodeJS to build the extension package.
35
+
36
+ The `jlpm` command is JupyterLab's pinned version of
37
+ [yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
38
+ `yarn` or `npm` in lieu of `jlpm` below.
39
+
40
+ ```bash
41
+ # Clone the repo to your local environment
42
+ # Change directory to the jupytutor directory
43
+ # Install package in development mode
44
+ pip install -e "."
45
+ # Link your development version of the extension with JupyterLab
46
+ jupyter labextension develop . --overwrite
47
+ # Rebuild extension Typescript source after making changes
48
+ jlpm build
49
+ ```
50
+
51
+ 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.
52
+
53
+ ```bash
54
+ # Watch the source directory in one terminal, automatically rebuilding when needed
55
+ jlpm watch
56
+ # Run JupyterLab in another terminal
57
+ jupyter lab
58
+ ```
59
+
60
+ 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).
61
+
62
+ 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:
63
+
64
+ ```bash
65
+ jupyter lab build --minimize=False
66
+ ```
67
+
68
+ ### Development uninstall
69
+
70
+ ```bash
71
+ pip uninstall jupytutor
72
+ ```
73
+
74
+ In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
75
+ command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
76
+ folder is located. Then you can remove the symlink named `jupytutor` within that folder.
77
+
78
+ ### Packaging the extension
79
+
80
+ See [RELEASE](RELEASE.md)
@@ -0,0 +1,80 @@
1
+ # Making a new release of jupytutor
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 @@
1
+ module.exports = require('@jupyterlab/testutils/lib/babel.config');
@@ -0,0 +1,5 @@
1
+ {
2
+ "packageManager": "python",
3
+ "packageName": "jupytutor",
4
+ "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupytutor"
5
+ }
@@ -0,0 +1,28 @@
1
+ const jestJupyterLab = require('@jupyterlab/testutils/lib/jest-config');
2
+
3
+ const esModules = [
4
+ '@codemirror',
5
+ '@jupyter/ydoc',
6
+ '@jupyterlab/',
7
+ 'lib0',
8
+ 'nanoid',
9
+ 'vscode-ws-jsonrpc',
10
+ 'y-protocols',
11
+ 'y-websocket',
12
+ 'yjs'
13
+ ].join('|');
14
+
15
+ const baseConfig = jestJupyterLab(__dirname);
16
+
17
+ module.exports = {
18
+ ...baseConfig,
19
+ automock: false,
20
+ collectCoverageFrom: [
21
+ 'src/**/*.{ts,tsx}',
22
+ '!src/**/*.d.ts',
23
+ '!src/**/.ipynb_checkpoints/*'
24
+ ],
25
+ coverageReporters: ['lcov', 'text'],
26
+ testRegex: 'src/.*/.*.spec.ts[x]?$',
27
+ transformIgnorePatterns: [`/node_modules/(?!${esModules}).+`]
28
+ };
@@ -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 'jupytutor' outside a proper installation.")
9
+ __version__ = "dev"
10
+
11
+
12
+ def _jupyter_labextension_paths():
13
+ return [{
14
+ "src": "labextension",
15
+ "dest": "jupytutor"
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.1.0'