jupyterlab-advanced-code-viewer-extension 0.1.2__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.
Files changed (27) hide show
  1. jupyterlab_advanced_code_viewer_extension/__init__.py +36 -0
  2. jupyterlab_advanced_code_viewer_extension/_version.py +4 -0
  3. jupyterlab_advanced_code_viewer_extension/labextension/package.json +158 -0
  4. jupyterlab_advanced_code_viewer_extension/labextension/schemas/@stellarshenson/jupyterlab-advanced-code-viewer-extension/package.json.orig +153 -0
  5. jupyterlab_advanced_code_viewer_extension/labextension/schemas/@stellarshenson/jupyterlab-advanced-code-viewer-extension/plugin.json +8 -0
  6. jupyterlab_advanced_code_viewer_extension/labextension/static/232.ba615dd6803b2beb.js +6 -0
  7. jupyterlab_advanced_code_viewer_extension/labextension/static/571.ea54f6c6bb484b45.js +2 -0
  8. jupyterlab_advanced_code_viewer_extension/labextension/static/remoteEntry.430b6c2ebff20df0.js +1 -0
  9. jupyterlab_advanced_code_viewer_extension/labextension/static/style.js +4 -0
  10. jupyterlab_advanced_code_viewer_extension/labextension/static/third-party-licenses.json +16 -0
  11. jupyterlab_advanced_code_viewer_extension/routes.py +29 -0
  12. jupyterlab_advanced_code_viewer_extension/tests/__init__.py +1 -0
  13. jupyterlab_advanced_code_viewer_extension/tests/test_routes.py +30 -0
  14. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/etc/jupyter/jupyter_server_config.d/jupyterlab_advanced_code_viewer_extension.json +7 -0
  15. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/install.json +5 -0
  16. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/package.json +158 -0
  17. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/schemas/@stellarshenson/jupyterlab-advanced-code-viewer-extension/package.json.orig +153 -0
  18. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/schemas/@stellarshenson/jupyterlab-advanced-code-viewer-extension/plugin.json +8 -0
  19. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/232.ba615dd6803b2beb.js +6 -0
  20. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/571.ea54f6c6bb484b45.js +2 -0
  21. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/remoteEntry.430b6c2ebff20df0.js +1 -0
  22. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/style.js +4 -0
  23. jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/third-party-licenses.json +16 -0
  24. jupyterlab_advanced_code_viewer_extension-0.1.2.dist-info/METADATA +122 -0
  25. jupyterlab_advanced_code_viewer_extension-0.1.2.dist-info/RECORD +27 -0
  26. jupyterlab_advanced_code_viewer_extension-0.1.2.dist-info/WHEEL +4 -0
  27. jupyterlab_advanced_code_viewer_extension-0.1.2.dist-info/licenses/LICENSE +29 -0
