jupytutor 0.1.4__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.
- jupytutor/__init__.py +38 -0
- jupytutor/_version.py +4 -0
- jupytutor/handlers.py +63 -0
- jupytutor/labextension/package.json +213 -0
- jupytutor/labextension/static/237.fd7acad62cc218608a2d.js +1 -0
- jupytutor/labextension/static/312.773d93d591cc8c4a6cc9.js +1 -0
- jupytutor/labextension/static/392.9bf7a51bbc79ca050285.js +2 -0
- jupytutor/labextension/static/392.9bf7a51bbc79ca050285.js.LICENSE.txt +9 -0
- jupytutor/labextension/static/772.d11ebfddc127515acc55.js +1 -0
- jupytutor/labextension/static/remoteEntry.c49f478ff52de713fe95.js +1 -0
- jupytutor/labextension/static/style.js +4 -0
- jupytutor/labextension/static/third-party-licenses.json +100 -0
- jupytutor-0.1.4.data/data/etc/jupyter/jupyter_server_config.d/jupytutor.json +7 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/install.json +5 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/package.json +213 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/237.fd7acad62cc218608a2d.js +1 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/312.773d93d591cc8c4a6cc9.js +1 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/392.9bf7a51bbc79ca050285.js +2 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/392.9bf7a51bbc79ca050285.js.LICENSE.txt +9 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/772.d11ebfddc127515acc55.js +1 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/remoteEntry.c49f478ff52de713fe95.js +1 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/style.js +4 -0
- jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/third-party-licenses.json +100 -0
- jupytutor-0.1.4.dist-info/METADATA +165 -0
- jupytutor-0.1.4.dist-info/RECORD +27 -0
- jupytutor-0.1.4.dist-info/WHEEL +4 -0
- jupytutor-0.1.4.dist-info/licenses/LICENSE +29 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: jupytutor
|
|
3
|
+
Version: 0.1.4
|
|
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
|
+
Requires-Dist: jupyter-server<3,>=2.0.0
|
|
55
|
+
Description-Content-Type: text/markdown
|
|
56
|
+
|
|
57
|
+
# jupytutor
|
|
58
|
+
|
|
59
|
+
[](https://github.com/kevyg03/jupytutor/actions/workflows/build.yml)
|
|
60
|
+
[](https://mybinder.org/v2/gh/kevyg03/jupytutor/main?urlpath=lab)
|
|
61
|
+
|
|
62
|
+
A Jupyter extension for providing students LLM feedback based on autograder results and supplied course context.
|
|
63
|
+
|
|
64
|
+
## Requirements
|
|
65
|
+
|
|
66
|
+
- JupyterLab >= 4.0.0
|
|
67
|
+
- Python >= 3.9
|
|
68
|
+
|
|
69
|
+
## Installation
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
pip install jupytutor
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Configuration
|
|
76
|
+
|
|
77
|
+
jupytutor supports custom configuration through a JSON file in your home directory.
|
|
78
|
+
|
|
79
|
+
### Quick Setup
|
|
80
|
+
|
|
81
|
+
1. Create the config directory:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
mkdir -p ~/.config/jupytutor
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
2. Create the config file at
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
~/.config/jupytutor/config.json
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
3. Edit the config file with your settings (reference the jupytutor repository (https://github.com/kevyg03/jupytutor), src/config.ts)
|
|
94
|
+
|
|
95
|
+
4. Restart JupyterLab
|
|
96
|
+
|
|
97
|
+
The config.json can only contain keys that exist in src/config.ts. Keys that aren't provided will default to the values set by config.ts.
|
|
98
|
+
|
|
99
|
+
## Testing Locally
|
|
100
|
+
|
|
101
|
+
Create a new conda environment (conda create -n <env_name>) and enter it, then run:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
pip install jupytutor
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
From another terminal in the same environment, run
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
jupyter lab
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Right click and hit "Inspect Element" and navigate to "Console" to confirm everything is activated.
|
|
114
|
+
|
|
115
|
+
## Contributing
|
|
116
|
+
|
|
117
|
+
### Development install
|
|
118
|
+
|
|
119
|
+
Note: You will need NodeJS to build the extension package.
|
|
120
|
+
|
|
121
|
+
The `jlpm` command is JupyterLab's pinned version of
|
|
122
|
+
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
|
|
123
|
+
`yarn` or `npm` in lieu of `jlpm` below.
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Clone the repo to your local environment
|
|
127
|
+
# Change directory to the jupytutor directory
|
|
128
|
+
# Install package in development mode
|
|
129
|
+
pip install -e "."
|
|
130
|
+
# Link your development version of the extension with JupyterLab
|
|
131
|
+
jupyter labextension develop . --overwrite
|
|
132
|
+
# Rebuild extension Typescript source after making changes
|
|
133
|
+
jlpm build
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
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.
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# Watch the source directory in one terminal, automatically rebuilding when needed
|
|
140
|
+
jlpm watch
|
|
141
|
+
# Run JupyterLab in another terminal
|
|
142
|
+
jupyter lab
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
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).
|
|
146
|
+
|
|
147
|
+
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:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
jupyter lab build --minimize=False
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Development uninstall
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
pip uninstall jupytutor
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
|
|
160
|
+
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
|
|
161
|
+
folder is located. Then you can remove the symlink named `jupytutor` within that folder.
|
|
162
|
+
|
|
163
|
+
### Packaging the extension
|
|
164
|
+
|
|
165
|
+
See [RELEASE](RELEASE.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
jupytutor/__init__.py,sha256=yfvBP1C7F9YQo_ZSapgDIZsLDTxUDtyjiLZ_lvZ7qDA,1063
|
|
2
|
+
jupytutor/_version.py,sha256=TyDhuvLM0fvlaQq5gFaiWMS7gpmLoH9d2SFoCP1rd3Q,171
|
|
3
|
+
jupytutor/handlers.py,sha256=ZzQUB6Jn7WbRc4KP6uoZw1bk8t55E8MW78K_AabhzcU,2056
|
|
4
|
+
jupytutor/labextension/package.json,sha256=QzhEJjADpQyDV5AbekIdGZi7SoB_Cy8zRZEVkoMKEzQ,6221
|
|
5
|
+
jupytutor/labextension/static/237.fd7acad62cc218608a2d.js,sha256=_XrK1izCGGCKLbt2KDeTrZTLm6Vud18EAlcBIaf8atg,17901
|
|
6
|
+
jupytutor/labextension/static/312.773d93d591cc8c4a6cc9.js,sha256=dz2T1ZHMjEpsyZUSMbz_oRnZOY7VxyecvNCmHZvBtus,551
|
|
7
|
+
jupytutor/labextension/static/392.9bf7a51bbc79ca050285.js,sha256=uOtd44KXNh-fFS9r7NHtEzxmErJwwCa28t-uI4bWsZg,27783
|
|
8
|
+
jupytutor/labextension/static/392.9bf7a51bbc79ca050285.js.LICENSE.txt,sha256=eNJ8gc9n9IF8nW1d9sI9niuHstYzjNz5vqXx9UgWSPc,249
|
|
9
|
+
jupytutor/labextension/static/772.d11ebfddc127515acc55.js,sha256=0R6_3cEnUVrMVUK5Vm5_GuA30PSutaQ__9VO8w4rp1A,130313
|
|
10
|
+
jupytutor/labextension/static/remoteEntry.c49f478ff52de713fe95.js,sha256=xJ9Hj_Ut5xP-lRS6Z3Qj6FGnzEQMXEhh9HznjLrbHEw,7601
|
|
11
|
+
jupytutor/labextension/static/style.js,sha256=xsBa7SD45FxHR9Klaumc_Pj0O3uiVjI4Xir8BHRl7XE,152
|
|
12
|
+
jupytutor/labextension/static/third-party-licenses.json,sha256=Ho1rEPfNb5HxzpgkhkmyBfIHh331pZnESTwHrCzRvUI,20563
|
|
13
|
+
jupytutor-0.1.4.data/data/etc/jupyter/jupyter_server_config.d/jupytutor.json,sha256=IfICb-alaxebeQQLGRSTJM8PkaIxmawDWSJxM38-XH4,84
|
|
14
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/package.json,sha256=QzhEJjADpQyDV5AbekIdGZi7SoB_Cy8zRZEVkoMKEzQ,6221
|
|
15
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/237.fd7acad62cc218608a2d.js,sha256=_XrK1izCGGCKLbt2KDeTrZTLm6Vud18EAlcBIaf8atg,17901
|
|
16
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/312.773d93d591cc8c4a6cc9.js,sha256=dz2T1ZHMjEpsyZUSMbz_oRnZOY7VxyecvNCmHZvBtus,551
|
|
17
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/392.9bf7a51bbc79ca050285.js,sha256=uOtd44KXNh-fFS9r7NHtEzxmErJwwCa28t-uI4bWsZg,27783
|
|
18
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/392.9bf7a51bbc79ca050285.js.LICENSE.txt,sha256=eNJ8gc9n9IF8nW1d9sI9niuHstYzjNz5vqXx9UgWSPc,249
|
|
19
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/772.d11ebfddc127515acc55.js,sha256=0R6_3cEnUVrMVUK5Vm5_GuA30PSutaQ__9VO8w4rp1A,130313
|
|
20
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/remoteEntry.c49f478ff52de713fe95.js,sha256=xJ9Hj_Ut5xP-lRS6Z3Qj6FGnzEQMXEhh9HznjLrbHEw,7601
|
|
21
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/style.js,sha256=xsBa7SD45FxHR9Klaumc_Pj0O3uiVjI4Xir8BHRl7XE,152
|
|
22
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/static/third-party-licenses.json,sha256=Ho1rEPfNb5HxzpgkhkmyBfIHh331pZnESTwHrCzRvUI,20563
|
|
23
|
+
jupytutor-0.1.4.data/data/share/jupyter/labextensions/jupytutor/install.json,sha256=5sCSi6Dbbz7r6g-oAaLi85RMOwdBAV45z4d96J8sTkE,179
|
|
24
|
+
jupytutor-0.1.4.dist-info/METADATA,sha256=rx0CjOBgs1x38eeZkkVOMoIEoD-EyKCFToMIlsurJtA,6344
|
|
25
|
+
jupytutor-0.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
26
|
+
jupytutor-0.1.4.dist-info/licenses/LICENSE,sha256=7qm1oVKOP9HWHYGz7DcN6l7JxgxcwOGh9XIwy5xap98,1523
|
|
27
|
+
jupytutor-0.1.4.dist-info/RECORD,,
|
|
@@ -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.
|