qsharp-jupyterlab 0.0.11__py3-none-any.whl → 1.0.5.dev0__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.
Potentially problematic release.
This version of qsharp-jupyterlab might be problematic. Click here for more details.
- qsharp-jupyterlab/_version.py +1 -1
- {qsharp_jupyterlab-0.0.11.data → qsharp_jupyterlab-1.0.5.dev0.data}/data/share/jupyter/labextensions/qsharp-jupyterlab/package.json +2 -2
- qsharp_jupyterlab-1.0.5.dev0.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/remoteEntry.9924674081097940fc58.js +1 -0
- qsharp_jupyterlab-1.0.5.dev0.dist-info/METADATA +47 -0
- qsharp_jupyterlab-1.0.5.dev0.dist-info/RECORD +12 -0
- qsharp_jupyterlab-0.0.11.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/remoteEntry.1540a3ce324b2e6b4d60.js +0 -1
- qsharp_jupyterlab-0.0.11.dist-info/METADATA +0 -81
- qsharp_jupyterlab-0.0.11.dist-info/RECORD +0 -12
- {qsharp_jupyterlab-0.0.11.data → qsharp_jupyterlab-1.0.5.dev0.data}/data/share/jupyter/labextensions/qsharp-jupyterlab/install.json +0 -0
- {qsharp_jupyterlab-0.0.11.data → qsharp_jupyterlab-1.0.5.dev0.data}/data/share/jupyter/labextensions/qsharp-jupyterlab/static/362.b9db0c8262cee1593fc2.js +0 -0
- {qsharp_jupyterlab-0.0.11.data → qsharp_jupyterlab-1.0.5.dev0.data}/data/share/jupyter/labextensions/qsharp-jupyterlab/static/style.js +0 -0
- {qsharp_jupyterlab-0.0.11.data → qsharp_jupyterlab-1.0.5.dev0.data}/data/share/jupyter/labextensions/qsharp-jupyterlab/static/third-party-licenses.json +0 -0
- {qsharp_jupyterlab-0.0.11.dist-info → qsharp_jupyterlab-1.0.5.dev0.dist-info}/WHEEL +0 -0
qsharp-jupyterlab/_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qsharp-jupyterlab",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.0",
|
|
4
4
|
"description": "Q# extension for JupyterLab",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"extension": true,
|
|
47
47
|
"outputDir": "qsharp-jupyterlab/labextension",
|
|
48
48
|
"_build": {
|
|
49
|
-
"load": "static\\remoteEntry.
|
|
49
|
+
"load": "static\\remoteEntry.9924674081097940fc58.js",
|
|
50
50
|
"extension": "./extension"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,a,i,u,l,s,f,p,d,c,h,v,b={979:(e,r,t)=>{var n={"./index":()=>t.e(362).then((()=>()=>t(362))),"./extension":()=>t.e(362).then((()=>()=>t(362)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},g={};function m(e){var r=g[e];if(void 0!==r)return r.exports;var t=g[e]={exports:{}};return b[e](t,t.exports,m),t.exports}m.m=b,m.c=g,m.d=(e,r)=>{for(var t in r)m.o(r,t)&&!m.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},m.f={},m.e=e=>Promise.all(Object.keys(m.f).reduce(((r,t)=>(m.f[t](e,r),r)),[])),m.u=e=>e+".b9db0c8262cee1593fc2.js?v=b9db0c8262cee1593fc2",m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),m.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="qsharp-jupyterlab:",m.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){i=f;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,m.nc&&i.setAttribute("nonce",m.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),u&&document.head.appendChild(i)}},m.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{m.S={};var e={},r={};m.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];m.o(m.S,t)||(m.S[t]={});var a=m.S[t],i="qsharp-jupyterlab",u=[];return"default"===t&&((e,r,t,n)=>{var o=a[e]=a[e]||{},u=o[r];(!u||!u.loaded&&(1!=!u.eager?n:i>u.from))&&(o[r]={get:()=>m.e(362).then((()=>()=>m(362))),from:i,eager:!1})})("qsharp-jupyterlab","0.0.0"),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;m.g.importScripts&&(e=m.g.location+"");var r=m.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),m.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],u=(typeof i)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(u=e[a]))[0]?"-":(n>0?".":"")+(n=2,u);return t}var i=[];for(a=1;a<e.length;a++){var u=e[a];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():o(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,u=1,l=!0;;u++,i++){var s,f,p=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(f=(typeof(s=r[i]))[0]))return!l||("u"==p?u>n&&!o:""==p!=o);if("u"==f){if(!l||"u"!=p)return!1}else if(l)if(p==f)if(u<=n){if(s!=e[u])return!1}else{if(o?s>e[u]:s<e[u])return!1;s!=e[u]&&(l=!1)}else if("s"!=p&&"n"!=p){if(o||u<=n)return!1;l=!1,u--}else{if(u<=n||f<p!=o)return!1;l=!1}else"s"!=p&&"n"!=p&&(l=!1,u--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?a(h,r):!c())}return!!c()},i=(e,r)=>{var t=m.S[e];if(!t||!m.o(t,r))throw new Error("Shared module "+r+" doesn't exist in shared scope "+e);return t},u=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=u(e,t);return a(n,o)||f(l(e,t,o,n)),p(e[t][o])},f=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},p=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=m.I(r);return a&&a.then?a.then(e.bind(e,r,m.S[r],t,n,o)):e(r,m.S[r],t,n)})(((e,r,t,n)=>(i(e,t),s(r,0,t,n)))),c={},h={390:()=>d("default","@jupyterlab/codemirror",[1,4,0,0]),373:()=>d("default","@codemirror/language",[1,6,0,0]),897:()=>d("default","@jupyterlab/notebook",[1,4,0,0])},v={362:[390,373,897]},m.f.consumes=(e,r)=>{m.o(v,e)&&v[e].forEach((e=>{if(m.o(c,e))return r.push(c[e]);var t=r=>{c[e]=0,m.m[e]=t=>{delete m.c[e],t.exports=r()}},n=r=>{delete c[e],m.m[e]=t=>{throw delete m.c[e],r}};try{var o=h[e]();o.then?r.push(c[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={270:0};m.f.j=(r,t)=>{var n=m.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=m.p+m.u(r),i=new Error;m.l(a,(t=>{if(m.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,u]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)m.o(i,n)&&(m.m[n]=i[n]);u&&u(m)}for(r&&r(t);l<a.length;l++)o=a[l],m.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkqsharp_jupyterlab=self.webpackChunkqsharp_jupyterlab||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var y=m(979);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["qsharp-jupyterlab"]=y})();
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: qsharp-jupyterlab
|
|
3
|
+
Version: 1.0.5.dev0
|
|
4
|
+
Summary: Q# extension for JupyterLab
|
|
5
|
+
Project-URL: Homepage, https://github.com/microsoft/qsharp
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/microsoft/qsharp/issues
|
|
7
|
+
Project-URL: Repository, https://github.com/microsoft/qsharp.git
|
|
8
|
+
Author: Microsoft
|
|
9
|
+
Classifier: Framework :: Jupyter
|
|
10
|
+
Classifier: Framework :: Jupyter :: JupyterLab
|
|
11
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
12
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
|
|
13
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Requires-Python: >=3.7
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# Q# Language Support for JupyterLab
|
|
26
|
+
|
|
27
|
+
Q# is an open-source, high-level programming language for developing and running quantum algorithms.
|
|
28
|
+
The `qsharp-jupyterlab` extension provides syntax highlighting for Q# documents and Q# notebook
|
|
29
|
+
cells in JupyterLab.
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
To install the Q# JupyterLab extension, run:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install qsharp-jupyterlab
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
To run Q# in Jupyter notebooks, remember to also install the `qsharp-lang` package: [https://pypi.org/project/qsharp-lang].
|
|
40
|
+
|
|
41
|
+
## Support
|
|
42
|
+
|
|
43
|
+
For more documentation and to browse issues, please visit the Q# project wiki at [https://github.com/microsoft/qsharp/wiki].
|
|
44
|
+
|
|
45
|
+
## Contributing
|
|
46
|
+
|
|
47
|
+
Q# welcomes your contributions! Visit the Q# GitHub repository at [https://github.com/microsoft/qsharp] to find out more about the project.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
setup.py,sha256=wemxTobZ39ajO7IlospqgSkebOTG2oZG4pPzQxr3YcI,33
|
|
2
|
+
qsharp-jupyterlab/__init__.py,sha256=bgSJBXrB38scWb4CPf9WrAsERIG7tIffU4VasZKvk5M,160
|
|
3
|
+
qsharp-jupyterlab/_version.py,sha256=BX7BH-YPlKzkSwwo6_MSW1sqL75nbUF86szB_WGdmaQ,180
|
|
4
|
+
qsharp_jupyterlab-1.0.5.dev0.data/data/share/jupyter/labextensions/qsharp-jupyterlab/package.json,sha256=K2OUDRkbWMGoyy7xyh7WhU-Vgp4hhy1qN7-HGNiD9QM,1465
|
|
5
|
+
qsharp_jupyterlab-1.0.5.dev0.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/362.b9db0c8262cee1593fc2.js,sha256=udsMgmLO4Vk_wm129TnstFdn5PYrgrPZkhbu1F9NBTQ,4419
|
|
6
|
+
qsharp_jupyterlab-1.0.5.dev0.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/remoteEntry.9924674081097940fc58.js,sha256=mSRnQIEJeUD8WIb4wCjSa84p17-yQuQH8LrW9czTWZk,6292
|
|
7
|
+
qsharp_jupyterlab-1.0.5.dev0.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/style.js,sha256=-CQt0ZTPaCTvrRiLcznxflAbfvIKlOVzjOos-muaXQ8,118
|
|
8
|
+
qsharp_jupyterlab-1.0.5.dev0.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/third-party-licenses.json,sha256=XFJ7K-RsjbmcZ7plOTH9ztLIePgc7gYB3fLZMgCD8Lw,1302
|
|
9
|
+
qsharp_jupyterlab-1.0.5.dev0.data/data/share/jupyter/labextensions/qsharp-jupyterlab/install.json,sha256=-9VH99CUJ1tP9D6ykoRRe_R3qf2eEu-rSl0gJb9Rs4s,195
|
|
10
|
+
qsharp_jupyterlab-1.0.5.dev0.dist-info/METADATA,sha256=fdso4TrbYhdJ1nnFPEODhMqv-TBTOMHRPBO1_vN-Gcc,1821
|
|
11
|
+
qsharp_jupyterlab-1.0.5.dev0.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
12
|
+
qsharp_jupyterlab-1.0.5.dev0.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,a,i,u,l,s,f,p,d,c,h,v,b={979:(e,r,t)=>{var n={"./index":()=>t.e(362).then((()=>()=>t(362))),"./extension":()=>t.e(362).then((()=>()=>t(362)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},g={};function m(e){var r=g[e];if(void 0!==r)return r.exports;var t=g[e]={exports:{}};return b[e](t,t.exports,m),t.exports}m.m=b,m.c=g,m.d=(e,r)=>{for(var t in r)m.o(r,t)&&!m.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},m.f={},m.e=e=>Promise.all(Object.keys(m.f).reduce(((r,t)=>(m.f[t](e,r),r)),[])),m.u=e=>e+".b9db0c8262cee1593fc2.js?v=b9db0c8262cee1593fc2",m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),m.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="qsharp-jupyterlab:",m.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){i=f;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,m.nc&&i.setAttribute("nonce",m.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),u&&document.head.appendChild(i)}},m.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{m.S={};var e={},r={};m.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];m.o(m.S,t)||(m.S[t]={});var a=m.S[t],i="qsharp-jupyterlab",u=[];return"default"===t&&((e,r,t,n)=>{var o=a[e]=a[e]||{},u=o[r];(!u||!u.loaded&&(1!=!u.eager?n:i>u.from))&&(o[r]={get:()=>m.e(362).then((()=>()=>m(362))),from:i,eager:!1})})("qsharp-jupyterlab","0.0.11"),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;m.g.importScripts&&(e=m.g.location+"");var r=m.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),m.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],u=(typeof i)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(u=e[a]))[0]?"-":(n>0?".":"")+(n=2,u);return t}var i=[];for(a=1;a<e.length;a++){var u=e[a];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():o(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,u=1,l=!0;;u++,i++){var s,f,p=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(f=(typeof(s=r[i]))[0]))return!l||("u"==p?u>n&&!o:""==p!=o);if("u"==f){if(!l||"u"!=p)return!1}else if(l)if(p==f)if(u<=n){if(s!=e[u])return!1}else{if(o?s>e[u]:s<e[u])return!1;s!=e[u]&&(l=!1)}else if("s"!=p&&"n"!=p){if(o||u<=n)return!1;l=!1,u--}else{if(u<=n||f<p!=o)return!1;l=!1}else"s"!=p&&"n"!=p&&(l=!1,u--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?a(h,r):!c())}return!!c()},i=(e,r)=>{var t=m.S[e];if(!t||!m.o(t,r))throw new Error("Shared module "+r+" doesn't exist in shared scope "+e);return t},u=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=u(e,t);return a(n,o)||f(l(e,t,o,n)),p(e[t][o])},f=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},p=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=m.I(r);return a&&a.then?a.then(e.bind(e,r,m.S[r],t,n,o)):e(r,m.S[r],t,n)})(((e,r,t,n)=>(i(e,t),s(r,0,t,n)))),c={},h={390:()=>d("default","@jupyterlab/codemirror",[1,4,0,0]),373:()=>d("default","@codemirror/language",[1,6,0,0]),897:()=>d("default","@jupyterlab/notebook",[1,4,0,0])},v={362:[390,373,897]},m.f.consumes=(e,r)=>{m.o(v,e)&&v[e].forEach((e=>{if(m.o(c,e))return r.push(c[e]);var t=r=>{c[e]=0,m.m[e]=t=>{delete m.c[e],t.exports=r()}},n=r=>{delete c[e],m.m[e]=t=>{throw delete m.c[e],r}};try{var o=h[e]();o.then?r.push(c[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={270:0};m.f.j=(r,t)=>{var n=m.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=m.p+m.u(r),i=new Error;m.l(a,(t=>{if(m.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,u]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)m.o(i,n)&&(m.m[n]=i[n]);u&&u(m)}for(r&&r(t);l<a.length;l++)o=a[l],m.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkqsharp_jupyterlab=self.webpackChunkqsharp_jupyterlab||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var y=m(979);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["qsharp-jupyterlab"]=y})();
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: qsharp-jupyterlab
|
|
3
|
-
Version: 0.0.11
|
|
4
|
-
Summary: Q# extension for JupyterLab
|
|
5
|
-
Project-URL: Homepage, https://github.com/microsoft/qsharp
|
|
6
|
-
Project-URL: Bug Tracker, https://github.com/microsoft/qsharp/issues
|
|
7
|
-
Project-URL: Repository, https://github.com/microsoft/qsharp.git
|
|
8
|
-
Author: Microsoft
|
|
9
|
-
Classifier: Framework :: Jupyter
|
|
10
|
-
Classifier: Framework :: Jupyter :: JupyterLab
|
|
11
|
-
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
12
|
-
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
|
|
13
|
-
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
|
|
14
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
-
Classifier: Programming Language :: Python
|
|
16
|
-
Classifier: Programming Language :: Python :: 3
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
-
Requires-Python: >=3.7
|
|
23
|
-
Description-Content-Type: text/markdown
|
|
24
|
-
|
|
25
|
-
# Q# extension for JupyterLab
|
|
26
|
-
|
|
27
|
-
## Prerequisites
|
|
28
|
-
|
|
29
|
-
You will need to install `jupyterlab` to build and develop the extension.
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
pip install jupyterlab==4.0.0
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## A note about `yarn`
|
|
36
|
-
|
|
37
|
-
The `jlpm` command used below is an alias for `yarn` which comes bundled with Jupyter.
|
|
38
|
-
|
|
39
|
-
This folder is not part of the `npm` workspace that is defined at the root of this repo.
|
|
40
|
-
This is intentional, since Jupyter extension tooling depends on `jlpm`, which expects a
|
|
41
|
-
`yarn`-style workspace and a `yarn.lock` file.
|
|
42
|
-
|
|
43
|
-
## Building
|
|
44
|
-
|
|
45
|
-
To build and install the extension in development mode, from the `jupyterlab` directory run:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
pip install -e .
|
|
49
|
-
# The below command creates a symlink from JupyterLab's
|
|
50
|
-
# extensions directory to the current source directory.
|
|
51
|
-
jupyter labextension develop . --overwrite
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
To start JupyterLab and use the extension, run:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
jupyter lab
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
To rebuild after making source changes, run:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
jlpm build
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
Then refresh the browser.
|
|
67
|
-
|
|
68
|
-
## Uninstalling
|
|
69
|
-
|
|
70
|
-
Remove the `pip` package by running:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
pip uninstall qsharp-jupyterlab
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
You will also need to remove the symlink created by `jupyter labextension develop`
|
|
77
|
-
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions` folder is located. Then you can remove the symlink named `qsharp-jupyterlab` within that folder.
|
|
78
|
-
|
|
79
|
-
## Releasing
|
|
80
|
-
|
|
81
|
-
The extension can be published to `PyPI` and `npm` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
setup.py,sha256=wemxTobZ39ajO7IlospqgSkebOTG2oZG4pPzQxr3YcI,33
|
|
2
|
-
qsharp-jupyterlab/__init__.py,sha256=bgSJBXrB38scWb4CPf9WrAsERIG7tIffU4VasZKvk5M,160
|
|
3
|
-
qsharp-jupyterlab/_version.py,sha256=3eeAG_zmFfyA_ZIzEX3lVSd8sW32YL27YbTqwVm7ak0,176
|
|
4
|
-
qsharp_jupyterlab-0.0.11.data/data/share/jupyter/labextensions/qsharp-jupyterlab/package.json,sha256=IkRd_M5mvb8-mftBnuy9Y4xVQKDwifKzznmy-FVWO0Y,1466
|
|
5
|
-
qsharp_jupyterlab-0.0.11.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/362.b9db0c8262cee1593fc2.js,sha256=udsMgmLO4Vk_wm129TnstFdn5PYrgrPZkhbu1F9NBTQ,4419
|
|
6
|
-
qsharp_jupyterlab-0.0.11.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/remoteEntry.1540a3ce324b2e6b4d60.js,sha256=FUCjzjJLLmtNYFJkGCNJ5L3jF_P2RwZi2AUF-rBpz3k,6293
|
|
7
|
-
qsharp_jupyterlab-0.0.11.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/style.js,sha256=-CQt0ZTPaCTvrRiLcznxflAbfvIKlOVzjOos-muaXQ8,118
|
|
8
|
-
qsharp_jupyterlab-0.0.11.data/data/share/jupyter/labextensions/qsharp-jupyterlab/static/third-party-licenses.json,sha256=XFJ7K-RsjbmcZ7plOTH9ztLIePgc7gYB3fLZMgCD8Lw,1302
|
|
9
|
-
qsharp_jupyterlab-0.0.11.data/data/share/jupyter/labextensions/qsharp-jupyterlab/install.json,sha256=-9VH99CUJ1tP9D6ykoRRe_R3qf2eEu-rSl0gJb9Rs4s,195
|
|
10
|
-
qsharp_jupyterlab-0.0.11.dist-info/METADATA,sha256=hcsEcsJq6fAhNAc9wgrPg05vWaO34txylt1DFLqR1rs,2552
|
|
11
|
-
qsharp_jupyterlab-0.0.11.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
12
|
-
qsharp_jupyterlab-0.0.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|