@@ -0,0 +1,36 @@
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 'jupyterlab_advanced_code_viewer_extension' outside a proper installation.")
9
+ __version__ = "dev"
10
+ from .routes import setup_route_handlers
11
+
12
+
13
+ def _jupyter_labextension_paths():
14
+ return [{
15
+ "src": "labextension",
16
+ "dest": "@stellarshenson/jupyterlab-advanced-code-viewer-extension"
17
+ }]
18
+
19
+
20
+ def _jupyter_server_extension_points():
21
+ return [{
22
+ "module": "jupyterlab_advanced_code_viewer_extension"
23
+ }]
24
+
25
+
26
+ def _load_jupyter_server_extension(server_app):
27
+ """Registers the API handler to receive HTTP requests from the frontend extension.
28
+
29
+ Parameters
30
+ ----------
31
+ server_app: jupyterlab.labapp.LabApp
32
+ JupyterLab application instance
33
+ """
34
+ setup_route_handlers(server_app.web_app)
35
+ name = "jupyterlab_advanced_code_viewer_extension"
36
+ server_app.log.info(f"Registered {name} server extension")
@@ -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.2'
@@ -0,0 +1,158 @@
1
+ {
2
+ "name": "@stellarshenson/jupyterlab-advanced-code-viewer-extension",
3
+ "version": "0.1.2",
4
+ "description": "Follow a notebook or a source file while an AI agent writes it, see each change in the editor as you work, and mark and comment on code with notes stored in the file",
5
+ "keywords": [
6
+ "jupyter",
7
+ "jupyterlab",
8
+ "jupyterlab-extension"
9
+ ],
10
+ "homepage": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension",
11
+ "bugs": {
12
+ "url": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension/issues"
13
+ },
14
+ "license": "BSD-3-Clause",
15
+ "author": {
16
+ "name": "Stellars Henson",
17
+ "email": "konrad.jelen@gmail.com"
18
+ },
19
+ "files": [
20
+ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21
+ "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
22
+ "src/**/*.{ts,tsx}",
23
+ "schema/*.json"
24
+ ],
25
+ "main": "lib/index.js",
26
+ "types": "lib/index.d.ts",
27
+ "style": "style/index.css",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension.git"
31
+ },
32
+ "scripts": {
33
+ "build": "jlpm build:lib && jlpm build:labextension:dev",
34
+ "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
35
+ "build:labextension": "jupyter-builder build .",
36
+ "build:labextension:dev": "jupyter-builder build --development True .",
37
+ "build:lib": "tsc --sourceMap",
38
+ "build:lib:prod": "tsc",
39
+ "clean": "jlpm clean:lib",
40
+ "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
41
+ "clean:lintcache": "rimraf .eslintcache .stylelintcache",
42
+ "clean:labextension": "rimraf jupyterlab_advanced_code_viewer_extension/labextension jupyterlab_advanced_code_viewer_extension/_version.py",
43
+ "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
44
+ "eslint": "jlpm eslint:check --fix",
45
+ "eslint:check": "eslint . --cache",
46
+ "install:extension": "jlpm build",
47
+ "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
48
+ "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
49
+ "prettier": "jlpm prettier:base --write --list-different",
50
+ "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
51
+ "prettier:check": "jlpm prettier:base --check",
52
+ "stylelint": "jlpm stylelint:check --fix",
53
+ "stylelint:check": "stylelint --cache \"style/**/*.css\"",
54
+ "test": "jest --coverage",
55
+ "watch": "run-p watch:src watch:labextension",
56
+ "watch:src": "tsc -w --sourceMap",
57
+ "watch:labextension": "jupyter-builder watch ."
58
+ },
59
+ "dependencies": {
60
+ "@jupyterlab/application": "^4.6.0",
61
+ "@jupyterlab/coreutils": "^6.6.0",
62
+ "@jupyterlab/services": "^7.6.0",
63
+ "@jupyterlab/settingregistry": "^4.6.0"
64
+ },
65
+ "devDependencies": {
66
+ "@eslint/js": "^9.39.0",
67
+ "@jupyter/builder": "^1.2.0",
68
+ "@jupyter/eslint-plugin": "^1.4.0",
69
+ "@jupyterlab/testutils": "^4.6.0",
70
+ "@types/jest": "^29.5.0",
71
+ "@types/json-schema": "^7.0.0",
72
+ "@types/react": "^18.3.0",
73
+ "@types/react-addons-linked-state-mixin": "^0.14.0",
74
+ "eslint": "^9.39.0",
75
+ "eslint-config-prettier": "^9.1.0",
76
+ "eslint-plugin-prettier": "^5.5.0",
77
+ "globals": "^15.15.0",
78
+ "jest": "^29.7.0",
79
+ "mkdirp": "^1.0.0",
80
+ "npm-run-all2": "^7.0.0",
81
+ "prettier": "^3.9.0",
82
+ "rimraf": "^5.0.0",
83
+ "stylelint": "^15.11.0",
84
+ "stylelint-config-recommended": "^13.0.0",
85
+ "stylelint-config-standard": "^34.0.0",
86
+ "stylelint-csstree-validator": "^3.1.0",
87
+ "stylelint-prettier": "^4.1.0",
88
+ "typescript": "~5.8.0",
89
+ "typescript-eslint": "^8.72.0",
90
+ "yjs": "^13.6.0"
91
+ },
92
+ "resolutions": {
93
+ "lib0": "0.2.111",
94
+ "webpack": "5.106.0"
95
+ },
96
+ "sideEffects": [
97
+ "style/*.css",
98
+ "style/index.js"
99
+ ],
100
+ "styleModule": "style/index.js",
101
+ "publishConfig": {
102
+ "access": "public"
103
+ },
104
+ "jupyterlab": {
105
+ "discovery": {
106
+ "server": {
107
+ "managers": [
108
+ "pip"
109
+ ],
110
+ "base": {
111
+ "name": "jupyterlab_advanced_code_viewer_extension"
112
+ }
113
+ }
114
+ },
115
+ "extension": true,
116
+ "outputDir": "jupyterlab_advanced_code_viewer_extension/labextension",
117
+ "schemaDir": "schema",
118
+ "_build": {
119
+ "load": "static/remoteEntry.430b6c2ebff20df0.js",
120
+ "extension": "./extension",
121
+ "style": "./style"
122
+ }
123
+ },
124
+ "prettier": {
125
+ "singleQuote": true,
126
+ "trailingComma": "none",
127
+ "arrowParens": "avoid",
128
+ "endOfLine": "auto",
129
+ "overrides": [
130
+ {
131
+ "files": "package.json",
132
+ "options": {
133
+ "tabWidth": 4
134
+ }
135
+ }
136
+ ]
137
+ },
138
+ "stylelint": {
139
+ "extends": [
140
+ "stylelint-config-recommended",
141
+ "stylelint-config-standard",
142
+ "stylelint-prettier/recommended"
143
+ ],
144
+ "plugins": [
145
+ "stylelint-csstree-validator"
146
+ ],
147
+ "rules": {
148
+ "csstree/validator": true,
149
+ "property-no-vendor-prefix": null,
150
+ "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
151
+ "selector-no-vendor-prefix": null,
152
+ "value-no-vendor-prefix": null
153
+ }
154
+ },
155
+ "allowScripts": {
156
+ "@fortawesome/fontawesome-free": true
157
+ }
158
+ }
@@ -0,0 +1,153 @@
1
+ {
2
+ "name": "@stellarshenson/jupyterlab-advanced-code-viewer-extension",
3
+ "version": "0.1.2",
4
+ "description": "Follow a notebook or a source file while an AI agent writes it, see each change in the editor as you work, and mark and comment on code with notes stored in the file",
5
+ "keywords": [
6
+ "jupyter",
7
+ "jupyterlab",
8
+ "jupyterlab-extension"
9
+ ],
10
+ "homepage": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension",
11
+ "bugs": {
12
+ "url": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension/issues"
13
+ },
14
+ "license": "BSD-3-Clause",
15
+ "author": {
16
+ "name": "Stellars Henson",
17
+ "email": "konrad.jelen@gmail.com"
18
+ },
19
+ "files": [
20
+ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21
+ "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
22
+ "src/**/*.{ts,tsx}",
23
+ "schema/*.json"
24
+ ],
25
+ "main": "lib/index.js",
26
+ "types": "lib/index.d.ts",
27
+ "style": "style/index.css",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension.git"
31
+ },
32
+ "scripts": {
33
+ "build": "jlpm build:lib && jlpm build:labextension:dev",
34
+ "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
35
+ "build:labextension": "jupyter-builder build .",
36
+ "build:labextension:dev": "jupyter-builder build --development True .",
37
+ "build:lib": "tsc --sourceMap",
38
+ "build:lib:prod": "tsc",
39
+ "clean": "jlpm clean:lib",
40
+ "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
41
+ "clean:lintcache": "rimraf .eslintcache .stylelintcache",
42
+ "clean:labextension": "rimraf jupyterlab_advanced_code_viewer_extension/labextension jupyterlab_advanced_code_viewer_extension/_version.py",
43
+ "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
44
+ "eslint": "jlpm eslint:check --fix",
45
+ "eslint:check": "eslint . --cache",
46
+ "install:extension": "jlpm build",
47
+ "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
48
+ "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
49
+ "prettier": "jlpm prettier:base --write --list-different",
50
+ "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
51
+ "prettier:check": "jlpm prettier:base --check",
52
+ "stylelint": "jlpm stylelint:check --fix",
53
+ "stylelint:check": "stylelint --cache \"style/**/*.css\"",
54
+ "test": "jest --coverage",
55
+ "watch": "run-p watch:src watch:labextension",
56
+ "watch:src": "tsc -w --sourceMap",
57
+ "watch:labextension": "jupyter-builder watch ."
58
+ },
59
+ "dependencies": {
60
+ "@jupyterlab/application": "^4.6.0",
61
+ "@jupyterlab/coreutils": "^6.6.0",
62
+ "@jupyterlab/services": "^7.6.0",
63
+ "@jupyterlab/settingregistry": "^4.6.0"
64
+ },
65
+ "devDependencies": {
66
+ "@eslint/js": "^9.39.0",
67
+ "@jupyter/builder": "^1.2.0",
68
+ "@jupyter/eslint-plugin": "^1.4.0",
69
+ "@jupyterlab/testutils": "^4.6.0",
70
+ "@types/jest": "^29.5.0",
71
+ "@types/json-schema": "^7.0.0",
72
+ "@types/react": "^18.3.0",
73
+ "@types/react-addons-linked-state-mixin": "^0.14.0",
74
+ "eslint": "^9.39.0",
75
+ "eslint-config-prettier": "^9.1.0",
76
+ "eslint-plugin-prettier": "^5.5.0",
77
+ "globals": "^15.15.0",
78
+ "jest": "^29.7.0",
79
+ "mkdirp": "^1.0.0",
80
+ "npm-run-all2": "^7.0.0",
81
+ "prettier": "^3.9.0",
82
+ "rimraf": "^5.0.0",
83
+ "stylelint": "^15.11.0",
84
+ "stylelint-config-recommended": "^13.0.0",
85
+ "stylelint-config-standard": "^34.0.0",
86
+ "stylelint-csstree-validator": "^3.1.0",
87
+ "stylelint-prettier": "^4.1.0",
88
+ "typescript": "~5.8.0",
89
+ "typescript-eslint": "^8.72.0",
90
+ "yjs": "^13.6.0"
91
+ },
92
+ "resolutions": {
93
+ "lib0": "0.2.111",
94
+ "webpack": "5.106.0"
95
+ },
96
+ "sideEffects": [
97
+ "style/*.css",
98
+ "style/index.js"
99
+ ],
100
+ "styleModule": "style/index.js",
101
+ "publishConfig": {
102
+ "access": "public"
103
+ },
104
+ "jupyterlab": {
105
+ "discovery": {
106
+ "server": {
107
+ "managers": [
108
+ "pip"
109
+ ],
110
+ "base": {
111
+ "name": "jupyterlab_advanced_code_viewer_extension"
112
+ }
113
+ }
114
+ },
115
+ "extension": true,
116
+ "outputDir": "jupyterlab_advanced_code_viewer_extension/labextension",
117
+ "schemaDir": "schema"
118
+ },
119
+ "prettier": {
120
+ "singleQuote": true,
121
+ "trailingComma": "none",
122
+ "arrowParens": "avoid",
123
+ "endOfLine": "auto",
124
+ "overrides": [
125
+ {
126
+ "files": "package.json",
127
+ "options": {
128
+ "tabWidth": 4
129
+ }
130
+ }
131
+ ]
132
+ },
133
+ "stylelint": {
134
+ "extends": [
135
+ "stylelint-config-recommended",
136
+ "stylelint-config-standard",
137
+ "stylelint-prettier/recommended"
138
+ ],
139
+ "plugins": [
140
+ "stylelint-csstree-validator"
141
+ ],
142
+ "rules": {
143
+ "csstree/validator": true,
144
+ "property-no-vendor-prefix": null,
145
+ "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
146
+ "selector-no-vendor-prefix": null,
147
+ "value-no-vendor-prefix": null
148
+ }
149
+ },
150
+ "allowScripts": {
151
+ "@fortawesome/fontawesome-free": true
152
+ }
153
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "jupyter.lab.shortcuts": [],
3
+ "title": "@stellarshenson/jupyterlab-advanced-code-viewer-extension",
4
+ "description": "@stellarshenson/jupyterlab-advanced-code-viewer-extension settings.",
5
+ "type": "object",
6
+ "properties": {},
7
+ "additionalProperties": false
8
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";(self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension=self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension||[]).push([[232],{475(e,t,n){var r=n(601),a=n.n(r),o=n(314),s=(n.n(o))()(a());s.push([e.id,`/*
2
+ See the JupyterLab Developer Guide for useful CSS Patterns:
3
+
4
+ https://jupyterlab.readthedocs.io/en/stable/developer/css.html
5
+ */
6
+ `,""]),n.d(t,{},{A:s})},314(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var c=0;c<this.length;c++){var i=this[c][0];null!=i&&(s[i]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&s[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]&&(l[1]="@media ".concat(l[2]," {").concat(l[1],"}")),l[2]=n),a&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=a):l[4]="".concat(a)),t.push(l))}},t}},601(e){e.exports=function(e){return e[1]}},72(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},o=[],s=0;s<e.length;s++){var c=e[s],i=r.base?c[0]+r.base:c[0],u=a[i]||0,l="".concat(i," ").concat(u);a[i]=u+1;var p=n(l),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var f=function(e,t){var n=t.domAPI(t);return n.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&n.update(e=t):n.remove()}}(d,r);r.byIndex=s,t.splice(s,0,{identifier:l,updater:f,references:1})}o.push(l)}return o}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var c=n(o[s]);t[c].references--}for(var i=r(e,a),u=0;u<o.length;u++){var l=n(o[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=i}}},659(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825(e){e.exports=function(e){if("u"<typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){var r,a,o;r="",n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {")),(a=void 0!==n.layer)&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}"),(o=n.sourceMap)&&"u">typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},113(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},579(e,t,n){var r=n(72),a=n.n(r),o=n(825),s=n.n(o),c=n(659),i=n.n(c),u=n(56),l=n.n(u),p=n(540),d=n.n(p),f=n(113),v=n.n(f),h=n(475),m={};m.styleTagTransform=v(),m.setAttributes=l(),m.insert=i().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=d(),a()(h.A,m),h.A&&h.A.locals&&h.A.locals}}]);
@@ -0,0 +1,2 @@
1
+ "use strict";(self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension=self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension||[]).push([[571],{214(e,o,n){n.r(o),n.d(o,{default:()=>i});var t=n(501),r=n(810),a=n(195);let s={id:"@stellarshenson/jupyterlab-advanced-code-viewer-extension:plugin",description:"Follow a notebook or a source file while an AI agent writes it, see each change in the editor as you work, and mark and comment on code with notes stored in the file",autoStart:!0,optional:[t.ISettingRegistry],activate:(e,o)=>{console.log("JupyterLab extension @stellarshenson/jupyterlab-advanced-code-viewer-extension is activated!"),o&&o.load(s.id).then(e=>{console.log("jupyterlab_advanced_code_viewer_extension settings loaded:",e.composite)}).catch(e=>{console.error("Failed to load settings for jupyterlab_advanced_code_viewer_extension.",e)}),(async function(e,o,n={}){let t,s=r.URLExt.join(o.baseUrl,"jupyterlab-advanced-code-viewer-extension",e);try{t=await a.ServerConnection.makeRequest(s,n,o)}catch(e){throw new a.ServerConnection.NetworkError(e)}let i=await t.text();if(i.length>0)try{i=JSON.parse(i)}catch(e){console.log("Not a JSON response body.",t)}if(!t.ok)throw new a.ServerConnection.ResponseError(t,i.message||i);return i})("hello",e.serviceManager.serverSettings).then(e=>{console.log(e)}).catch(e=>{console.error(`The jupyterlab_advanced_code_viewer_extension server extension appears to be missing.
2
+ ${e}`)})}},i=s}}]);
@@ -0,0 +1 @@
1
+ var _JUPYTERLAB;(()=>{"use strict";var e,n,r,t,o,i,u,a,c,l,s,f,p,d,h,v,g,y,m,b,S,w,k,j,x,E,_,T,M,P,A,C,O,D,q,L,V,N={332(e,n,r){var t={"./index":()=>r.e(571).then(()=>()=>r(214)),"./extension":()=>r.e(571).then(()=>()=>r(214)),"./style":()=>r.e(232).then(()=>()=>r(579))},o=function(e,n){return r.R=n,n=r.o(t,e)?t[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,n},i=function(e,n){if(r.S){var t="default",o=r.S[t];if(o&&o!==e)throw Error("Container initialization failed as it has already been initialized with a different share scope");return r.S[t]=e,r.I(t,n)}};r.d(n,{get:()=>o,init:()=>i})}},$={};function z(e){var n=$[e];if(void 0!==n)return n.exports;var r=$[e]={id:e,exports:{}};return N[e](r,r.exports,z),r.exports}z.m=N,z.c=$,z.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return z.d(n,{a:n}),n},z.d=(e,n,r)=>{var t=(n,r)=>{for(var t in n)z.o(n,t)&&!z.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,[r]:n[t]})};t(n,"get"),t(r,"value")},z.f={},z.e=e=>Promise.all(Object.keys(z.f).reduce((n,r)=>(z.f[r](e,n),n),[])),z.u=e=>""+e+"."+({232:"ba615dd6803b2beb",571:"ea54f6c6bb484b45"})[e]+".js?v="+({232:"ba615dd6803b2beb",571:"ea54f6c6bb484b45"})[e],z.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),z.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),I={},z.l=function(e,n,r,t){if(I[e])return void I[e].push(n);if(void 0!==r)for(var o,i,u=document.getElementsByTagName("script"),a=0;a<u.length;a++){var c=u[a];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@stellarshenson/jupyterlab-advanced-code-viewer-extension:"+r){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,z.nc&&o.setAttribute("nonce",z.nc),o.setAttribute("data-rspack","@stellarshenson/jupyterlab-advanced-code-viewer-extension:"+r),o.src=e),I[e]=[n];var l=function(n,r){o.onerror=o.onload=null,clearTimeout(s);var t=I[e];if(delete I[e],o.parentNode&&o.parentNode.removeChild(o),t&&t.forEach(function(e){return e(r)}),n)return n(r)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},z.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},z.nc=void 0,z.S={},z.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@stellarshenson/jupyterlab-advanced-code-viewer-extension",version:"0.1.2",factory:()=>z.e(571).then(()=>()=>z(214)),eager:0,treeShakingMode:null}]},uniqueName:"@stellarshenson/jupyterlab-advanced-code-viewer-extension"},R={},U={},z.I=function(e,n){n||(n=[]);var r=U[e];if(r||(r=U[e]={}),!(n.indexOf(r)>=0)){if(n.push(r),R[e])return R[e];z.o(z.S,e)||(z.S[e]={});var t=z.S[e],o=function(e){"u">typeof console&&console.warn&&console.warn(e)},i=z.initializeSharingData.uniqueName,u=function(e,n,r,o){var u=t[e]=t[e]||{},a=u[n];(!a||!a.loaded&&(!o!=!a.eager?o:i>a.from))&&(u[n]={get:r,from:i,eager:!!o})},a=function(r){var t=function(e){o("Initialization of sharing external failed: "+e)};try{var i=z(r);if(!i)return;var u=function(r){return r&&r.init&&r.init(z.S[e],n)};if(i.then)return c.push(i.then(u,t));var a=u(i);if(a&&a.then)return c.push(a.catch(t))}catch(e){t(e)}},c=[],l=z.initializeSharingData.scopeToSharingDataMapping;return(l[e]&&l[e].forEach(function(e){"object"==typeof e?u(e.name,e.version,e.factory,e.eager):a(e)}),c.length)?R[e]=Promise.all(c).then(function(){return R[e]=1}):R[e]=1}},z.g.importScripts&&(B=z.g.location+"");var I,R,U,B,J=z.g.document;if(!B&&J&&(J.currentScript&&"SCRIPT"===J.currentScript.tagName.toUpperCase()&&(B=J.currentScript.src),!B)){var K=J.getElementsByTagName("script");if(K.length)for(var Y=K.length-1;Y>-1&&(!B||!/^http(s?):/.test(B));)B=K[Y--].src}if(!B)throw Error("Automatic publicPath is not supported in this browser");z.p=B=B.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),z.consumesLoadingData={chunkMapping:{571:["810","195","501"]},moduleIdToConsumeDataMapping:{195:{shareScope:"default",shareKey:"@jupyterlab/services",import:null,requiredVersion:"^7.6.5",strictVersion:!1,singleton:!0,eager:!1,fallback:void 0,treeShakingMode:null},501:{shareScope:"default",shareKey:"@jupyterlab/settingregistry",import:null,requiredVersion:"^4.6.5",strictVersion:!1,singleton:!0,eager:!1,fallback:void 0,treeShakingMode:null},810:{shareScope:"default",shareKey:"@jupyterlab/coreutils",import:null,requiredVersion:"^6.6.5",strictVersion:!1,singleton:!0,eager:!1,fallback:void 0,treeShakingMode:null}},initialConsumes:[]},e=function(e){return e.split(".").map(function(e){return+e==e?+e:e})},n=function(n){var r=function(n){var r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(n),t=r[1]?[0].concat(e(r[1])):[0];r[2]&&(t.length++,t.push.apply(t,e(r[2])));let o=t[t.length-1];for(;t.length&&(void 0===o||/^[*xX]$/.test(o));)t.pop(),o=t[t.length-1];return t},t=function(e){return 1===e.length?[0]:2===e.length?[1].concat(e.slice(1)):3===e.length?[2].concat(e.slice(1)):[e.length].concat(e.slice(1))},o=function(e){return[-e[0]-1].concat(e.slice(1))},i=function(e){let n=/^(\^|~|<=|<|>=|>|=|v|!)/.exec(e),i=n?n[0]:"",u=r(i.length?e.slice(i.length).trim():e.trim());switch(i){case"^":if(u.length>1&&0===u[1]){if(u.length>2&&0===u[2])return[3].concat(u.slice(1));return[2].concat(u.slice(1))}return[1].concat(u.slice(1));case"~":return[2].concat(u.slice(1));case">=":return u;case"=":case"v":case"":return t(u);case"<":return o(u);case">":return[,t(u),0,u,2];case"<=":return[,t(u),o(u),1];case"!":return[,t(u),0];default:throw Error("Unexpected start value")}},u=function(e,n){if(1===e.length)return e[0];let r=[];for(let n of e.slice().reverse())0 in n?r.push(n):r.push.apply(r,n.slice(1));return[,].concat(r,e.slice(1).map(()=>n))};return u(n.split(/\s*\|\|\s*/).map(function(e){let n=e.split(/\s+-\s+/);if(1===n.length){e=e.trim();let n=[],r=/[-0-9A-Za-z]\s+/g;for(var a,c=0;a=r.exec(e);){let r=a.index+1;n.push(i(e.slice(c,r).trim())),c=r}return n.push(i(e.slice(c).trim())),u(n,2)}let l=r(n[0]),s=r(n[1]);return[,t(s),o(s),1,l,2]}),1)},r=function(n){var r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(n),t=r[1]?e(r[1]):[];return r[2]&&(t.length++,t.push.apply(t,e(r[2]))),r[3]&&(t.push([]),t.push.apply(t,e(r[3]))),t},t=function(e,n){e=r(e),n=r(n);for(var t=0;;){if(t>=e.length)return t<n.length&&"u"!=(typeof n[t])[0];var o=e[t],i=(typeof o)[0];if(t>=n.length)return"u"==i;var u=n[t],a=(typeof u)[0];if(i==a){if("o"!=i&&"u"!=i&&o!=u)return o<u;t++}else{if("o"==i&&"n"==a)return!0;return"s"==a||"u"==i}}},o=function(e){var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var t=1,i=1;i<e.length;i++){var u=e[i],a=(typeof u)[0];t--,r+="u"==a?"-":(t>0?".":"")+(t=2,u)}return r}for(var c=[],i=1;i<e.length;i++){var u=e[i];c.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?c.pop()+" "+c.pop():o(u))}return l();function l(){return c.pop().replace(/^\((.+)\)$/,"$1")}},i=function(e,n){if(0 in e){n=r(n);var t=e[0],o=t<0;o&&(t=-t-1);for(var u=0,a=1,c=!0;;a++,u++){var l,s,f=a<e.length?(typeof e[a])[0]:"";if(u>=n.length||"o"==(s=(typeof(l=n[u]))[0])){if(!c)return!0;if("u"==f)return a>t&&!o;return""==f!=o}if("u"==s){if(!c||"u"!=f)return!1}else if(c)if(f==s)if(a<=t){if(l!=e[a])return!1}else{if(o?l>e[a]:l<e[a])return!1;l!=e[a]&&(c=!1)}else if("s"!=f&&"n"!=f){if(o||a<=t)return!1;c=!1,a--}else{if(a<=t||s<f!=o)return!1;c=!1}else"s"!=f&&"n"!=f&&(c=!1,a--)}}for(var p=[],d=p.pop.bind(p),u=1;u<e.length;u++){var h=e[u];p.push(1==h?d()|d():2==h?d()&d():h?i(h,n):!d())}return!!d()},u=function(e,n){var r=z.S[e];if(!r||!z.o(r,n))throw Error("Shared module "+n+" doesn't exist in shared scope "+e);return r},a=function(e,n){var r=e[n],n=Object.keys(r).reduce(function(e,n){return!e||t(e,n)?n:e},0);return n&&r[n]},c=function(e,n){var r=e[n];return Object.keys(r).reduce(function(e,n){return!e||!r[e].loaded&&t(e,n)?n:e},0)},l=function(e,n,r,t){return"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+o(t)+")"},s=function(e,n,r,t){var o=c(e,r);return m(e[r][o])},f=function(e,n,r,t){var o=c(e,r);return i(t,o)||g(l(e,r,o,t)),m(e[r][o])},p=function(e,n,r,t){var o=c(e,r);if(!i(t,o))throw Error(l(e,r,o,t));return m(e[r][o])},d=function(e,n,r){var o=e[n],n=Object.keys(o).reduce(function(e,n){return i(r,n)&&(!e||t(e,n))?n:e},0);return n&&o[n]},h=function(e,n,r,t){var i=e[r];return"No satisfying version ("+o(t)+") of shared module "+r+" found in shared scope "+n+".\nAvailable versions: "+Object.keys(i).map(function(e){return e+" from "+i[e].from}).join(", ")},v=function(e,n,r,t){var o=d(e,r,t);if(o)return m(o);throw Error(h(e,n,r,t))},g=function(e){"u">typeof console&&console.warn&&console.warn(e)},y=function(e,n,r,t){g(h(e,n,r,t))},m=function(e){return e.loaded=1,e.get()},S=(b=function(e){return function(n,r,t,o){var i=z.I(n);return i&&i.then?i.then(e.bind(e,n,z.S[n],r,t,o)):e(n,z.S[n],r,t,o)}})(function(e,n,r){return u(e,r),m(a(n,r))}),w=b(function(e,n,r,t){return n&&z.o(n,r)?m(a(n,r)):t()}),k=b(function(e,n,r,t){return u(e,r),m(d(n,r,t)||y(n,e,r,t)||a(n,r))}),j=b(function(e,n,r){return u(e,r),s(n,e,r)}),x=b(function(e,n,r,t){return u(e,r),f(n,e,r,t)}),E=b(function(e,n,r,t){return u(e,r),v(n,e,r,t)}),_=b(function(e,n,r,t){return u(e,r),p(n,e,r,t)}),T=b(function(e,n,r,t,o){return n&&z.o(n,r)?m(d(n,r,t)||y(n,e,r,t)||a(n,r)):o()}),M=b(function(e,n,r,t){return n&&z.o(n,r)?s(n,e,r):t()}),P=b(function(e,n,r,t,o){return n&&z.o(n,r)?f(n,e,r,t):o()}),A=b(function(e,n,r,t,o){var i=n&&z.o(n,r)&&d(n,r,t);return i?m(i):o()}),C=b(function(e,n,r,t,o){return n&&z.o(n,r)?p(n,e,r,t):o()}),O=function(e){var r=!1,t=!1,o=!1,i=!1,u=[e.shareScope,e.shareKey];return(e.requiredVersion?(e.strictVersion&&(r=!0),e.singleton&&(t=!0),u.push(n(e.requiredVersion)),o=!0):e.singleton&&(t=!0),e.fallback&&(i=!0,u.push(e.fallback)),r&&t&&o&&i)?function(){return C.apply(null,u)}:r&&o&&i?function(){return A.apply(null,u)}:t&&o&&i?function(){return P.apply(null,u)}:r&&t&&o?function(){return _.apply(null,u)}:t&&i?function(){return M.apply(null,u)}:o&&i?function(){return T.apply(null,u)}:r&&o?function(){return E.apply(null,u)}:t&&o?function(){return x.apply(null,u)}:t?function(){return j.apply(null,u)}:o?function(){return k.apply(null,u)}:i?function(){return w.apply(null,u)}:function(){return S.apply(null,u)}},D={},z.f.consumes=function(e,n){var r=z.consumesLoadingData.moduleIdToConsumeDataMapping,t=z.consumesLoadingData.chunkMapping;z.o(t,e)&&t[e].forEach(function(e){if(z.o(D,e))return n.push(D[e]);var t=function(n){D[e]=0,z.m[e]=function(r){delete z.c[e],r.exports=n()}},o=function(n){delete D[e],z.m[e]=function(r){throw delete z.c[e],n}};try{var i=O(r[e])();i.then?n.push(D[e]=i.then(t).catch(o)):t(i)}catch(e){o(e)}})},q={104:0},z.f.j=function(e,n){var r=z.o(q,e)?q[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var t=new Promise((n,t)=>r=q[e]=[n,t]);n.push(r[2]=t);var o=z.p+z.u(e),i=Error();z.l(o,function(n){if(z.o(q,e)&&(0!==(r=q[e])&&(q[e]=void 0),r)){var t=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+e+" failed.\n("+t+": "+o+")",i.name="ChunkLoadError",i.type=t,i.request=o,r[1](i)}},"chunk-"+e,e)}},L=(e,n)=>{var r,t,[o,i,u]=n,a=0;if(o.some(e=>0!==q[e])){for(r in i)z.o(i,r)&&(z.m[r]=i[r]);u&&u(z)}for(e&&e(n);a<o.length;a++)t=o[a],z.o(q,t)&&q[t]&&q[t][0](),q[t]=0},(V=self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension=self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension||[]).forEach(L.bind(null,0)),V.push=L.bind(null,V.push.bind(V));var F=z(332);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["@stellarshenson/jupyterlab-advanced-code-viewer-extension"]=F})();
@@ -0,0 +1,4 @@
1
+ /* This is a generated file of CSS imports */
2
+ /* It was generated by @jupyter/builder in Build.ensureAssets() */
3
+
4
+ import '@stellarshenson/jupyterlab-advanced-code-viewer-extension/style/index.js';
@@ -0,0 +1,16 @@
1
+ {
2
+ "packages": [
3
+ {
4
+ "name": "css-loader",
5
+ "versionInfo": "7.1.5",
6
+ "licenseId": "MIT",
7
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
8
+ },
9
+ {
10
+ "name": "style-loader",
11
+ "versionInfo": "4.0.0",
12
+ "licenseId": "MIT",
13
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,29 @@
1
+ import json
2
+
3
+ from jupyter_server.base.handlers import APIHandler
4
+ from jupyter_server.utils import url_path_join
5
+ import tornado
6
+
7
+ class HelloRouteHandler(APIHandler):
8
+ # The following decorator should be present on all verb methods (head, get, post,
9
+ # patch, put, delete, options) to ensure only authorized user can request the
10
+ # Jupyter server
11
+ @tornado.web.authenticated
12
+ def get(self):
13
+ self.finish(json.dumps({
14
+ "data": (
15
+ "Hello, world!"
16
+ " This is the '/jupyterlab-advanced-code-viewer-extension/hello' endpoint."
17
+ " Try visiting me in your browser!"
18
+ ),
19
+ }))
20
+
21
+
22
+ def setup_route_handlers(web_app):
23
+ host_pattern = ".*$"
24
+ base_url = web_app.settings["base_url"]
25
+
26
+ hello_route_pattern = url_path_join(base_url, "jupyterlab-advanced-code-viewer-extension", "hello")
27
+ handlers = [(hello_route_pattern, HelloRouteHandler)]
28
+
29
+ web_app.add_handlers(host_pattern, handlers)
@@ -0,0 +1 @@
1
+ """Python unit tests for jupyterlab_advanced_code_viewer_extension."""
@@ -0,0 +1,30 @@
1
+ import json
2
+
3
+ from tornado.httpclient import HTTPClientError
4
+ import pytest
5
+
6
+
7
+ async def test_hello(jp_fetch):
8
+ response = await jp_fetch("jupyterlab-advanced-code-viewer-extension", "hello")
9
+
10
+ assert response.code == 200
11
+ payload = json.loads(response.body)
12
+ assert payload == {
13
+ "data": (
14
+ "Hello, world!"
15
+ " This is the '/jupyterlab-advanced-code-viewer-extension/hello' endpoint."
16
+ " Try visiting me in your browser!"
17
+ ),
18
+ }
19
+
20
+
21
+ async def test_hello_refuses_an_unauthenticated_request(jp_fetch):
22
+ # jp_fetch adds the token to each request; the header is sent empty here,
23
+ # so the route answers as it would to a browser without a session.
24
+ with pytest.raises(HTTPClientError) as refused:
25
+ await jp_fetch(
26
+ "jupyterlab-advanced-code-viewer-extension",
27
+ "hello",
28
+ headers={"Authorization": ""},
29
+ )
30
+ assert refused.value.code == 403
@@ -0,0 +1,7 @@
1
+ {
2
+ "ServerApp": {
3
+ "jpserver_extensions": {
4
+ "jupyterlab_advanced_code_viewer_extension": true
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "packageManager": "python",
3
+ "packageName": "jupyterlab_advanced_code_viewer_extension",
4
+ "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab_advanced_code_viewer_extension"
5
+ }
@@ -0,0 +1,158 @@
1
+ {
2
+ "name": "@stellarshenson/jupyterlab-advanced-code-viewer-extension",
3
+ "version": "0.1.2",
4
+ "description": "Follow a notebook or a source file while an AI agent writes it, see each change in the editor as you work, and mark and comment on code with notes stored in the file",
5
+ "keywords": [
6
+ "jupyter",
7
+ "jupyterlab",
8
+ "jupyterlab-extension"
9
+ ],
10
+ "homepage": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension",
11
+ "bugs": {
12
+ "url": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension/issues"
13
+ },
14
+ "license": "BSD-3-Clause",
15
+ "author": {
16
+ "name": "Stellars Henson",
17
+ "email": "konrad.jelen@gmail.com"
18
+ },
19
+ "files": [
20
+ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21
+ "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
22
+ "src/**/*.{ts,tsx}",
23
+ "schema/*.json"
24
+ ],
25
+ "main": "lib/index.js",
26
+ "types": "lib/index.d.ts",
27
+ "style": "style/index.css",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension.git"
31
+ },
32
+ "scripts": {
33
+ "build": "jlpm build:lib && jlpm build:labextension:dev",
34
+ "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
35
+ "build:labextension": "jupyter-builder build .",
36
+ "build:labextension:dev": "jupyter-builder build --development True .",
37
+ "build:lib": "tsc --sourceMap",
38
+ "build:lib:prod": "tsc",
39
+ "clean": "jlpm clean:lib",
40
+ "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
41
+ "clean:lintcache": "rimraf .eslintcache .stylelintcache",
42
+ "clean:labextension": "rimraf jupyterlab_advanced_code_viewer_extension/labextension jupyterlab_advanced_code_viewer_extension/_version.py",
43
+ "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
44
+ "eslint": "jlpm eslint:check --fix",
45
+ "eslint:check": "eslint . --cache",
46
+ "install:extension": "jlpm build",
47
+ "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
48
+ "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
49
+ "prettier": "jlpm prettier:base --write --list-different",
50
+ "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
51
+ "prettier:check": "jlpm prettier:base --check",
52
+ "stylelint": "jlpm stylelint:check --fix",
53
+ "stylelint:check": "stylelint --cache \"style/**/*.css\"",
54
+ "test": "jest --coverage",
55
+ "watch": "run-p watch:src watch:labextension",
56
+ "watch:src": "tsc -w --sourceMap",
57
+ "watch:labextension": "jupyter-builder watch ."
58
+ },
59
+ "dependencies": {
60
+ "@jupyterlab/application": "^4.6.0",
61
+ "@jupyterlab/coreutils": "^6.6.0",
62
+ "@jupyterlab/services": "^7.6.0",
63
+ "@jupyterlab/settingregistry": "^4.6.0"
64
+ },
65
+ "devDependencies": {
66
+ "@eslint/js": "^9.39.0",
67
+ "@jupyter/builder": "^1.2.0",
68
+ "@jupyter/eslint-plugin": "^1.4.0",
69
+ "@jupyterlab/testutils": "^4.6.0",
70
+ "@types/jest": "^29.5.0",
71
+ "@types/json-schema": "^7.0.0",
72
+ "@types/react": "^18.3.0",
73
+ "@types/react-addons-linked-state-mixin": "^0.14.0",
74
+ "eslint": "^9.39.0",
75
+ "eslint-config-prettier": "^9.1.0",
76
+ "eslint-plugin-prettier": "^5.5.0",
77
+ "globals": "^15.15.0",
78
+ "jest": "^29.7.0",
79
+ "mkdirp": "^1.0.0",
80
+ "npm-run-all2": "^7.0.0",
81
+ "prettier": "^3.9.0",
82
+ "rimraf": "^5.0.0",
83
+ "stylelint": "^15.11.0",
84
+ "stylelint-config-recommended": "^13.0.0",
85
+ "stylelint-config-standard": "^34.0.0",
86
+ "stylelint-csstree-validator": "^3.1.0",
87
+ "stylelint-prettier": "^4.1.0",
88
+ "typescript": "~5.8.0",
89
+ "typescript-eslint": "^8.72.0",
90
+ "yjs": "^13.6.0"
91
+ },
92
+ "resolutions": {
93
+ "lib0": "0.2.111",
94
+ "webpack": "5.106.0"
95
+ },
96
+ "sideEffects": [
97
+ "style/*.css",
98
+ "style/index.js"
99
+ ],
100
+ "styleModule": "style/index.js",
101
+ "publishConfig": {
102
+ "access": "public"
103
+ },
104
+ "jupyterlab": {
105
+ "discovery": {
106
+ "server": {
107
+ "managers": [
108
+ "pip"
109
+ ],
110
+ "base": {
111
+ "name": "jupyterlab_advanced_code_viewer_extension"
112
+ }
113
+ }
114
+ },
115
+ "extension": true,
116
+ "outputDir": "jupyterlab_advanced_code_viewer_extension/labextension",
117
+ "schemaDir": "schema",
118
+ "_build": {
119
+ "load": "static/remoteEntry.430b6c2ebff20df0.js",
120
+ "extension": "./extension",
121
+ "style": "./style"
122
+ }
123
+ },
124
+ "prettier": {
125
+ "singleQuote": true,
126
+ "trailingComma": "none",
127
+ "arrowParens": "avoid",
128
+ "endOfLine": "auto",
129
+ "overrides": [
130
+ {
131
+ "files": "package.json",
132
+ "options": {
133
+ "tabWidth": 4
134
+ }
135
+ }
136
+ ]
137
+ },
138
+ "stylelint": {
139
+ "extends": [
140
+ "stylelint-config-recommended",
141
+ "stylelint-config-standard",
142
+ "stylelint-prettier/recommended"
143
+ ],
144
+ "plugins": [
145
+ "stylelint-csstree-validator"
146
+ ],
147
+ "rules": {
148
+ "csstree/validator": true,
149
+ "property-no-vendor-prefix": null,
150
+ "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
151
+ "selector-no-vendor-prefix": null,
152
+ "value-no-vendor-prefix": null
153
+ }
154
+ },
155
+ "allowScripts": {
156
+ "@fortawesome/fontawesome-free": true
157
+ }
158
+ }
@@ -0,0 +1,153 @@
1
+ {
2
+ "name": "@stellarshenson/jupyterlab-advanced-code-viewer-extension",
3
+ "version": "0.1.2",
4
+ "description": "Follow a notebook or a source file while an AI agent writes it, see each change in the editor as you work, and mark and comment on code with notes stored in the file",
5
+ "keywords": [
6
+ "jupyter",
7
+ "jupyterlab",
8
+ "jupyterlab-extension"
9
+ ],
10
+ "homepage": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension",
11
+ "bugs": {
12
+ "url": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension/issues"
13
+ },
14
+ "license": "BSD-3-Clause",
15
+ "author": {
16
+ "name": "Stellars Henson",
17
+ "email": "konrad.jelen@gmail.com"
18
+ },
19
+ "files": [
20
+ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21
+ "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
22
+ "src/**/*.{ts,tsx}",
23
+ "schema/*.json"
24
+ ],
25
+ "main": "lib/index.js",
26
+ "types": "lib/index.d.ts",
27
+ "style": "style/index.css",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension.git"
31
+ },
32
+ "scripts": {
33
+ "build": "jlpm build:lib && jlpm build:labextension:dev",
34
+ "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
35
+ "build:labextension": "jupyter-builder build .",
36
+ "build:labextension:dev": "jupyter-builder build --development True .",
37
+ "build:lib": "tsc --sourceMap",
38
+ "build:lib:prod": "tsc",
39
+ "clean": "jlpm clean:lib",
40
+ "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
41
+ "clean:lintcache": "rimraf .eslintcache .stylelintcache",
42
+ "clean:labextension": "rimraf jupyterlab_advanced_code_viewer_extension/labextension jupyterlab_advanced_code_viewer_extension/_version.py",
43
+ "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
44
+ "eslint": "jlpm eslint:check --fix",
45
+ "eslint:check": "eslint . --cache",
46
+ "install:extension": "jlpm build",
47
+ "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
48
+ "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
49
+ "prettier": "jlpm prettier:base --write --list-different",
50
+ "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
51
+ "prettier:check": "jlpm prettier:base --check",
52
+ "stylelint": "jlpm stylelint:check --fix",
53
+ "stylelint:check": "stylelint --cache \"style/**/*.css\"",
54
+ "test": "jest --coverage",
55
+ "watch": "run-p watch:src watch:labextension",
56
+ "watch:src": "tsc -w --sourceMap",
57
+ "watch:labextension": "jupyter-builder watch ."
58
+ },
59
+ "dependencies": {
60
+ "@jupyterlab/application": "^4.6.0",
61
+ "@jupyterlab/coreutils": "^6.6.0",
62
+ "@jupyterlab/services": "^7.6.0",
63
+ "@jupyterlab/settingregistry": "^4.6.0"
64
+ },
65
+ "devDependencies": {
66
+ "@eslint/js": "^9.39.0",
67
+ "@jupyter/builder": "^1.2.0",
68
+ "@jupyter/eslint-plugin": "^1.4.0",
69
+ "@jupyterlab/testutils": "^4.6.0",
70
+ "@types/jest": "^29.5.0",
71
+ "@types/json-schema": "^7.0.0",
72
+ "@types/react": "^18.3.0",
73
+ "@types/react-addons-linked-state-mixin": "^0.14.0",
74
+ "eslint": "^9.39.0",
75
+ "eslint-config-prettier": "^9.1.0",
76
+ "eslint-plugin-prettier": "^5.5.0",
77
+ "globals": "^15.15.0",
78
+ "jest": "^29.7.0",
79
+ "mkdirp": "^1.0.0",
80
+ "npm-run-all2": "^7.0.0",
81
+ "prettier": "^3.9.0",
82
+ "rimraf": "^5.0.0",
83
+ "stylelint": "^15.11.0",
84
+ "stylelint-config-recommended": "^13.0.0",
85
+ "stylelint-config-standard": "^34.0.0",
86
+ "stylelint-csstree-validator": "^3.1.0",
87
+ "stylelint-prettier": "^4.1.0",
88
+ "typescript": "~5.8.0",
89
+ "typescript-eslint": "^8.72.0",
90
+ "yjs": "^13.6.0"
91
+ },
92
+ "resolutions": {
93
+ "lib0": "0.2.111",
94
+ "webpack": "5.106.0"
95
+ },
96
+ "sideEffects": [
97
+ "style/*.css",
98
+ "style/index.js"
99
+ ],
100
+ "styleModule": "style/index.js",
101
+ "publishConfig": {
102
+ "access": "public"
103
+ },
104
+ "jupyterlab": {
105
+ "discovery": {
106
+ "server": {
107
+ "managers": [
108
+ "pip"
109
+ ],
110
+ "base": {
111
+ "name": "jupyterlab_advanced_code_viewer_extension"
112
+ }
113
+ }
114
+ },
115
+ "extension": true,
116
+ "outputDir": "jupyterlab_advanced_code_viewer_extension/labextension",
117
+ "schemaDir": "schema"
118
+ },
119
+ "prettier": {
120
+ "singleQuote": true,
121
+ "trailingComma": "none",
122
+ "arrowParens": "avoid",
123
+ "endOfLine": "auto",
124
+ "overrides": [
125
+ {
126
+ "files": "package.json",
127
+ "options": {
128
+ "tabWidth": 4
129
+ }
130
+ }
131
+ ]
132
+ },
133
+ "stylelint": {
134
+ "extends": [
135
+ "stylelint-config-recommended",
136
+ "stylelint-config-standard",
137
+ "stylelint-prettier/recommended"
138
+ ],
139
+ "plugins": [
140
+ "stylelint-csstree-validator"
141
+ ],
142
+ "rules": {
143
+ "csstree/validator": true,
144
+ "property-no-vendor-prefix": null,
145
+ "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
146
+ "selector-no-vendor-prefix": null,
147
+ "value-no-vendor-prefix": null
148
+ }
149
+ },
150
+ "allowScripts": {
151
+ "@fortawesome/fontawesome-free": true
152
+ }
153
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "jupyter.lab.shortcuts": [],
3
+ "title": "@stellarshenson/jupyterlab-advanced-code-viewer-extension",
4
+ "description": "@stellarshenson/jupyterlab-advanced-code-viewer-extension settings.",
5
+ "type": "object",
6
+ "properties": {},
7
+ "additionalProperties": false
8
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";(self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension=self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension||[]).push([[232],{475(e,t,n){var r=n(601),a=n.n(r),o=n(314),s=(n.n(o))()(a());s.push([e.id,`/*
2
+ See the JupyterLab Developer Guide for useful CSS Patterns:
3
+
4
+ https://jupyterlab.readthedocs.io/en/stable/developer/css.html
5
+ */
6
+ `,""]),n.d(t,{},{A:s})},314(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var c=0;c<this.length;c++){var i=this[c][0];null!=i&&(s[i]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&s[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]&&(l[1]="@media ".concat(l[2]," {").concat(l[1],"}")),l[2]=n),a&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=a):l[4]="".concat(a)),t.push(l))}},t}},601(e){e.exports=function(e){return e[1]}},72(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},o=[],s=0;s<e.length;s++){var c=e[s],i=r.base?c[0]+r.base:c[0],u=a[i]||0,l="".concat(i," ").concat(u);a[i]=u+1;var p=n(l),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var f=function(e,t){var n=t.domAPI(t);return n.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&n.update(e=t):n.remove()}}(d,r);r.byIndex=s,t.splice(s,0,{identifier:l,updater:f,references:1})}o.push(l)}return o}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var c=n(o[s]);t[c].references--}for(var i=r(e,a),u=0;u<o.length;u++){var l=n(o[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=i}}},659(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825(e){e.exports=function(e){if("u"<typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){var r,a,o;r="",n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {")),(a=void 0!==n.layer)&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}"),(o=n.sourceMap)&&"u">typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},113(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},579(e,t,n){var r=n(72),a=n.n(r),o=n(825),s=n.n(o),c=n(659),i=n.n(c),u=n(56),l=n.n(u),p=n(540),d=n.n(p),f=n(113),v=n.n(f),h=n(475),m={};m.styleTagTransform=v(),m.setAttributes=l(),m.insert=i().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=d(),a()(h.A,m),h.A&&h.A.locals&&h.A.locals}}]);
@@ -0,0 +1,2 @@
1
+ "use strict";(self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension=self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension||[]).push([[571],{214(e,o,n){n.r(o),n.d(o,{default:()=>i});var t=n(501),r=n(810),a=n(195);let s={id:"@stellarshenson/jupyterlab-advanced-code-viewer-extension:plugin",description:"Follow a notebook or a source file while an AI agent writes it, see each change in the editor as you work, and mark and comment on code with notes stored in the file",autoStart:!0,optional:[t.ISettingRegistry],activate:(e,o)=>{console.log("JupyterLab extension @stellarshenson/jupyterlab-advanced-code-viewer-extension is activated!"),o&&o.load(s.id).then(e=>{console.log("jupyterlab_advanced_code_viewer_extension settings loaded:",e.composite)}).catch(e=>{console.error("Failed to load settings for jupyterlab_advanced_code_viewer_extension.",e)}),(async function(e,o,n={}){let t,s=r.URLExt.join(o.baseUrl,"jupyterlab-advanced-code-viewer-extension",e);try{t=await a.ServerConnection.makeRequest(s,n,o)}catch(e){throw new a.ServerConnection.NetworkError(e)}let i=await t.text();if(i.length>0)try{i=JSON.parse(i)}catch(e){console.log("Not a JSON response body.",t)}if(!t.ok)throw new a.ServerConnection.ResponseError(t,i.message||i);return i})("hello",e.serviceManager.serverSettings).then(e=>{console.log(e)}).catch(e=>{console.error(`The jupyterlab_advanced_code_viewer_extension server extension appears to be missing.
2
+ ${e}`)})}},i=s}}]);
@@ -0,0 +1 @@
1
+ var _JUPYTERLAB;(()=>{"use strict";var e,n,r,t,o,i,u,a,c,l,s,f,p,d,h,v,g,y,m,b,S,w,k,j,x,E,_,T,M,P,A,C,O,D,q,L,V,N={332(e,n,r){var t={"./index":()=>r.e(571).then(()=>()=>r(214)),"./extension":()=>r.e(571).then(()=>()=>r(214)),"./style":()=>r.e(232).then(()=>()=>r(579))},o=function(e,n){return r.R=n,n=r.o(t,e)?t[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,n},i=function(e,n){if(r.S){var t="default",o=r.S[t];if(o&&o!==e)throw Error("Container initialization failed as it has already been initialized with a different share scope");return r.S[t]=e,r.I(t,n)}};r.d(n,{get:()=>o,init:()=>i})}},$={};function z(e){var n=$[e];if(void 0!==n)return n.exports;var r=$[e]={id:e,exports:{}};return N[e](r,r.exports,z),r.exports}z.m=N,z.c=$,z.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return z.d(n,{a:n}),n},z.d=(e,n,r)=>{var t=(n,r)=>{for(var t in n)z.o(n,t)&&!z.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,[r]:n[t]})};t(n,"get"),t(r,"value")},z.f={},z.e=e=>Promise.all(Object.keys(z.f).reduce((n,r)=>(z.f[r](e,n),n),[])),z.u=e=>""+e+"."+({232:"ba615dd6803b2beb",571:"ea54f6c6bb484b45"})[e]+".js?v="+({232:"ba615dd6803b2beb",571:"ea54f6c6bb484b45"})[e],z.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),z.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),I={},z.l=function(e,n,r,t){if(I[e])return void I[e].push(n);if(void 0!==r)for(var o,i,u=document.getElementsByTagName("script"),a=0;a<u.length;a++){var c=u[a];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@stellarshenson/jupyterlab-advanced-code-viewer-extension:"+r){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,z.nc&&o.setAttribute("nonce",z.nc),o.setAttribute("data-rspack","@stellarshenson/jupyterlab-advanced-code-viewer-extension:"+r),o.src=e),I[e]=[n];var l=function(n,r){o.onerror=o.onload=null,clearTimeout(s);var t=I[e];if(delete I[e],o.parentNode&&o.parentNode.removeChild(o),t&&t.forEach(function(e){return e(r)}),n)return n(r)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},z.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},z.nc=void 0,z.S={},z.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@stellarshenson/jupyterlab-advanced-code-viewer-extension",version:"0.1.2",factory:()=>z.e(571).then(()=>()=>z(214)),eager:0,treeShakingMode:null}]},uniqueName:"@stellarshenson/jupyterlab-advanced-code-viewer-extension"},R={},U={},z.I=function(e,n){n||(n=[]);var r=U[e];if(r||(r=U[e]={}),!(n.indexOf(r)>=0)){if(n.push(r),R[e])return R[e];z.o(z.S,e)||(z.S[e]={});var t=z.S[e],o=function(e){"u">typeof console&&console.warn&&console.warn(e)},i=z.initializeSharingData.uniqueName,u=function(e,n,r,o){var u=t[e]=t[e]||{},a=u[n];(!a||!a.loaded&&(!o!=!a.eager?o:i>a.from))&&(u[n]={get:r,from:i,eager:!!o})},a=function(r){var t=function(e){o("Initialization of sharing external failed: "+e)};try{var i=z(r);if(!i)return;var u=function(r){return r&&r.init&&r.init(z.S[e],n)};if(i.then)return c.push(i.then(u,t));var a=u(i);if(a&&a.then)return c.push(a.catch(t))}catch(e){t(e)}},c=[],l=z.initializeSharingData.scopeToSharingDataMapping;return(l[e]&&l[e].forEach(function(e){"object"==typeof e?u(e.name,e.version,e.factory,e.eager):a(e)}),c.length)?R[e]=Promise.all(c).then(function(){return R[e]=1}):R[e]=1}},z.g.importScripts&&(B=z.g.location+"");var I,R,U,B,J=z.g.document;if(!B&&J&&(J.currentScript&&"SCRIPT"===J.currentScript.tagName.toUpperCase()&&(B=J.currentScript.src),!B)){var K=J.getElementsByTagName("script");if(K.length)for(var Y=K.length-1;Y>-1&&(!B||!/^http(s?):/.test(B));)B=K[Y--].src}if(!B)throw Error("Automatic publicPath is not supported in this browser");z.p=B=B.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),z.consumesLoadingData={chunkMapping:{571:["810","195","501"]},moduleIdToConsumeDataMapping:{195:{shareScope:"default",shareKey:"@jupyterlab/services",import:null,requiredVersion:"^7.6.5",strictVersion:!1,singleton:!0,eager:!1,fallback:void 0,treeShakingMode:null},501:{shareScope:"default",shareKey:"@jupyterlab/settingregistry",import:null,requiredVersion:"^4.6.5",strictVersion:!1,singleton:!0,eager:!1,fallback:void 0,treeShakingMode:null},810:{shareScope:"default",shareKey:"@jupyterlab/coreutils",import:null,requiredVersion:"^6.6.5",strictVersion:!1,singleton:!0,eager:!1,fallback:void 0,treeShakingMode:null}},initialConsumes:[]},e=function(e){return e.split(".").map(function(e){return+e==e?+e:e})},n=function(n){var r=function(n){var r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(n),t=r[1]?[0].concat(e(r[1])):[0];r[2]&&(t.length++,t.push.apply(t,e(r[2])));let o=t[t.length-1];for(;t.length&&(void 0===o||/^[*xX]$/.test(o));)t.pop(),o=t[t.length-1];return t},t=function(e){return 1===e.length?[0]:2===e.length?[1].concat(e.slice(1)):3===e.length?[2].concat(e.slice(1)):[e.length].concat(e.slice(1))},o=function(e){return[-e[0]-1].concat(e.slice(1))},i=function(e){let n=/^(\^|~|<=|<|>=|>|=|v|!)/.exec(e),i=n?n[0]:"",u=r(i.length?e.slice(i.length).trim():e.trim());switch(i){case"^":if(u.length>1&&0===u[1]){if(u.length>2&&0===u[2])return[3].concat(u.slice(1));return[2].concat(u.slice(1))}return[1].concat(u.slice(1));case"~":return[2].concat(u.slice(1));case">=":return u;case"=":case"v":case"":return t(u);case"<":return o(u);case">":return[,t(u),0,u,2];case"<=":return[,t(u),o(u),1];case"!":return[,t(u),0];default:throw Error("Unexpected start value")}},u=function(e,n){if(1===e.length)return e[0];let r=[];for(let n of e.slice().reverse())0 in n?r.push(n):r.push.apply(r,n.slice(1));return[,].concat(r,e.slice(1).map(()=>n))};return u(n.split(/\s*\|\|\s*/).map(function(e){let n=e.split(/\s+-\s+/);if(1===n.length){e=e.trim();let n=[],r=/[-0-9A-Za-z]\s+/g;for(var a,c=0;a=r.exec(e);){let r=a.index+1;n.push(i(e.slice(c,r).trim())),c=r}return n.push(i(e.slice(c).trim())),u(n,2)}let l=r(n[0]),s=r(n[1]);return[,t(s),o(s),1,l,2]}),1)},r=function(n){var r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(n),t=r[1]?e(r[1]):[];return r[2]&&(t.length++,t.push.apply(t,e(r[2]))),r[3]&&(t.push([]),t.push.apply(t,e(r[3]))),t},t=function(e,n){e=r(e),n=r(n);for(var t=0;;){if(t>=e.length)return t<n.length&&"u"!=(typeof n[t])[0];var o=e[t],i=(typeof o)[0];if(t>=n.length)return"u"==i;var u=n[t],a=(typeof u)[0];if(i==a){if("o"!=i&&"u"!=i&&o!=u)return o<u;t++}else{if("o"==i&&"n"==a)return!0;return"s"==a||"u"==i}}},o=function(e){var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var t=1,i=1;i<e.length;i++){var u=e[i],a=(typeof u)[0];t--,r+="u"==a?"-":(t>0?".":"")+(t=2,u)}return r}for(var c=[],i=1;i<e.length;i++){var u=e[i];c.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?c.pop()+" "+c.pop():o(u))}return l();function l(){return c.pop().replace(/^\((.+)\)$/,"$1")}},i=function(e,n){if(0 in e){n=r(n);var t=e[0],o=t<0;o&&(t=-t-1);for(var u=0,a=1,c=!0;;a++,u++){var l,s,f=a<e.length?(typeof e[a])[0]:"";if(u>=n.length||"o"==(s=(typeof(l=n[u]))[0])){if(!c)return!0;if("u"==f)return a>t&&!o;return""==f!=o}if("u"==s){if(!c||"u"!=f)return!1}else if(c)if(f==s)if(a<=t){if(l!=e[a])return!1}else{if(o?l>e[a]:l<e[a])return!1;l!=e[a]&&(c=!1)}else if("s"!=f&&"n"!=f){if(o||a<=t)return!1;c=!1,a--}else{if(a<=t||s<f!=o)return!1;c=!1}else"s"!=f&&"n"!=f&&(c=!1,a--)}}for(var p=[],d=p.pop.bind(p),u=1;u<e.length;u++){var h=e[u];p.push(1==h?d()|d():2==h?d()&d():h?i(h,n):!d())}return!!d()},u=function(e,n){var r=z.S[e];if(!r||!z.o(r,n))throw Error("Shared module "+n+" doesn't exist in shared scope "+e);return r},a=function(e,n){var r=e[n],n=Object.keys(r).reduce(function(e,n){return!e||t(e,n)?n:e},0);return n&&r[n]},c=function(e,n){var r=e[n];return Object.keys(r).reduce(function(e,n){return!e||!r[e].loaded&&t(e,n)?n:e},0)},l=function(e,n,r,t){return"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+o(t)+")"},s=function(e,n,r,t){var o=c(e,r);return m(e[r][o])},f=function(e,n,r,t){var o=c(e,r);return i(t,o)||g(l(e,r,o,t)),m(e[r][o])},p=function(e,n,r,t){var o=c(e,r);if(!i(t,o))throw Error(l(e,r,o,t));return m(e[r][o])},d=function(e,n,r){var o=e[n],n=Object.keys(o).reduce(function(e,n){return i(r,n)&&(!e||t(e,n))?n:e},0);return n&&o[n]},h=function(e,n,r,t){var i=e[r];return"No satisfying version ("+o(t)+") of shared module "+r+" found in shared scope "+n+".\nAvailable versions: "+Object.keys(i).map(function(e){return e+" from "+i[e].from}).join(", ")},v=function(e,n,r,t){var o=d(e,r,t);if(o)return m(o);throw Error(h(e,n,r,t))},g=function(e){"u">typeof console&&console.warn&&console.warn(e)},y=function(e,n,r,t){g(h(e,n,r,t))},m=function(e){return e.loaded=1,e.get()},S=(b=function(e){return function(n,r,t,o){var i=z.I(n);return i&&i.then?i.then(e.bind(e,n,z.S[n],r,t,o)):e(n,z.S[n],r,t,o)}})(function(e,n,r){return u(e,r),m(a(n,r))}),w=b(function(e,n,r,t){return n&&z.o(n,r)?m(a(n,r)):t()}),k=b(function(e,n,r,t){return u(e,r),m(d(n,r,t)||y(n,e,r,t)||a(n,r))}),j=b(function(e,n,r){return u(e,r),s(n,e,r)}),x=b(function(e,n,r,t){return u(e,r),f(n,e,r,t)}),E=b(function(e,n,r,t){return u(e,r),v(n,e,r,t)}),_=b(function(e,n,r,t){return u(e,r),p(n,e,r,t)}),T=b(function(e,n,r,t,o){return n&&z.o(n,r)?m(d(n,r,t)||y(n,e,r,t)||a(n,r)):o()}),M=b(function(e,n,r,t){return n&&z.o(n,r)?s(n,e,r):t()}),P=b(function(e,n,r,t,o){return n&&z.o(n,r)?f(n,e,r,t):o()}),A=b(function(e,n,r,t,o){var i=n&&z.o(n,r)&&d(n,r,t);return i?m(i):o()}),C=b(function(e,n,r,t,o){return n&&z.o(n,r)?p(n,e,r,t):o()}),O=function(e){var r=!1,t=!1,o=!1,i=!1,u=[e.shareScope,e.shareKey];return(e.requiredVersion?(e.strictVersion&&(r=!0),e.singleton&&(t=!0),u.push(n(e.requiredVersion)),o=!0):e.singleton&&(t=!0),e.fallback&&(i=!0,u.push(e.fallback)),r&&t&&o&&i)?function(){return C.apply(null,u)}:r&&o&&i?function(){return A.apply(null,u)}:t&&o&&i?function(){return P.apply(null,u)}:r&&t&&o?function(){return _.apply(null,u)}:t&&i?function(){return M.apply(null,u)}:o&&i?function(){return T.apply(null,u)}:r&&o?function(){return E.apply(null,u)}:t&&o?function(){return x.apply(null,u)}:t?function(){return j.apply(null,u)}:o?function(){return k.apply(null,u)}:i?function(){return w.apply(null,u)}:function(){return S.apply(null,u)}},D={},z.f.consumes=function(e,n){var r=z.consumesLoadingData.moduleIdToConsumeDataMapping,t=z.consumesLoadingData.chunkMapping;z.o(t,e)&&t[e].forEach(function(e){if(z.o(D,e))return n.push(D[e]);var t=function(n){D[e]=0,z.m[e]=function(r){delete z.c[e],r.exports=n()}},o=function(n){delete D[e],z.m[e]=function(r){throw delete z.c[e],n}};try{var i=O(r[e])();i.then?n.push(D[e]=i.then(t).catch(o)):t(i)}catch(e){o(e)}})},q={104:0},z.f.j=function(e,n){var r=z.o(q,e)?q[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var t=new Promise((n,t)=>r=q[e]=[n,t]);n.push(r[2]=t);var o=z.p+z.u(e),i=Error();z.l(o,function(n){if(z.o(q,e)&&(0!==(r=q[e])&&(q[e]=void 0),r)){var t=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+e+" failed.\n("+t+": "+o+")",i.name="ChunkLoadError",i.type=t,i.request=o,r[1](i)}},"chunk-"+e,e)}},L=(e,n)=>{var r,t,[o,i,u]=n,a=0;if(o.some(e=>0!==q[e])){for(r in i)z.o(i,r)&&(z.m[r]=i[r]);u&&u(z)}for(e&&e(n);a<o.length;a++)t=o[a],z.o(q,t)&&q[t]&&q[t][0](),q[t]=0},(V=self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension=self.rspackChunk_stellarshenson_jupyterlab_advanced_code_viewer_extension||[]).forEach(L.bind(null,0)),V.push=L.bind(null,V.push.bind(V));var F=z(332);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["@stellarshenson/jupyterlab-advanced-code-viewer-extension"]=F})();
@@ -0,0 +1,4 @@
1
+ /* This is a generated file of CSS imports */
2
+ /* It was generated by @jupyter/builder in Build.ensureAssets() */
3
+
4
+ import '@stellarshenson/jupyterlab-advanced-code-viewer-extension/style/index.js';
@@ -0,0 +1,16 @@
1
+ {
2
+ "packages": [
3
+ {
4
+ "name": "css-loader",
5
+ "versionInfo": "7.1.5",
6
+ "licenseId": "MIT",
7
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
8
+ },
9
+ {
10
+ "name": "style-loader",
11
+ "versionInfo": "4.0.0",
12
+ "licenseId": "MIT",
13
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,122 @@
1
+ Metadata-Version: 2.5
2
+ Name: jupyterlab_advanced_code_viewer_extension
3
+ Version: 0.1.2
4
+ Summary: Follow a notebook or a source file while an AI agent writes it, see each change in the editor as you work, and mark and comment on code with notes stored in the file
5
+ Project-URL: Homepage, https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension
6
+ Project-URL: Bug Tracker, https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension/issues
7
+ Project-URL: Repository, https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension.git
8
+ Author-email: Stellars Henson <konrad.jelen@gmail.com>
9
+ License-Expression: BSD-3-Clause
10
+ License-File: LICENSE
11
+ Keywords: jupyter,jupyterlab,jupyterlab-extension
12
+ Classifier: Framework :: Jupyter
13
+ Classifier: Framework :: Jupyter :: JupyterLab
14
+ Classifier: Framework :: Jupyter :: JupyterLab :: 4
15
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
16
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: 3.14
24
+ Requires-Python: >=3.10
25
+ Requires-Dist: jupyter-server<3,>=2.21
26
+ Provides-Extra: dev
27
+ Requires-Dist: coverage<8,>=7.17; extra == 'dev'
28
+ Requires-Dist: jupyter-builder<2,>=1.2; extra == 'dev'
29
+ Requires-Dist: jupyterlab<5,>=4.6; extra == 'dev'
30
+ Requires-Dist: pytest-asyncio<2,>=1.4; extra == 'dev'
31
+ Requires-Dist: pytest-cov<8,>=7.1; extra == 'dev'
32
+ Requires-Dist: pytest-jupyter[server]<1,>=0.11; extra == 'dev'
33
+ Requires-Dist: pytest<10,>=9.2; extra == 'dev'
34
+ Provides-Extra: test
35
+ Requires-Dist: coverage<8,>=7.17; extra == 'test'
36
+ Requires-Dist: jupyterlab<5,>=4.6; extra == 'test'
37
+ Requires-Dist: pytest-asyncio<2,>=1.4; extra == 'test'
38
+ Requires-Dist: pytest-cov<8,>=7.1; extra == 'test'
39
+ Requires-Dist: pytest-jupyter[server]<1,>=0.11; extra == 'test'
40
+ Requires-Dist: pytest<10,>=9.2; extra == 'test'
41
+ Description-Content-Type: text/markdown
42
+
43
+ # jupyterlab_advanced_code_viewer_extension
44
+
45
+ [![GitHub Actions](https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension/actions/workflows/build.yml/badge.svg)](https://github.com/stellarshenson/jupyterlab_advanced_code_viewer_extension/actions/workflows/build.yml)
46
+ [![npm version](https://img.shields.io/npm/v/@stellarshenson/jupyterlab-advanced-code-viewer-extension.svg)](https://www.npmjs.com/package/@stellarshenson/jupyterlab-advanced-code-viewer-extension)
47
+ [![PyPI version](https://img.shields.io/pypi/v/jupyterlab-advanced-code-viewer-extension.svg)](https://pypi.org/project/jupyterlab-advanced-code-viewer-extension/)
48
+ [![Total PyPI downloads](https://static.pepy.tech/badge/jupyterlab-advanced-code-viewer-extension)](https://pepy.tech/project/jupyterlab-advanced-code-viewer-extension)
49
+ [![JupyterLab 4](https://img.shields.io/badge/JupyterLab-4-orange.svg)](https://jupyterlab.readthedocs.io/en/stable/)
50
+ [![Brought To You By KOLOMOLO](https://img.shields.io/badge/Brought%20To%20You%20By-KOLOMOLO-00ffff?style=flat)](https://kolomolo.com)
51
+ [![Donate PayPal](https://img.shields.io/badge/Donate-PayPal-blue?style=flat)](https://www.paypal.com/donate/?hosted_button_id=B4KPBJDLLXTSA)
52
+
53
+ You work in JupyterLab while an AI agent in the lab terminal writes the same notebooks and source files on disk. This extension shows the agent's changes in the open document as they are written, keeps your unsaved edits, and lets you direct the agent with comments stored in the file, where the agent reads and answers them.
54
+
55
+ It works while you edit. It runs inside the notebook and inside the file editor, adds no separate viewer and has no mode to enter: every function is active in a notebook's command mode and edit mode, in a rendered and in an unrendered Markdown cell, and in the file editor while you type. Settings switch single functions on and off.
56
+
57
+ It covers notebooks (`.ipynb`) and every text file the JupyterLab file editor opens, such as `.py`, `.ts`, `.rs`, `.sh` and `.yaml`. The first case it is built for: the agent executes a notebook with `jupyter nbconvert --to notebook --execute --inplace`, and the notebook you have open shows the new cells and outputs.
58
+
59
+ > [!NOTE]
60
+ > The extension is built in four releases, listed under [Releases](#releases). None is built yet; the features below describe the finished extension.
61
+
62
+ ## Features
63
+
64
+ - **Changes show while you type** - a change another program writes to the file shows in the open editor within half a second; added text is painted green, removed text is struck through on red
65
+ - **Your edits are kept** - a change from disk lands around your unsaved edits; where it overlaps them your text stands and the tab shows a red square
66
+ - **Your place is kept** - a change from disk moves neither the cursor nor the selection, takes no focus, keeps the text in view where it is, and never appears in your undo history
67
+ - **No File Changed dialog** - a disk change the extension has applied raises no dialog, and a save never overwrites a disk change it has not applied
68
+ - **Notebooks change in place** - cells added, removed, moved and changed on disk show in the open notebook, outputs and execution counts included; scroll position, selection, active cell and the kernel session stay
69
+ - **Mark and comment on code** - six colours, comment threads, notes on a passage or on the whole document, listed in a panel beside the editor and grouped by cell in a notebook
70
+ - **Notes are stored in the file** - as comment lines in the file's language, as HTML comments in a Markdown cell, as cell metadata for a stored output; a marker never changes what the program does
71
+ - **Tab icons** - a half-filled circle for a new change, a red square for a change held back, a cross for a deleted file
72
+ - **Agent skill** - teaches an AI assistant the marker form per language, where markers may go in code, and how to answer and close a comment
73
+
74
+ ## Sibling extensions
75
+
76
+ The extension brings the functions of two read-only viewers to code. Marks use the same grammar in all three, so an agent that knows one of them can work in each.
77
+
78
+ | Sibling | What it does | What this extension takes from it |
79
+ | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
80
+ | [jupyterlab_advanced_markdown_viewer_extension](https://github.com/stellarshenson/jupyterlab_advanced_markdown_viewer_extension) | Follows a Markdown file in the Markdown Preview, shows each change, and keeps marks and comments in the file as HTML comments | Following, change display, the rule for unsaved edits, tab icons, mark grammar, notes panel, agent skill, setting names |
81
+ | [jupyterlab_advanced_html_viewer_extension](https://github.com/stellarshenson/jupyterlab_advanced_html_viewer_extension) | Shows an HTML file with trust and refresh, and adds the same marks and notes panel | The rule that only text written in the file takes a comment |
82
+
83
+ ## Releases
84
+
85
+ Following comes before marks, because a mark must stay on its text while the file changes.
86
+
87
+ | Release | What you can do when it is complete | Status |
88
+ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
89
+ | 1 | Type in a source file while an agent writes the same file; each change appears with the cursor in place and without JupyterLab's File Changed dialog | Not built |
90
+ | 2 | Keep a notebook open while an agent edits or executes it on disk; cells and outputs change in place | Not built |
91
+ | 3 | Mark a passage of a source file and write a comment; the agent answers in the same thread, and the marker does not change what the program does | Not built |
92
+ | 4 | The same in a notebook: Markdown cells, code cells and stored outputs | Not built |
93
+
94
+ ## Limitations
95
+
96
+ - Outputs that `jupyter nbconvert --execute` writes come from another kernel process, so the kernel of the open notebook does not hold those variables
97
+ - Text that a script or a widget draws in an output takes no comment; only text stored in the file does
98
+ - A file kind without a comment syntax, such as JSON or CSV, takes no mark
99
+ - A single change cannot be accepted or rejected on its own
100
+ - There is no separate read-only viewer for notebooks or source files
101
+ - Notes are stored in the document, never in a separate file beside it
102
+ - Each of the three extensions carries its own copy of the notes code; there is no shared package
103
+
104
+ ## Requirements
105
+
106
+ - JupyterLab 4.6 or later
107
+
108
+ ## Install
109
+
110
+ To install the extension, execute:
111
+
112
+ ```bash
113
+ pip install jupyterlab_advanced_code_viewer_extension
114
+ ```
115
+
116
+ ## Uninstall
117
+
118
+ To remove the extension, execute:
119
+
120
+ ```bash
121
+ pip uninstall jupyterlab_advanced_code_viewer_extension
122
+ ```
@@ -0,0 +1,27 @@
1
+ jupyterlab_advanced_code_viewer_extension/__init__.py,sha256=rpEeK69bRByD40fAUeoUtzn78ccvn9w2Dwh3GAe-Bys,1242
2
+ jupyterlab_advanced_code_viewer_extension/_version.py,sha256=vYZ6rLVUw05xbWIGie5W7cVk18sWwVN72cGSZ2ngSYU,171
3
+ jupyterlab_advanced_code_viewer_extension/routes.py,sha256=ziekspKGAPWl7QNIuzu8NNTVlU8SVsKFHqdbLDOnhyY,981
4
+ jupyterlab_advanced_code_viewer_extension/labextension/package.json,sha256=pJRPn6GF4X7xzqXbQ9ybbWQFkoHTZe8F9PGycOWwsbQ,5119
5
+ jupyterlab_advanced_code_viewer_extension/labextension/schemas/@stellarshenson/jupyterlab-advanced-code-viewer-extension/package.json.orig,sha256=tlGmrEo6dryAvSJTOOna--q30PDptqlNszaZcW4qNe0,5579
6
+ jupyterlab_advanced_code_viewer_extension/labextension/schemas/@stellarshenson/jupyterlab-advanced-code-viewer-extension/plugin.json,sha256=gXVAGH8_pAiinS90ocTxwW__J0ocIJcgblgQ_tEDeM4,267
7
+ jupyterlab_advanced_code_viewer_extension/labextension/static/232.ba615dd6803b2beb.js,sha256=_HozJJ-w8bVDr-lu5G2skTV6cPfM-_aMKZeBvMXFGck,3959
8
+ jupyterlab_advanced_code_viewer_extension/labextension/static/571.ea54f6c6bb484b45.js,sha256=CAmp5o8FENqCarTHLbnq7SOFinn1R03fE_jpP1XNcD4,1484
9
+ jupyterlab_advanced_code_viewer_extension/labextension/static/remoteEntry.430b6c2ebff20df0.js,sha256=Kb57Hd09ikWPMq21lsgEo5qzYGfVfAVQRuLsxQHeLkA,11855
10
+ jupyterlab_advanced_code_viewer_extension/labextension/static/style.js,sha256=90_fGt00WPJ0QfM48ScusiBXL7u1TG3OJIkaTHxNtx0,197
11
+ jupyterlab_advanced_code_viewer_extension/labextension/static/third-party-licenses.json,sha256=h8NCshKcUEEo1ImHGADuAVUZatWyiXjwXUGzGxIN-TE,2452
12
+ jupyterlab_advanced_code_viewer_extension/tests/__init__.py,sha256=PZxDFjIgYrlDWy-e9bIzMKIUkIauh5Cqfb07NYMh3jQ,71
13
+ jupyterlab_advanced_code_viewer_extension/tests/test_routes.py,sha256=zCCLIUzW4PBTn-8sp5vq1kcfm6DJl3bOdY6IhVADM7c,950
14
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/etc/jupyter/jupyter_server_config.d/jupyterlab_advanced_code_viewer_extension.json,sha256=T3dGgiOOBfB8IQ82Tq8udMXEKWKfNY-8k2BXSASGa7k,116
15
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/package.json,sha256=pJRPn6GF4X7xzqXbQ9ybbWQFkoHTZe8F9PGycOWwsbQ,5119
16
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/schemas/@stellarshenson/jupyterlab-advanced-code-viewer-extension/package.json.orig,sha256=tlGmrEo6dryAvSJTOOna--q30PDptqlNszaZcW4qNe0,5579
17
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/schemas/@stellarshenson/jupyterlab-advanced-code-viewer-extension/plugin.json,sha256=gXVAGH8_pAiinS90ocTxwW__J0ocIJcgblgQ_tEDeM4,267
18
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/232.ba615dd6803b2beb.js,sha256=_HozJJ-w8bVDr-lu5G2skTV6cPfM-_aMKZeBvMXFGck,3959
19
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/571.ea54f6c6bb484b45.js,sha256=CAmp5o8FENqCarTHLbnq7SOFinn1R03fE_jpP1XNcD4,1484
20
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/remoteEntry.430b6c2ebff20df0.js,sha256=Kb57Hd09ikWPMq21lsgEo5qzYGfVfAVQRuLsxQHeLkA,11855
21
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/style.js,sha256=90_fGt00WPJ0QfM48ScusiBXL7u1TG3OJIkaTHxNtx0,197
22
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/static/third-party-licenses.json,sha256=h8NCshKcUEEo1ImHGADuAVUZatWyiXjwXUGzGxIN-TE,2452
23
+ jupyterlab_advanced_code_viewer_extension-0.1.2.data/data/share/jupyter/labextensions/@stellarshenson/jupyterlab-advanced-code-viewer-extension/install.json,sha256=E0DCVJ93j5OwMdWONldtakMlHboiEW5D-brgH_jNJ7c,243
24
+ jupyterlab_advanced_code_viewer_extension-0.1.2.dist-info/METADATA,sha256=IGuUY6iSbMy01ms2tmkhj7XzakQPOGj7P5OYTcvv__8,9875
25
+ jupyterlab_advanced_code_viewer_extension-0.1.2.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
26
+ jupyterlab_advanced_code_viewer_extension-0.1.2.dist-info/licenses/LICENSE,sha256=5WO6BCE6llvhQT-r4BgmmbzCtABwpeGuJse1ab3HXFo,1523
27
+ jupyterlab_advanced_code_viewer_extension-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Stellars Henson
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.