mitosheet 0.2.32__py2.py3-none-any.whl → 0.2.50__py2.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 (23) hide show
  1. mitosheet/__init__.py +6 -0
  2. mitosheet/api/get_defined_df_names.py +1 -1
  3. mitosheet/enterprise/mito_config.py +4 -1
  4. mitosheet/labextension/package.json +2 -2
  5. mitosheet-0.2.32.data/data/share/jupyter/labextensions/mitosheet/static/339.eda8a5c78fd57012d536.js → mitosheet/labextension/static/339.53f78db5b4beeb902f70.js +1 -1
  6. mitosheet/labextension/static/{remoteEntry.6682c205d16d5b902427.js → remoteEntry.8d8431c3cef326a8e05b.js} +1 -1
  7. mitosheet/save_paths.py +10 -1
  8. mitosheet/user/create.py +20 -2
  9. mitosheet/user/location.py +1 -1
  10. mitosheet/user/utils.py +14 -1
  11. mitosheet/utils.py +1 -1
  12. {mitosheet-0.2.32.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/package.json +2 -2
  13. mitosheet/labextension/static/339.eda8a5c78fd57012d536.js → mitosheet-0.2.50.data/data/share/jupyter/labextensions/mitosheet/static/339.53f78db5b4beeb902f70.js +1 -1
  14. mitosheet-0.2.32.data/data/share/jupyter/labextensions/mitosheet/static/remoteEntry.6682c205d16d5b902427.js → mitosheet-0.2.50.data/data/share/jupyter/labextensions/mitosheet/static/remoteEntry.8d8431c3cef326a8e05b.js +1 -1
  15. {mitosheet-0.2.32.dist-info → mitosheet-0.2.50.dist-info}/METADATA +6 -4
  16. {mitosheet-0.2.32.dist-info → mitosheet-0.2.50.dist-info}/RECORD +23 -23
  17. {mitosheet-0.2.32.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/static/405.4dea6fd8e64e4dc9015a.js +0 -0
  18. {mitosheet-0.2.32.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/static/509.9cd86a57778b85719494.js +0 -0
  19. {mitosheet-0.2.32.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/static/style.js +0 -0
  20. {mitosheet-0.2.32.data → mitosheet-0.2.50.data}/data/share/jupyter/labextensions/mitosheet/static/third-party-licenses.json +0 -0
  21. {mitosheet-0.2.32.dist-info → mitosheet-0.2.50.dist-info}/LICENSE.txt +0 -0
  22. {mitosheet-0.2.32.dist-info → mitosheet-0.2.50.dist-info}/WHEEL +0 -0
  23. {mitosheet-0.2.32.dist-info → mitosheet-0.2.50.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,a,i,u,s,l,f,d,c,p,h,v,m,g,b,y,w,S,j,k={133:(e,r,t)=>{var n={"./index":()=>Promise.all([t.e(339),t.e(509)]).then((()=>()=>t(509))),"./extension":()=>t.e(339).then((()=>()=>t(339)))},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})}},E={};function P(e){var r=E[e];if(void 0!==r)return r.exports;var t=E[e]={id:e,exports:{}};return k[e](t,t.exports,P),t.exports}P.m=k,P.c=E,P.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return P.d(r,{a:r}),r},P.d=(e,r)=>{for(var t in r)P.o(r,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},P.f={},P.e=e=>Promise.all(Object.keys(P.f).reduce(((r,t)=>(P.f[t](e,r),r)),[])),P.u=e=>e+"."+{339:"eda8a5c78fd57012d536",405:"4dea6fd8e64e4dc9015a",509:"9cd86a57778b85719494"}[e]+".js?v="+{339:"eda8a5c78fd57012d536",405:"4dea6fd8e64e4dc9015a",509:"9cd86a57778b85719494"}[e],P.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),P.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="mitosheet:",P.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];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,P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var d=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),u&&document.head.appendChild(i)}},P.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{P.S={};var e={},r={};P.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];P.o(P.S,t)||(P.S[t]={});var a=P.S[t],i="mitosheet",u=(e,r,t,n)=>{var o=a[e]=a[e]||{},u=o[r];(!u||!u.loaded&&(!n!=!u.eager?n:i>u.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(u("fscreen","1.2.0",(()=>P.e(405).then((()=>()=>P(405))))),u("mitosheet","0.2.32",(()=>Promise.all([P.e(339),P.e(509)]).then((()=>()=>P(509)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;P.g.importScripts&&(e=P.g.location+"");var r=P.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.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("+s()+")":1===u?"("+s()+" || "+s()+")":2===u?i.pop()+" "+i.pop():o(u))}return s();function s(){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,s=!0;;u++,i++){var l,f,d=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(f=(typeof(l=r[i]))[0]))return!s||("u"==d?u>n&&!o:""==d!=o);if("u"==f){if(!s||"u"!=d)return!1}else if(s)if(d==f)if(u<=n){if(l!=e[u])return!1}else{if(o?l>e[u]:l<e[u])return!1;l!=e[u]&&(s=!1)}else if("s"!=d&&"n"!=d){if(o||u<=n)return!1;s=!1,u--}else{if(u<=n||f<d!=o)return!1;s=!1}else"s"!=d&&"n"!=d&&(s=!1,u--)}}var c=[],p=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?p()|p():2==h?p()&p():h?a(h,r):!p())}return!!p()},i=(e,r)=>e&&P.o(e,r),u=e=>(e.loaded=1,e.get()),s=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),l=(e,r,t,o)=>{var i=o?s(e[r]):e[r];return(r=Object.keys(i).reduce(((e,r)=>!a(t,r)||e&&!n(e,r)?e:r),0))&&i[r]},f=(e,r,t)=>{var o=t?s(e[r]):e[r];return Object.keys(o).reduce(((e,r)=>!e||!o[e].loaded&&n(e,r)?r:e),0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",c=(e,r,t,n,a)=>{var i=e[t];return"No satisfying version ("+o(n)+")"+(a?" for eager consumption":"")+" of shared module "+t+" found in shared scope "+r+".\nAvailable versions: "+Object.keys(i).map((e=>e+" from "+i[e].from)).join(", ")},p=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>p("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),g=(v=e=>function(r,t,n,o,a){var i=P.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,P.S[r],t,!1,o,a)):e(r,P.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!i(r,t))return m(e,t,a);var s=l(r,t,o,n);return s?u(s):a?a():void p(c(r,e,t,o,n))})),b=v(((e,r,t,n,o,s)=>{if(!i(r,t))return m(e,t,s);var l=f(r,t,n);return a(o,l)||h(d(r,t,l,o)),u(r[t][l])})),y={},w={249:()=>b("default","@jupyterlab/ui-components",!1,[1,4,4,4]),341:()=>b("default","@jupyterlab/notebook",!1,[1,4,4,4]),345:()=>b("default","react",!1,[1,18,2,0]),583:()=>g("default","fscreen",!1,[1,1,1,0],(()=>P.e(405).then((()=>()=>P(405))))),628:()=>b("default","react-dom",!1,[1,18,2,0]),805:()=>b("default","@jupyterlab/apputils",!1,[1,4,5,4])},S={339:[249,341,345,583,628,805]},j={},P.f.consumes=(e,r)=>{P.o(S,e)&&S[e].forEach((e=>{if(P.o(y,e))return r.push(y[e]);if(!j[e]){var t=r=>{y[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}};j[e]=!0;var n=r=>{delete y[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var o=w[e]();o.then?r.push(y[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={739:0};P.f.j=(r,t)=>{var n=P.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=P.p+P.u(r),i=new Error;P.l(a,(t=>{if(P.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,s=0;if(a.some((r=>0!==e[r]))){for(n in i)P.o(i,n)&&(P.m[n]=i[n]);u&&u(P)}for(r&&r(t);s<a.length;s++)o=a[s],P.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkmitosheet=self.webpackChunkmitosheet||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),P.nc=void 0;var T=P(133);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB).mitosheet=T})();
1
+ var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,a,i,u,s,l,f,d,c,p,h,v,m,b,g,y,w,S,j,k={133:(e,r,t)=>{var n={"./index":()=>Promise.all([t.e(339),t.e(509)]).then((()=>()=>t(509))),"./extension":()=>t.e(339).then((()=>()=>t(339)))},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})}},E={};function P(e){var r=E[e];if(void 0!==r)return r.exports;var t=E[e]={id:e,exports:{}};return k[e](t,t.exports,P),t.exports}P.m=k,P.c=E,P.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return P.d(r,{a:r}),r},P.d=(e,r)=>{for(var t in r)P.o(r,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},P.f={},P.e=e=>Promise.all(Object.keys(P.f).reduce(((r,t)=>(P.f[t](e,r),r)),[])),P.u=e=>e+"."+{339:"53f78db5b4beeb902f70",405:"4dea6fd8e64e4dc9015a",509:"9cd86a57778b85719494"}[e]+".js?v="+{339:"53f78db5b4beeb902f70",405:"4dea6fd8e64e4dc9015a",509:"9cd86a57778b85719494"}[e],P.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),P.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="mitosheet:",P.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];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,P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var d=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),u&&document.head.appendChild(i)}},P.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{P.S={};var e={},r={};P.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];P.o(P.S,t)||(P.S[t]={});var a=P.S[t],i="mitosheet",u=(e,r,t,n)=>{var o=a[e]=a[e]||{},u=o[r];(!u||!u.loaded&&(!n!=!u.eager?n:i>u.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(u("fscreen","1.2.0",(()=>P.e(405).then((()=>()=>P(405))))),u("mitosheet","0.2.50",(()=>Promise.all([P.e(339),P.e(509)]).then((()=>()=>P(509)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;P.g.importScripts&&(e=P.g.location+"");var r=P.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.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("+s()+")":1===u?"("+s()+" || "+s()+")":2===u?i.pop()+" "+i.pop():o(u))}return s();function s(){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,s=!0;;u++,i++){var l,f,d=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(f=(typeof(l=r[i]))[0]))return!s||("u"==d?u>n&&!o:""==d!=o);if("u"==f){if(!s||"u"!=d)return!1}else if(s)if(d==f)if(u<=n){if(l!=e[u])return!1}else{if(o?l>e[u]:l<e[u])return!1;l!=e[u]&&(s=!1)}else if("s"!=d&&"n"!=d){if(o||u<=n)return!1;s=!1,u--}else{if(u<=n||f<d!=o)return!1;s=!1}else"s"!=d&&"n"!=d&&(s=!1,u--)}}var c=[],p=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?p()|p():2==h?p()&p():h?a(h,r):!p())}return!!p()},i=(e,r)=>e&&P.o(e,r),u=e=>(e.loaded=1,e.get()),s=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),l=(e,r,t,o)=>{var i=o?s(e[r]):e[r];return(r=Object.keys(i).reduce(((e,r)=>!a(t,r)||e&&!n(e,r)?e:r),0))&&i[r]},f=(e,r,t)=>{var o=t?s(e[r]):e[r];return Object.keys(o).reduce(((e,r)=>!e||!o[e].loaded&&n(e,r)?r:e),0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",c=(e,r,t,n,a)=>{var i=e[t];return"No satisfying version ("+o(n)+")"+(a?" for eager consumption":"")+" of shared module "+t+" found in shared scope "+r+".\nAvailable versions: "+Object.keys(i).map((e=>e+" from "+i[e].from)).join(", ")},p=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>p("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),b=(v=e=>function(r,t,n,o,a){var i=P.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,P.S[r],t,!1,o,a)):e(r,P.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!i(r,t))return m(e,t,a);var s=l(r,t,o,n);return s?u(s):a?a():void p(c(r,e,t,o,n))})),g=v(((e,r,t,n,o,s)=>{if(!i(r,t))return m(e,t,s);var l=f(r,t,n);return a(o,l)||h(d(r,t,l,o)),u(r[t][l])})),y={},w={345:()=>g("default","react",!1,[1,18,2,0]),583:()=>b("default","fscreen",!1,[1,1,1,0],(()=>P.e(405).then((()=>()=>P(405))))),628:()=>g("default","react-dom",!1,[1,18,2,0]),694:()=>g("default","@jupyterlab/ui-components",!1,[1,4,4,10]),762:()=>g("default","@jupyterlab/notebook",!1,[1,4,4,10]),986:()=>g("default","@jupyterlab/apputils",!1,[1,4,5,10])},S={339:[345,583,628,694,762,986]},j={},P.f.consumes=(e,r)=>{P.o(S,e)&&S[e].forEach((e=>{if(P.o(y,e))return r.push(y[e]);if(!j[e]){var t=r=>{y[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}};j[e]=!0;var n=r=>{delete y[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var o=w[e]();o.then?r.push(y[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={739:0};P.f.j=(r,t)=>{var n=P.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=P.p+P.u(r),i=new Error;P.l(a,(t=>{if(P.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,s=0;if(a.some((r=>0!==e[r]))){for(n in i)P.o(i,n)&&(P.m[n]=i[n]);u&&u(P)}for(r&&r(t);s<a.length;s++)o=a[s],P.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkmitosheet=self.webpackChunkmitosheet||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),P.nc=void 0;var T=P(133);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB).mitosheet=T})();
mitosheet/save_paths.py CHANGED
@@ -6,8 +6,17 @@
6
6
 
7
7
  import os
8
8
 
9
+ try:
10
+ import mitosheet_helper_4c2a
11
+ MITOSHEET_HELPER_4C2A = True
12
+ except ImportError:
13
+ MITOSHEET_HELPER_4C2A = False
14
+
9
15
  MITO_CONFIG_KEY_HOME_FOLDER = 'MITO_CONFIG_HOME_FOLDER'
10
- if MITO_CONFIG_KEY_HOME_FOLDER in os.environ:
16
+
17
+ if MITOSHEET_HELPER_4C2A:
18
+ HOME_FOLDER = os.path.expanduser('~/.config')
19
+ elif MITO_CONFIG_KEY_HOME_FOLDER in os.environ:
11
20
  HOME_FOLDER = os.path.expanduser(os.environ[MITO_CONFIG_KEY_HOME_FOLDER])
12
21
  else:
13
22
  HOME_FOLDER = os.path.expanduser('~')
mitosheet/user/create.py CHANGED
@@ -43,10 +43,23 @@ def is_user_json_exists_and_valid_json() -> bool:
43
43
  return False
44
44
 
45
45
 
46
+ def get_temp_user_id() -> Optional[str]:
47
+ """
48
+ Looks for a temporary user ID, generated by the desktop app.
49
+ """
50
+ temp_user_id_path = os.path.join(MITO_FOLDER, 'temp_user_id.txt')
51
+
52
+ if os.path.exists(temp_user_id_path):
53
+ with open(temp_user_id_path, 'r') as f:
54
+ return f.read()
55
+
56
+ return None
57
+
58
+
46
59
  def try_create_user_json_file() -> None:
47
60
  # Create the mito folder if it does not exist
48
61
  if not os.path.exists(MITO_FOLDER):
49
- os.mkdir(MITO_FOLDER)
62
+ os.makedirs(MITO_FOLDER, exist_ok=True)
50
63
 
51
64
  # We create a user.json file if it does not exist, or if it
52
65
  # is invalid (e.g. it is not parseable JSON).
@@ -55,7 +68,12 @@ def try_create_user_json_file() -> None:
55
68
  with open(USER_JSON_PATH, 'w+') as f:
56
69
  f.write(json.dumps(USER_JSON_DEFAULT))
57
70
 
58
- # Then, we take special care to put all the testing/CI environments
71
+ # Next, look for a temp user id
72
+ temp_user_id = get_temp_user_id()
73
+ if temp_user_id:
74
+ set_user_field(UJ_STATIC_USER_ID, temp_user_id)
75
+
76
+ # Finally, we take special care to put all the testing/CI environments
59
77
  # (e.g. Github actions) under one ID and email
60
78
  from mitosheet.user.utils import is_running_test
61
79
  if is_running_test():
@@ -132,7 +132,7 @@ def is_streamlit() -> bool:
132
132
  # TODO: have to handle versions of streamlit that don't have this
133
133
  # or it's in different places: https://discuss.streamlit.io/t/how-to-check-if-code-is-run-inside-streamlit-and-not-e-g-ipython/23439/8
134
134
  from streamlit.runtime.scriptrunner import get_script_run_ctx
135
- return get_script_run_ctx() is not None
135
+ return get_script_run_ctx(suppress_warning=True) is not None
136
136
  except ModuleNotFoundError:
137
137
  return False
138
138
 
mitosheet/user/utils.py CHANGED
@@ -36,7 +36,12 @@ try:
36
36
  MITOSHEET_PRIVATE = True
37
37
  except ImportError:
38
38
  MITOSHEET_PRIVATE = False
39
-
39
+
40
+ try:
41
+ import mitosheet_helper_4c2a
42
+ MITOSHEET_HELPER_4C2A = True
43
+ except ImportError:
44
+ MITOSHEET_HELPER_4C2A = False
40
45
 
41
46
  def is_running_test() -> bool:
42
47
  """
@@ -91,6 +96,9 @@ def is_pro() -> bool:
91
96
  # This package overides the user.json
92
97
  if MITOSHEET_PRIVATE:
93
98
  return MITOSHEET_PRIVATE
99
+
100
+ if MITOSHEET_HELPER_4C2A:
101
+ return MITOSHEET_HELPER_4C2A
94
102
 
95
103
  # Check if the config is set
96
104
  if os.environ.get('MITO_CONFIG_PRO') is not None:
@@ -106,6 +114,11 @@ def is_pro() -> bool:
106
114
  return pro if pro is not None else False
107
115
 
108
116
 
117
+ def is_4c2a() -> bool:
118
+ """
119
+ Helper function for returning if this is a 4C2A user
120
+ """
121
+ return MITOSHEET_HELPER_4C2A
109
122
 
110
123
  def is_local_deployment() -> bool:
111
124
  """
mitosheet/utils.py CHANGED
@@ -638,7 +638,7 @@ def is_snowflake_connector_python_installed() -> bool:
638
638
  return False
639
639
 
640
640
  def is_streamlit_installed() -> bool:
641
- try:
641
+ try:
642
642
  import streamlit
643
643
  return True
644
644
  except ImportError:
@@ -10,7 +10,7 @@
10
10
  "outputDir": "mitosheet/labextension",
11
11
  "extension": "lib/plugin",
12
12
  "_build": {
13
- "load": "static/remoteEntry.6682c205d16d5b902427.js",
13
+ "load": "static/remoteEntry.8d8431c3cef326a8e05b.js",
14
14
  "extension": "./extension"
15
15
  }
16
16
  },
@@ -27,7 +27,7 @@
27
27
  "url": "https://github.com/mito-ds/monorepo",
28
28
  "type": "git"
29
29
  },
30
- "version": "0.2.32",
30
+ "version": "0.2.50",
31
31
  "dependencies": {
32
32
  "@jupyterlab/application": "^4.0.0",
33
33
  "@jupyterlab/notebook": "^4.2.4",