Add files using upload-large-folder tool
Browse files- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6831.1df8fa4cabb5b1c19803.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7587.3112240b6b82407b0f16.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8855.b17b9969fce42d0398e4.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/c49810b53ecc0d87d802.woff +0 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +20 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +104 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/199.f16f9d1ce907d41fa0e1.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.4abd86605f9970bf2af0.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.327ec9d7a9413375ec45.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab-plotly/install.json +9 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab-plotly/static/340.2a23c8275d47a2531dae.js +0 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab-plotly/static/remoteEntry.5153b2c003c011c482e3.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab_pygments/static/747.67662283a5707eeb4d4c.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab_pygments/static/remoteEntry.5cbb9d2323598fbda535.js +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab_pygments/static/style.js +4 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/asciidoc/conf.json +6 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/asciidoc/index.asciidoc.j2 +90 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/base/celltags.j2 +7 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/basic/conf.json +6 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/basic/index.html.j2 +1 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/classic/base.html.j2 +292 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/classic/conf.json +13 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/compatibility/full.tpl +2 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/base.html.j2 +331 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/conf.json +12 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/index.html.j2 +141 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/mermaidjs.html.j2 +188 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/static/index.css +0 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/static/theme-dark.css +438 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/static/theme-light.css +423 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/base.tex.j2 +248 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/conf.json +8 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/display_priority.j2 +47 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/document_contents.tex.j2 +73 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/index.tex.j2 +17 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/null.j2 +106 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/report.tex.j2 +26 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_bw_ipython.tex.j2 +57 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_bw_python.tex.j2 +17 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_ipython.tex.j2 +70 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_jupyter.tex.j2 +178 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_python.tex.j2 +25 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/markdown/conf.json +6 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/markdown/index.md.j2 +86 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/reveal/base.html.j2 +33 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/reveal/cellslidedata.j2 +9 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/reveal/conf.json +16 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/script/script.j2 +5 -0
- emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/webpdf/index.pdf.j2 +1 -0
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6831.1df8fa4cabb5b1c19803.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6831],{86831:(e,t,r)=>{r.r(t);r.d(t,{fcl:()=>d});var n={term:true,method:true,accu:true,rule:true,then:true,is:true,and:true,or:true,if:true,default:true};var u={var_input:true,var_output:true,fuzzify:true,defuzzify:true,function_block:true,ruleblock:true};var i={end_ruleblock:true,end_defuzzify:true,end_function_block:true,end_fuzzify:true,end_var:true};var a={true:true,false:true,nan:true,real:true,min:true,max:true,cog:true,cogs:true};var o=/[+\-*&^%:=<>!|\/]/;function l(e,t){var r=e.next();if(/[\d\.]/.test(r)){if(r=="."){e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/)}else if(r=="0"){e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/)}else{e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/)}return"number"}if(r=="/"||r=="("){if(e.eat("*")){t.tokenize=f;return f(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(o.test(r)){e.eatWhile(o);return"operator"}e.eatWhile(/[\w\$_\xa1-\uffff]/);var l=e.current().toLowerCase();if(n.propertyIsEnumerable(l)||u.propertyIsEnumerable(l)||i.propertyIsEnumerable(l)){return"keyword"}if(a.propertyIsEnumerable(l))return"atom";return"variable"}function f(e,t){var r=false,n;while(n=e.next()){if((n=="/"||n==")")&&r){t.tokenize=l;break}r=n=="*"}return"comment"}function c(e,t,r,n,u){this.indented=e;this.column=t;this.type=r;this.align=n;this.prev=u}function s(e,t,r){return e.context=new c(e.indented,t,r,null,e.context)}function p(e){if(!e.context.prev)return;var t=e.context.type;if(t=="end_block")e.indented=e.context.indented;return e.context=e.context.prev}const d={name:"fcl",startState:function(e){return{tokenize:null,context:new c(-e,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var r=t.context;if(e.sol()){if(r.align==null)r.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace())return null;var n=(t.tokenize||l)(e,t);if(n=="comment")return n;if(r.align==null)r.align=true;var a=e.current().toLowerCase();if(u.propertyIsEnumerable(a))s(t,e.column(),"end_block");else if(i.propertyIsEnumerable(a))p(t);t.startOfLine=false;return n},indent:function(e,t,r){if(e.tokenize!=l&&e.tokenize!=null)return 0;var n=e.context;var u=i.propertyIsEnumerable(t);if(n.align)return n.column+(u?0:1);else return n.indented+(u?0:r.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}}}}]);
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7587.3112240b6b82407b0f16.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7587],{17587:(e,t,a)=>{a.r(t);a.d(t,{ebnf:()=>c});var s={slash:0,parenthesis:1};var r={comment:0,_string:1,characterClass:2};const c={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:true,localState:null,stack:[],inDefinition:false}},token:function(e,t){if(!e)return;if(t.stack.length===0){if(e.peek()=='"'||e.peek()=="'"){t.stringType=e.peek();e.next();t.stack.unshift(r._string)}else if(e.match("/*")){t.stack.unshift(r.comment);t.commentType=s.slash}else if(e.match("(*")){t.stack.unshift(r.comment);t.commentType=s.parenthesis}}switch(t.stack[0]){case r._string:while(t.stack[0]===r._string&&!e.eol()){if(e.peek()===t.stringType){e.next();t.stack.shift()}else if(e.peek()==="\\"){e.next();e.next()}else{e.match(/^.[^\\\"\']*/)}}return t.lhs?"property":"string";case r.comment:while(t.stack[0]===r.comment&&!e.eol()){if(t.commentType===s.slash&&e.match("*/")){t.stack.shift();t.commentType=null}else if(t.commentType===s.parenthesis&&e.match("*)")){t.stack.shift();t.commentType=null}else{e.match(/^.[^\*]*/)}}return"comment";case r.characterClass:while(t.stack[0]===r.characterClass&&!e.eol()){if(!(e.match(/^[^\]\\]+/)||e.match("."))){t.stack.shift()}}return"operator"}var a=e.peek();switch(a){case"[":e.next();t.stack.unshift(r.characterClass);return"bracket";case":":case"|":case";":e.next();return"operator";case"%":if(e.match("%%")){return"header"}else if(e.match(/[%][A-Za-z]+/)){return"keyword"}else if(e.match(/[%][}]/)){return"bracket"}break;case"/":if(e.match(/[\/][A-Za-z]+/)){return"keyword"}case"\\":if(e.match(/[\][a-z]+/)){return"string.special"}case".":if(e.match(".")){return"atom"}case"*":case"-":case"+":case"^":if(e.match(a)){return"atom"}case"$":if(e.match("$$")){return"builtin"}else if(e.match(/[$][0-9]+/)){return"variableName.special"}case"<":if(e.match(/<<[a-zA-Z_]+>>/)){return"builtin"}}if(e.match("//")){e.skipToEnd();return"comment"}else if(e.match("return")){return"operator"}else if(e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)){if(e.match(/(?=[\(.])/)){return"variable"}else if(e.match(/(?=[\s\n]*[:=])/)){return"def"}return"variableName.special"}else if(["[","]","(",")"].indexOf(e.peek())!=-1){e.next();return"bracket"}else if(!e.eatSpace()){e.next()}return null}}}}]);
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8855.b17b9969fce42d0398e4.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8855],{88855:(t,e,s)=>{s.d(e,{Zk:()=>l,q7:()=>Q,tM:()=>Tt,u4:()=>_t});var i=s(15051);var r=s(94065);var n=s(96049);var a=s(75905);var o=function(){var t=(0,a.K2)((function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s}),"o"),e=[1,2],s=[1,3],i=[1,4],r=[2,4],n=[1,9],o=[1,11],l=[1,16],c=[1,17],h=[1,18],d=[1,19],u=[1,32],p=[1,20],f=[1,21],y=[1,22],g=[1,23],m=[1,24],S=[1,26],b=[1,27],k=[1,28],_=[1,29],v=[1,30],T=[1,31],E=[1,34],D=[1,35],x=[1,36],C=[1,37],$=[1,33],I=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],L=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],A=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54];var w={trace:(0,a.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,a.K2)((function t(e,s,i,r,n,a,o){var l=a.length-1;switch(n){case 3:r.setRootDoc(a[l]);return a[l];break;case 4:this.$=[];break;case 5:if(a[l]!="nl"){a[l-1].push(a[l]);this.$=a[l-1]}break;case 6:case 7:this.$=a[l];break;case 8:this.$="nl";break;case 12:this.$=a[l];break;case 13:const t=a[l-1];t.description=r.trimColon(a[l]);this.$=t;break;case 14:this.$={stmt:"relation",state1:a[l-2],state2:a[l]};break;case 15:const e=r.trimColon(a[l]);this.$={stmt:"relation",state1:a[l-3],state2:a[l-1],description:e};break;case 19:this.$={stmt:"state",id:a[l-3],type:"default",description:"",doc:a[l-1]};break;case 20:var c=a[l];var h=a[l-2].trim();if(a[l].match(":")){var d=a[l].split(":");c=d[0];h=[h,d[1]]}this.$={stmt:"state",id:c,type:"default",description:h};break;case 21:this.$={stmt:"state",id:a[l-3],type:"default",description:a[l-5],doc:a[l-1]};break;case 22:this.$={stmt:"state",id:a[l],type:"fork"};break;case 23:this.$={stmt:"state",id:a[l],type:"join"};break;case 24:this.$={stmt:"state",id:a[l],type:"choice"};break;case 25:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[l-1].trim(),note:{position:a[l-2].trim(),text:a[l].trim()}};break;case 29:this.$=a[l].trim();r.setAccTitle(this.$);break;case 30:case 31:this.$=a[l].trim();r.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:a[l-1].trim(),classes:a[l].trim()};break;case 34:this.$={stmt:"style",id:a[l-1].trim(),styleClass:a[l].trim()};break;case 35:this.$={stmt:"applyClass",id:a[l-1].trim(),styleClass:a[l].trim()};break;case 36:r.setDirection("TB");this.$={stmt:"dir",value:"TB"};break;case 37:r.setDirection("BT");this.$={stmt:"dir",value:"BT"};break;case 38:r.setDirection("RL");this.$={stmt:"dir",value:"RL"};break;case 39:r.setDirection("LR");this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:a[l].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:a[l-2].trim(),classes:[a[l].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:a[l-2].trim(),classes:[a[l].trim()],type:"default",description:""};break}}),"anonymous"),table:[{3:1,4:e,5:s,6:i},{1:[3]},{3:5,4:e,5:s,6:i},{3:6,4:e,5:s,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:f,27:y,28:g,29:m,32:25,33:S,35:b,37:k,38:_,42:v,45:T,48:E,49:D,50:x,51:C,54:$},t(I,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:f,27:y,28:g,29:m,32:25,33:S,35:b,37:k,38:_,42:v,45:T,48:E,49:D,50:x,51:C,54:$},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12],{14:[1,39],15:[1,40]}),t(I,[2,16]),{18:[1,41]},t(I,[2,18],{20:[1,42]}),{23:[1,43]},t(I,[2,22]),t(I,[2,23]),t(I,[2,24]),t(I,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(I,[2,28]),{34:[1,48]},{36:[1,49]},t(I,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(L,[2,42],{55:[1,54]}),t(L,[2,43],{55:[1,55]}),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(I,[2,39]),t(I,[2,6]),t(I,[2,13]),{13:56,24:u,54:$},t(I,[2,17]),t(A,r,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(I,[2,29]),t(I,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(I,[2,14],{14:[1,67]}),{4:n,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,68],22:d,24:u,25:p,26:f,27:y,28:g,29:m,32:25,33:S,35:b,37:k,38:_,42:v,45:T,48:E,49:D,50:x,51:C,54:$},t(I,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(I,[2,32]),t(I,[2,33]),t(I,[2,34]),t(I,[2,35]),t(L,[2,44]),t(L,[2,45]),t(I,[2,15]),t(I,[2,19]),t(A,r,{7:72}),t(I,[2,26]),t(I,[2,27]),{4:n,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,73],22:d,24:u,25:p,26:f,27:y,28:g,29:m,32:25,33:S,35:b,37:k,38:_,42:v,45:T,48:E,49:D,50:x,51:C,54:$},t(I,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:(0,a.K2)((function t(e,s){if(s.recoverable){this.trace(e)}else{var i=new Error(e);i.hash=s;throw i}}),"parseError"),parse:(0,a.K2)((function t(e){var s=this,i=[0],r=[],n=[null],o=[],l=this.table,c="",h=0,d=0,u=0,p=2,f=1;var y=o.slice.call(arguments,1);var g=Object.create(this.lexer);var m={yy:{}};for(var S in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,S)){m.yy[S]=this.yy[S]}}g.setInput(e,m.yy);m.yy.lexer=g;m.yy.parser=this;if(typeof g.yylloc=="undefined"){g.yylloc={}}var b=g.yylloc;o.push(b);var k=g.options&&g.options.ranges;if(typeof m.yy.parseError==="function"){this.parseError=m.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function _(t){i.length=i.length-2*t;n.length=n.length-t;o.length=o.length-t}(0,a.K2)(_,"popStack");function v(){var t;t=r.pop()||g.lex()||f;if(typeof t!=="number"){if(t instanceof Array){r=t;t=r.pop()}t=s.symbols_[t]||t}return t}(0,a.K2)(v,"lex");var T,E,D,x,C,$,I={},L,A,w,R;while(true){D=i[i.length-1];if(this.defaultActions[D]){x=this.defaultActions[D]}else{if(T===null||typeof T=="undefined"){T=v()}x=l[D]&&l[D][T]}if(typeof x==="undefined"||!x.length||!x[0]){var O="";R=[];for(L in l[D]){if(this.terminals_[L]&&L>p){R.push("'"+this.terminals_[L]+"'")}}if(g.showPosition){O="Parse error on line "+(h+1)+":\n"+g.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[T]||T)+"'"}else{O="Parse error on line "+(h+1)+": Unexpected "+(T==f?"end of input":"'"+(this.terminals_[T]||T)+"'")}this.parseError(O,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:b,expected:R})}if(x[0]instanceof Array&&x.length>1){throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+T)}switch(x[0]){case 1:i.push(T);n.push(g.yytext);o.push(g.yylloc);i.push(x[1]);T=null;if(!E){d=g.yyleng;c=g.yytext;h=g.yylineno;b=g.yylloc;if(u>0){u--}}else{T=E;E=null}break;case 2:A=this.productions_[x[1]][1];I.$=n[n.length-A];I._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column};if(k){I._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]}$=this.performAction.apply(I,[c,d,h,m.yy,x[1],n,o].concat(y));if(typeof $!=="undefined"){return $}if(A){i=i.slice(0,-1*A*2);n=n.slice(0,-1*A);o=o.slice(0,-1*A)}i.push(this.productions_[x[1]][0]);n.push(I.$);o.push(I._$);w=l[i[i.length-2]][i[i.length-1]];i.push(w);break;case 3:return true}}return true}),"parse")};var R=function(){var t={EOF:1,parseError:(0,a.K2)((function t(e,s){if(this.yy.parser){this.yy.parser.parseError(e,s)}else{throw new Error(e)}}),"parseError"),setInput:(0,a.K2)((function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,a.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,a.K2)((function(t){var e=t.length;var s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-e);this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(s.length-1){this.yylineno-=s.length-1}var r=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,a.K2)((function(){this._more=true;return this}),"more"),reject:(0,a.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this}),"reject"),less:(0,a.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,a.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,a.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,a.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,a.K2)((function(t,e){var s,i,r;if(this.options.backtrack_lexer){r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){r.yylloc.range=this.yylloc.range.slice(0)}}i=t[0].match(/(?:\r\n?|\n).*/g);if(i){this.yylineno+=i.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(s){return s}else if(this._backtrack){for(var n in r){this[n]=r[n]}return false}return false}),"test_match"),next:(0,a.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,s,i;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var n=0;n<r.length;n++){s=this._input.match(this.rules[r[n]]);if(s&&(!e||s[0].length>e[0].length)){e=s;i=n;if(this.options.backtrack_lexer){t=this.test_match(s,r[n]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,r[i]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,a.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,a.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,a.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,a.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,a.K2)((function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}}),"topState"),pushState:(0,a.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,a.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,a.K2)((function t(e,s,i,r){var n=r;switch(i){case 0:return 41;break;case 1:return 48;break;case 2:return 49;break;case 3:return 50;break;case 4:return 51;break;case 5:break;case 6:{}break;case 7:return 5;break;case 8:break;case 9:break;case 10:break;case 11:break;case 12:this.pushState("SCALE");return 17;break;case 13:return 18;break;case 14:this.popState();break;case 15:this.begin("acc_title");return 33;break;case 16:this.popState();return"acc_title_value";break;case 17:this.begin("acc_descr");return 35;break;case 18:this.popState();return"acc_descr_value";break;case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";break;case 22:this.pushState("CLASSDEF");return 38;break;case 23:this.popState();this.pushState("CLASSDEFID");return"DEFAULT_CLASSDEF_ID";break;case 24:this.popState();this.pushState("CLASSDEFID");return 39;break;case 25:this.popState();return 40;break;case 26:this.pushState("CLASS");return 45;break;case 27:this.popState();this.pushState("CLASS_STYLE");return 46;break;case 28:this.popState();return 47;break;case 29:this.pushState("STYLE");return 42;break;case 30:this.popState();this.pushState("STYLEDEF_STYLES");return 43;break;case 31:this.popState();return 44;break;case 32:this.pushState("SCALE");return 17;break;case 33:return 18;break;case 34:this.popState();break;case 35:this.pushState("STATE");break;case 36:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 25;break;case 37:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 26;break;case 38:this.popState();s.yytext=s.yytext.slice(0,-10).trim();return 27;break;case 39:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 25;break;case 40:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 26;break;case 41:this.popState();s.yytext=s.yytext.slice(0,-10).trim();return 27;break;case 42:return 48;break;case 43:return 49;break;case 44:return 50;break;case 45:return 51;break;case 46:this.pushState("STATE_STRING");break;case 47:this.pushState("STATE_ID");return"AS";break;case 48:this.popState();return"ID";break;case 49:this.popState();break;case 50:return"STATE_DESCR";break;case 51:return 19;break;case 52:this.popState();break;case 53:this.popState();this.pushState("struct");return 20;break;case 54:break;case 55:this.popState();return 21;break;case 56:break;case 57:this.begin("NOTE");return 29;break;case 58:this.popState();this.pushState("NOTE_ID");return 56;break;case 59:this.popState();this.pushState("NOTE_ID");return 57;break;case 60:this.popState();this.pushState("FLOATING_NOTE");break;case 61:this.popState();this.pushState("FLOATING_NOTE_ID");return"AS";break;case 62:break;case 63:return"NOTE_TEXT";break;case 64:this.popState();return"ID";break;case 65:this.popState();this.pushState("NOTE_TEXT");return 24;break;case 66:this.popState();s.yytext=s.yytext.substr(2).trim();return 31;break;case 67:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 31;break;case 68:return 6;break;case 69:return 6;break;case 70:return 16;break;case 71:return 54;break;case 72:return 24;break;case 73:s.yytext=s.yytext.trim();return 14;break;case 74:return 15;break;case 75:return 28;break;case 76:return 55;break;case 77:return 5;break;case 78:return"INVALID";break}}),"anonymous"),rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:false},struct:{rules:[9,10,22,26,29,35,42,43,44,45,54,55,56,57,71,72,73,74,75],inclusive:false},FLOATING_NOTE_ID:{rules:[64],inclusive:false},FLOATING_NOTE:{rules:[61,62,63],inclusive:false},NOTE_TEXT:{rules:[66,67],inclusive:false},NOTE_ID:{rules:[65],inclusive:false},NOTE:{rules:[58,59,60],inclusive:false},STYLEDEF_STYLEOPTS:{rules:[],inclusive:false},STYLEDEF_STYLES:{rules:[31],inclusive:false},STYLE_IDS:{rules:[],inclusive:false},STYLE:{rules:[30],inclusive:false},CLASS_STYLE:{rules:[28],inclusive:false},CLASS:{rules:[27],inclusive:false},CLASSDEFID:{rules:[25],inclusive:false},CLASSDEF:{rules:[23,24],inclusive:false},acc_descr_multiline:{rules:[20,21],inclusive:false},acc_descr:{rules:[18],inclusive:false},acc_title:{rules:[16],inclusive:false},SCALE:{rules:[13,14,33,34],inclusive:false},ALIAS:{rules:[],inclusive:false},STATE_ID:{rules:[48],inclusive:false},STATE_STRING:{rules:[49,50],inclusive:false},FORK_STATE:{rules:[],inclusive:false},STATE:{rules:[9,10,36,37,38,39,40,41,46,47,51,52,53],inclusive:false},ID:{rules:[9,10],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,35,53,57,68,69,70,71,72,73,74,76,77,78],inclusive:true}}};return t}();w.lexer=R;function O(){this.yy={}}(0,a.K2)(O,"Parser");O.prototype=w;w.Parser=O;return new O}();o.parser=o;var l=o;var c="TB";var h="TB";var d="dir";var u="state";var p="relation";var f="classDef";var y="style";var g="applyClass";var m="default";var S="divider";var b="fill:none";var k="fill: #333";var _="c";var v="text";var T="normal";var E="rect";var D="rectWithTitle";var x="stateStart";var C="stateEnd";var $="divider";var I="roundedWithTitle";var L="note";var A="noteGroup";var w="statediagram";var R="state";var O=`${w}-${R}`;var N="transition";var K="note";var B="note-edge";var F=`${N} ${B}`;var Y=`${w}-${K}`;var P="cluster";var G=`${w}-${P}`;var j="cluster-alt";var z=`${w}-${j}`;var U="parent";var M="note";var V="state";var X="----";var W=`${X}${M}`;var H=`${X}${U}`;var J=(0,a.K2)(((t,e=h)=>{if(!t.doc){return e}let s=e;for(const i of t.doc){if(i.stmt==="dir"){s=i.value}}return s}),"getDir");var q=(0,a.K2)((function(t,e){return e.db.getClasses()}),"getClasses");var Z=(0,a.K2)((async function(t,e,s,o){a.Rm.info("REF0:");a.Rm.info("Drawing state diagram (v2)",e);const{securityLevel:l,state:c,layout:h}=(0,a.D7)();o.db.extract(o.db.getRootDocV2());const d=o.db.getData();const u=(0,i.A)(e,l);d.type=o.type;d.layoutAlgorithm=h;d.nodeSpacing=c?.nodeSpacing||50;d.rankSpacing=c?.rankSpacing||50;d.markers=["barb"];d.diagramId=e;await(0,r.XX)(d,u);const p=8;n._K.insertTitle(u,"statediagramTitleText",c?.titleTopMargin??25,o.db.getDiagramTitle());(0,i.P)(u,p,w,c?.useMaxWidth??true)}),"draw");var Q={getClasses:q,draw:Z,getDir:J};var tt=new Map;var et=0;function st(t="",e=0,s="",i=X){const r=s!==null&&s.length>0?`${i}${s}`:"";return`${V}-${t}${r}-${e}`}(0,a.K2)(st,"stateDomId");var it=(0,a.K2)(((t,e,s,i,r,n,o,l)=>{a.Rm.trace("items",e);e.forEach((e=>{switch(e.stmt){case u:lt(t,e,s,i,r,n,o,l);break;case m:lt(t,e,s,i,r,n,o,l);break;case p:{lt(t,e.state1,s,i,r,n,o,l);lt(t,e.state2,s,i,r,n,o,l);const c={id:"edge"+et,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:b,labelStyle:"",label:a.Y2.sanitizeText(e.description,(0,a.D7)()),arrowheadStyle:k,labelpos:_,labelType:v,thickness:T,classes:N,look:o};r.push(c);et++}break}}))}),"setupDoc");var rt=(0,a.K2)(((t,e=h)=>{let s=e;if(t.doc){for(const e of t.doc){if(e.stmt==="dir"){s=e.value}}}return s}),"getDir");function nt(t,e,s){if(!e.id||e.id==="</join></fork>"||e.id==="</choice>"){return}if(e.cssClasses){if(!Array.isArray(e.cssCompiledStyles)){e.cssCompiledStyles=[]}e.cssClasses.split(" ").forEach((t=>{if(s.get(t)){const i=s.get(t);e.cssCompiledStyles=[...e.cssCompiledStyles,...i.styles]}}))}const i=t.find((t=>t.id===e.id));if(i){Object.assign(i,e)}else{t.push(e)}}(0,a.K2)(nt,"insertOrUpdateNode");function at(t){return t?.classes?.join(" ")??""}(0,a.K2)(at,"getClassesFromDbInfo");function ot(t){return t?.styles??[]}(0,a.K2)(ot,"getStylesFromDbInfo");var lt=(0,a.K2)(((t,e,s,i,r,n,o,l)=>{const c=e.id;const h=s.get(c);const d=at(h);const u=ot(h);a.Rm.info("dataFetcher parsedItem",e,h,u);if(c!=="root"){let s=E;if(e.start===true){s=x}else if(e.start===false){s=C}if(e.type!==m){s=e.type}if(!tt.get(c)){tt.set(c,{id:c,shape:s,description:a.Y2.sanitizeText(c,(0,a.D7)()),cssClasses:`${d} ${O}`,cssStyles:u})}const h=tt.get(c);if(e.description){if(Array.isArray(h.description)){h.shape=D;h.description.push(e.description)}else{if(h.description?.length>0){h.shape=D;if(h.description===c){h.description=[e.description]}else{h.description=[h.description,e.description]}}else{h.shape=E;h.description=e.description}}h.description=a.Y2.sanitizeTextOrArray(h.description,(0,a.D7)())}if(h.description?.length===1&&h.shape===D){if(h.type==="group"){h.shape=I}else{h.shape=E}}if(!h.type&&e.doc){a.Rm.info("Setting cluster for XCX",c,rt(e));h.type="group";h.isGroup=true;h.dir=rt(e);h.shape=e.type===S?$:I;h.cssClasses=`${h.cssClasses} ${G} ${n?z:""}`}const p={labelStyle:"",shape:h.shape,label:h.description,cssClasses:h.cssClasses,cssCompiledStyles:[],cssStyles:h.cssStyles,id:c,dir:h.dir,domId:st(c,et),type:h.type,isGroup:h.type==="group",padding:8,rx:10,ry:10,look:o};if(p.shape===$){p.label=""}if(t&&t.id!=="root"){a.Rm.trace("Setting node ",c," to be child of its parent ",t.id);p.parentId=t.id}p.centerLabel=true;if(e.note){const t={labelStyle:"",shape:L,label:e.note.text,cssClasses:Y,cssStyles:[],cssCompilesStyles:[],id:c+W+"-"+et,domId:st(c,et,M),type:h.type,isGroup:h.type==="group",padding:(0,a.D7)().flowchart.padding,look:o,position:e.note.position};const s=c+H;const n={labelStyle:"",shape:A,label:e.note.text,cssClasses:h.cssClasses,cssStyles:[],id:c+H,domId:st(c,et,U),type:"group",isGroup:true,padding:16,look:o,position:e.note.position};et++;n.id=s;t.parentId=s;nt(i,n,l);nt(i,t,l);nt(i,p,l);let d=c;let u=t.id;if(e.note.position==="left of"){d=t.id;u=c}r.push({id:d+"-"+u,start:d,end:u,arrowhead:"none",arrowTypeEnd:"",style:b,labelStyle:"",classes:F,arrowheadStyle:k,labelpos:_,labelType:v,thickness:T,look:o})}else{nt(i,p,l)}}if(e.doc){a.Rm.trace("Adding nodes children ");it(e,e.doc,s,i,r,!n,o,l)}}),"dataFetcher");var ct=(0,a.K2)((()=>{tt.clear();et=0}),"reset");var ht="[*]";var dt="start";var ut=ht;var pt="end";var ft="color";var yt="fill";var gt="bgFill";var mt=",";function St(){return new Map}(0,a.K2)(St,"newClassesList");var bt=(0,a.K2)((()=>({relations:[],states:new Map,documents:{}})),"newDoc");var kt=(0,a.K2)((t=>JSON.parse(JSON.stringify(t))),"clone");var _t=class{static{(0,a.K2)(this,"StateDB")}constructor(t){this.clear();this.version=t;this.setRootDoc=this.setRootDoc.bind(this);this.getDividerId=this.getDividerId.bind(this);this.setDirection=this.setDirection.bind(this);this.trimColon=this.trimColon.bind(this)}version;nodes=[];edges=[];rootDoc=[];classes=St();documents={root:bt()};currentDocument=this.documents.root;startEndCount=0;dividerCnt=0;static relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3};setRootDoc(t){a.Rm.info("Setting root doc",t);this.rootDoc=t;if(this.version===1){this.extract(t)}else{this.extract(this.getRootDocV2())}}getRootDoc(){return this.rootDoc}docTranslator(t,e,s){if(e.stmt===p){this.docTranslator(t,e.state1,true);this.docTranslator(t,e.state2,false)}else{if(e.stmt===u){if(e.id==="[*]"){e.id=s?t.id+"_start":t.id+"_end";e.start=s}else{e.id=e.id.trim()}}if(e.doc){const t=[];let s=[];let i;for(i=0;i<e.doc.length;i++){if(e.doc[i].type===S){const r=kt(e.doc[i]);r.doc=kt(s);t.push(r);s=[]}else{s.push(e.doc[i])}}if(t.length>0&&s.length>0){const i={stmt:u,id:(0,n.$C)(),type:"divider",doc:kt(s)};t.push(kt(i));e.doc=t}e.doc.forEach((t=>this.docTranslator(e,t,true)))}}}getRootDocV2(){this.docTranslator({id:"root"},{id:"root",doc:this.rootDoc},true);return{id:"root",doc:this.rootDoc}}extract(t){let e;if(t.doc){e=t.doc}else{e=t}a.Rm.info(e);this.clear(true);a.Rm.info("Extract initial document:",e);e.forEach((t=>{a.Rm.warn("Statement",t.stmt);switch(t.stmt){case u:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);break;case p:this.addRelation(t.state1,t.state2,t.description);break;case f:this.addStyleClass(t.id.trim(),t.classes);break;case y:{const e=t.id.trim().split(",");const s=t.styleClass.split(",");e.forEach((t=>{let e=this.getState(t);if(e===void 0){const s=t.trim();this.addState(s);e=this.getState(s)}e.styles=s.map((t=>t.replace(/;/g,"")?.trim()))}))}break;case g:this.setCssClass(t.id.trim(),t.styleClass);break}}));const s=this.getStates();const i=(0,a.D7)();const r=i.look;ct();lt(void 0,this.getRootDocV2(),s,this.nodes,this.edges,true,r,this.classes);this.nodes.forEach((t=>{if(Array.isArray(t.label)){t.description=t.label.slice(1);if(t.isGroup&&t.description.length>0){throw new Error("Group nodes can only have label. Remove the additional description for node ["+t.id+"]")}t.label=t.label[0]}}))}addState(t,e=m,s=null,i=null,r=null,n=null,o=null,l=null){const c=t?.trim();if(!this.currentDocument.states.has(c)){a.Rm.info("Adding state ",c,i);this.currentDocument.states.set(c,{id:c,descriptions:[],type:e,doc:s,note:r,classes:[],styles:[],textStyles:[]})}else{if(!this.currentDocument.states.get(c).doc){this.currentDocument.states.get(c).doc=s}if(!this.currentDocument.states.get(c).type){this.currentDocument.states.get(c).type=e}}if(i){a.Rm.info("Setting state description",c,i);if(typeof i==="string"){this.addDescription(c,i.trim())}if(typeof i==="object"){i.forEach((t=>this.addDescription(c,t.trim())))}}if(r){const t=this.currentDocument.states.get(c);t.note=r;t.note.text=a.Y2.sanitizeText(t.note.text,(0,a.D7)())}if(n){a.Rm.info("Setting state classes",c,n);const t=typeof n==="string"?[n]:n;t.forEach((t=>this.setCssClass(c,t.trim())))}if(o){a.Rm.info("Setting state styles",c,o);const t=typeof o==="string"?[o]:o;t.forEach((t=>this.setStyle(c,t.trim())))}if(l){a.Rm.info("Setting state styles",c,o);const t=typeof l==="string"?[l]:l;t.forEach((t=>this.setTextStyle(c,t.trim())))}}clear(t){this.nodes=[];this.edges=[];this.documents={root:bt()};this.currentDocument=this.documents.root;this.startEndCount=0;this.classes=St();if(!t){(0,a.IU)()}}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){a.Rm.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}startIdIfNeeded(t=""){let e=t;if(t===ht){this.startEndCount++;e=`${dt}${this.startEndCount}`}return e}startTypeIfNeeded(t="",e=m){return t===ht?dt:e}endIdIfNeeded(t=""){let e=t;if(t===ut){this.startEndCount++;e=`${pt}${this.startEndCount}`}return e}endTypeIfNeeded(t="",e=m){return t===ut?pt:e}addRelationObjs(t,e,s){let i=this.startIdIfNeeded(t.id.trim());let r=this.startTypeIfNeeded(t.id.trim(),t.type);let n=this.startIdIfNeeded(e.id.trim());let o=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);this.addState(n,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles);this.currentDocument.relations.push({id1:i,id2:n,relationTitle:a.Y2.sanitizeText(s,(0,a.D7)())})}addRelation(t,e,s){if(typeof t==="object"){this.addRelationObjs(t,e,s)}else{const i=this.startIdIfNeeded(t.trim());const r=this.startTypeIfNeeded(t);const n=this.endIdIfNeeded(e.trim());const o=this.endTypeIfNeeded(e);this.addState(i,r);this.addState(n,o);this.currentDocument.relations.push({id1:i,id2:n,title:a.Y2.sanitizeText(s,(0,a.D7)())})}}addDescription(t,e){const s=this.currentDocument.states.get(t);const i=e.startsWith(":")?e.replace(":","").trim():e;s.descriptions.push(a.Y2.sanitizeText(i,(0,a.D7)()))}cleanupLabel(t){if(t.substring(0,1)===":"){return t.substr(2).trim()}else{return t.trim()}}getDividerId(){this.dividerCnt++;return"divider-id-"+this.dividerCnt}addStyleClass(t,e=""){if(!this.classes.has(t)){this.classes.set(t,{id:t,styles:[],textStyles:[]})}const s=this.classes.get(t);if(e!==void 0&&e!==null){e.split(mt).forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(ft).exec(t)){const t=e.replace(yt,gt);const i=t.replace(ft,yt);s.textStyles.push(i)}s.styles.push(e)}))}}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach((t=>{let s=this.getState(t);if(s===void 0){const e=t.trim();this.addState(e);s=this.getState(e)}s.classes.push(e)}))}setStyle(t,e){const s=this.getState(t);if(s!==void 0){s.styles.push(e)}}setTextStyle(t,e){const s=this.getState(t);if(s!==void 0){s.textStyles.push(e)}}getDirectionStatement(){return this.rootDoc.find((t=>t.stmt===d))}getDirection(){return this.getDirectionStatement()?.value??c}setDirection(t){const e=this.getDirectionStatement();if(e){e.value=t}else{this.rootDoc.unshift({stmt:d,value:t})}}trimColon(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()}getData(){const t=(0,a.D7)();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:J(this.getRootDocV2())}}getConfig(){return(0,a.D7)().state}getAccTitle=a.iN;setAccTitle=a.SV;getAccDescription=a.m7;setAccDescription=a.EI;setDiagramTitle=a.ke;getDiagramTitle=a.ab};var vt=(0,a.K2)((t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`),"getStyles");var Tt=vt},15051:(t,e,s)=>{s.d(e,{A:()=>n,P:()=>a});var i=s(75905);var r=s(24982);var n=(0,i.K2)(((t,e)=>{let s;if(e==="sandbox"){s=(0,r.Ltv)("#i"+t)}const i=e==="sandbox"?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body");const n=i.select(`[id="${t}"]`);return n}),"getDiagramElement");var a=(0,i.K2)(((t,e,s,r)=>{t.attr("class",s);const{width:n,height:a,x:c,y:h}=o(t,e);(0,i.a$)(t,a,n,r);const d=l(c,h,n,a,e);t.attr("viewBox",d);i.Rm.debug(`viewBox configured: ${d} with padding: ${e}`)}),"setupViewPortForSVG");var o=(0,i.K2)(((t,e)=>{const s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+e*2,height:s.height+e*2,x:s.x,y:s.y}}),"calculateDimensionsWithPadding");var l=(0,i.K2)(((t,e,s,i,r)=>`${t-r} ${e-r} ${s} ${i}`),"createViewBox")}}]);
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/c49810b53ecc0d87d802.woff
ADDED
Binary file (5.79 kB). View file
|
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"title": "Launch Shortcuts",
|
3 |
+
"description": "Launch Shortcuts.",
|
4 |
+
"jupyter.lab.menus": {
|
5 |
+
"main": [
|
6 |
+
{
|
7 |
+
"id": "jp-mainmenu-help",
|
8 |
+
"items": [
|
9 |
+
{
|
10 |
+
"command": "jupyter-notebook:launch-tree",
|
11 |
+
"rank": 1
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
15 |
+
]
|
16 |
+
},
|
17 |
+
"properties": {},
|
18 |
+
"additionalProperties": false,
|
19 |
+
"type": "object"
|
20 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "@jupyter-notebook/lab-extension",
|
3 |
+
"version": "7.4.2",
|
4 |
+
"description": "Jupyter Notebook - Lab Extension",
|
5 |
+
"homepage": "https://github.com/jupyter/notebook",
|
6 |
+
"bugs": {
|
7 |
+
"url": "https://github.com/jupyter/notebook/issues"
|
8 |
+
},
|
9 |
+
"repository": {
|
10 |
+
"type": "git",
|
11 |
+
"url": "https://github.com/jupyter/notebook.git"
|
12 |
+
},
|
13 |
+
"license": "BSD-3-Clause",
|
14 |
+
"author": "Project Jupyter",
|
15 |
+
"sideEffects": [
|
16 |
+
"style/**/*.css",
|
17 |
+
"style/index.js"
|
18 |
+
],
|
19 |
+
"main": "lib/index.js",
|
20 |
+
"types": "lib/index.d.ts",
|
21 |
+
"style": "style/index.css",
|
22 |
+
"directories": {
|
23 |
+
"lib": "lib/"
|
24 |
+
},
|
25 |
+
"files": [
|
26 |
+
"lib/*.d.ts",
|
27 |
+
"lib/*.js.map",
|
28 |
+
"lib/*.js",
|
29 |
+
"schema/*.json",
|
30 |
+
"style/index.js"
|
31 |
+
],
|
32 |
+
"scripts": {
|
33 |
+
"build": "jlpm run build:labextension:dev",
|
34 |
+
"build:labextension": "jupyter labextension build .",
|
35 |
+
"build:labextension:dev": "jupyter labextension build --development True .",
|
36 |
+
"build:lib": "tsc -b",
|
37 |
+
"build:prod": "jlpm run build:labextension",
|
38 |
+
"clean": "jlpm run clean:lib && jlpm run clean:labextension",
|
39 |
+
"clean:labextension": "rimraf ../../notebook/labextension",
|
40 |
+
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
|
41 |
+
"watch": "run-p watch:src watch:labextension",
|
42 |
+
"watch:labextension": "jupyter labextension watch .",
|
43 |
+
"watch:src": "tsc -w"
|
44 |
+
},
|
45 |
+
"dependencies": {
|
46 |
+
"@jupyter-notebook/application": "^7.4.2",
|
47 |
+
"@jupyterlab/application": "~4.4.2",
|
48 |
+
"@jupyterlab/apputils": "~4.5.2",
|
49 |
+
"@jupyterlab/coreutils": "~6.4.2",
|
50 |
+
"@jupyterlab/docregistry": "~4.4.2",
|
51 |
+
"@jupyterlab/notebook": "~4.4.2",
|
52 |
+
"@jupyterlab/translation": "~4.4.2",
|
53 |
+
"@jupyterlab/ui-components": "~4.4.2",
|
54 |
+
"@lumino/commands": "^2.3.2",
|
55 |
+
"@lumino/disposable": "^2.1.4"
|
56 |
+
},
|
57 |
+
"devDependencies": {
|
58 |
+
"@jupyterlab/builder": "~4.4.2",
|
59 |
+
"rimraf": "^3.0.2",
|
60 |
+
"typescript": "~5.5.4"
|
61 |
+
},
|
62 |
+
"publishConfig": {
|
63 |
+
"access": "public"
|
64 |
+
},
|
65 |
+
"jupyterlab": {
|
66 |
+
"extension": true,
|
67 |
+
"outputDir": "../../notebook/labextension",
|
68 |
+
"schemaDir": "schema"
|
69 |
+
},
|
70 |
+
"nx": {
|
71 |
+
"targets": {
|
72 |
+
"build:labextension:dev": {
|
73 |
+
"dependsOn": [
|
74 |
+
"^build:lib",
|
75 |
+
"build:lib"
|
76 |
+
],
|
77 |
+
"outputs": [
|
78 |
+
"{workspaceRoot}/notebook/labextension",
|
79 |
+
"{workspaceRoot}/notebook/labextension/build_log.json"
|
80 |
+
]
|
81 |
+
},
|
82 |
+
"build:labextension": {
|
83 |
+
"dependsOn": [
|
84 |
+
"^build:lib",
|
85 |
+
"build:lib"
|
86 |
+
],
|
87 |
+
"outputs": [
|
88 |
+
"{workspaceRoot}/notebook/labextension"
|
89 |
+
]
|
90 |
+
},
|
91 |
+
"build": {
|
92 |
+
"dependsOn": [
|
93 |
+
"build:labextension:dev"
|
94 |
+
]
|
95 |
+
},
|
96 |
+
"build:prod": {
|
97 |
+
"dependsOn": [
|
98 |
+
"build:labextension"
|
99 |
+
]
|
100 |
+
}
|
101 |
+
}
|
102 |
+
},
|
103 |
+
"styleModule": "style/index.js"
|
104 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/199.f16f9d1ce907d41fa0e1.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"use strict";(self.webpackChunk_jupyter_notebook_lab_extension=self.webpackChunk_jupyter_notebook_lab_extension||[]).push([[199],{30:(e,t,i)=>{i.r(t),i.d(t,{INotebookPathOpener:()=>C,INotebookShell:()=>k,NotebookApp:()=>b,NotebookShell:()=>y,PanelHandler:()=>w,Private:()=>P,SidePanelHandler:()=>f,SidePanelPalette:()=>W,defaultNotebookPathOpener:()=>H});var n,s=i(40),a=i(151),r=i(950),d=i(448),o=i(571),l=i(797),h=i(188),p=i(697),g=i(930),u=i(901),c=i(882),_=i(801),m=i(633);class w{constructor(){this._panelChildHook=(e,t)=>{if("child-removed"===t.type){const e=t.child;p.ArrayExt.removeFirstWhere(this._items,(t=>t.widget===e))}return!0},this._items=new Array,this._panel=new c.Panel,m.MessageLoop.installMessageHook(this._panel,this._panelChildHook)}get panel(){return this._panel}addWidget(e,t){e.parent=null;const i={widget:e,rank:t},s=p.ArrayExt.upperBound(this._items,i,n.itemCmp);p.ArrayExt.insert(this._items,s,i),this._panel.insertWidget(s,e)}}class f extends w{constructor(e){super(),this._isHiddenByUser=!1,this._widgetAdded=new u.Signal(this),this._widgetRemoved=new u.Signal(this),this._area=e,this._panel.hide(),this._currentWidget=null,this._lastCurrentWidget=null,this._widgetPanel=new c.StackedPanel,this._widgetPanel.widgetRemoved.connect(this._onWidgetRemoved,this),this._closeButton=document.createElement("button"),_.closeIcon.element({container:this._closeButton,height:"16px",width:"auto"}),this._closeButton.onclick=()=>{this.collapse(),this.hide()},this._closeButton.className="jp-Button jp-SidePanel-collapse",this._closeButton.title="Collapse side panel";const t=new c.Widget({node:this._closeButton});this._panel.addWidget(t),this._panel.addWidget(this._widgetPanel)}get currentWidget(){return this._currentWidget||this._lastCurrentWidget||(this._items.length>0?this._items[0].widget:null)}get area(){return this._area}get isVisible(){return this._panel.isVisible}get panel(){return this._panel}get widgets(){return this._items.map((e=>e.widget))}get widgetAdded(){return this._widgetAdded}get widgetRemoved(){return this._widgetRemoved}get closeButton(){return this._closeButton}expand(e){e?this._currentWidget&&this._currentWidget.id===e?(this.collapse(),this.hide()):(this.collapse(),this.hide(),this.activate(e),this.show()):this.currentWidget&&(this._currentWidget=this.currentWidget,this.activate(this._currentWidget.id),this.show())}activate(e){const t=this._findWidgetByID(e);t&&(this._currentWidget=t,t.show(),t.activate())}has(e){return null!==this._findWidgetByID(e)}collapse(){var e;null===(e=this._currentWidget)||void 0===e||e.hide(),this._currentWidget=null}addWidget(e,t){e.parent=null,e.hide();const i={widget:e,rank:t},n=this._findInsertIndex(i);p.ArrayExt.insert(this._items,n,i),this._widgetPanel.insertWidget(n,e),this._refreshVisibility(),this._widgetAdded.emit(e)}hide(){this._isHiddenByUser=!0,this._refreshVisibility()}show(){this._isHiddenByUser=!1,this._refreshVisibility()}_findInsertIndex(e){return p.ArrayExt.upperBound(this._items,e,n.itemCmp)}_findWidgetIndex(e){return p.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e))}_findWidgetByID(e){const t=(0,p.find)(this._items,(t=>t.widget.id===e));return t?t.widget:null}_refreshVisibility(){this._panel.setHidden(this._isHiddenByUser)}_onWidgetRemoved(e,t){t===this._lastCurrentWidget&&(this._lastCurrentWidget=null),p.ArrayExt.removeAt(this._items,this._findWidgetIndex(t)),this._refreshVisibility(),this._widgetRemoved.emit(t)}}class W{constructor(e){this._items=[],this._commandPalette=e.commandPalette,this._command=e.command}getItem(e,t){const i=this._items;for(let n=0;n<i.length;n++){const s=i[n];if(s.widgetId===e.id&&s.area===t)return s}return null}addItem(e,t){if(this.getItem(e,t))return;const i=this._commandPalette.addItem({command:this._command,category:"View",args:{side:t,title:`Show ${e.title.caption}`,id:e.id}});this._items.push({widgetId:e.id,area:t,disposable:i})}removeItem(e,t){const i=this.getItem(e,t);i&&i.disposable.dispose()}}!function(e){e.itemCmp=function(e,t){return e.rank-t.rank}}(n||(n={}));const k=new g.Token("@jupyter-notebook/application:INotebookShell");class y extends c.Widget{constructor(){super(),this._translator=h.nullTranslator,this._currentChanged=new u.Signal(this),this._mainWidgetLoaded=new g.PromiseDelegate,this.id="main",this._userLayout={},this._topHandler=new w,this._menuHandler=new w,this._leftHandler=new f("left"),this._rightHandler=new f("right"),this._main=new c.Panel;const e=this._topWrapper=new c.Panel,t=this._menuWrapper=new c.Panel;this._topHandler.panel.id="top-panel",this._topHandler.panel.node.setAttribute("role","banner"),this._menuHandler.panel.id="menu-panel",this._menuHandler.panel.node.setAttribute("role","navigation"),this._main.id="main-panel",this._main.node.setAttribute("role","main"),this._spacer_top=new c.Widget,this._spacer_top.id="spacer-widget-top",this._spacer_bottom=new c.Widget,this._spacer_bottom.id="spacer-widget-bottom",e.id="top-panel-wrapper",e.addWidget(this._topHandler.panel),t.id="menu-panel-wrapper",t.addWidget(this._menuHandler.panel);const i=new c.BoxLayout,n=this._leftHandler,s=this._rightHandler;n.panel.id="jp-left-stack",n.panel.node.setAttribute("role","complementary"),s.panel.id="jp-right-stack",s.panel.node.setAttribute("role","complementary"),n.hide(),s.hide();const a=new c.BoxLayout({spacing:0,direction:"top-to-bottom"});c.BoxLayout.setStretch(this._topWrapper,0),c.BoxLayout.setStretch(this._menuWrapper,0),c.BoxLayout.setStretch(this._main,1);const r=new c.Panel({layout:a});r.addWidget(this._topWrapper),r.addWidget(this._menuWrapper),r.addWidget(this._spacer_top),r.addWidget(this._main),r.addWidget(this._spacer_bottom),r.layout=a;const d=new c.SplitPanel;d.id="jp-main-vsplit-panel",d.spacing=1,d.orientation="vertical",c.SplitPanel.setStretch(d,1);const o=new _.TabPanelSvg({tabsMovable:!0});this._downPanel=o,this._downPanel.id="jp-down-stack";const l=new c.SplitPanel;l.id="main-split-panel",l.spacing=1,c.BoxLayout.setStretch(l,1),c.SplitPanel.setStretch(n.panel,0),c.SplitPanel.setStretch(s.panel,0),c.SplitPanel.setStretch(r,1),l.addWidget(n.panel),l.addWidget(r),l.addWidget(s.panel),l.setRelativeSizes([1,2.5,1]),d.addWidget(l),d.addWidget(o),i.spacing=0,i.addWidget(d),this._downPanel.hide(),this._downPanel.tabBar.tabMoved.connect(this._onTabPanelChanged,this),this._downPanel.stackedPanel.widgetRemoved.connect(this._onTabPanelChanged,this),this.layout=i;const p=this._skipLinkWidgetHandler=new P.SkipLinkWidgetHandler(this);this.add(p.skipLinkWidget,"top",{rank:0}),this._skipLinkWidgetHandler.show()}get currentChanged(){return this._currentChanged}get currentWidget(){var e;return null!==(e=this._main.widgets[0])&&void 0!==e?e:null}get top(){return this._topWrapper}get menu(){return this._menuWrapper}get leftHandler(){return this._leftHandler}get rightHandler(){return this._rightHandler}get leftCollapsed(){return!(this._leftHandler.isVisible&&this._leftHandler.panel.isVisible)}get rightCollapsed(){return!(this._rightHandler.isVisible&&this._rightHandler.panel.isVisible)}get restored(){return this._mainWidgetLoaded.promise}get translator(){var e;return null!==(e=this._translator)&&void 0!==e?e:h.nullTranslator}set translator(e){if(e!==this._translator){this._translator=e;const t=e.load("notebook");this._leftHandler.closeButton.title=t.__("Collapse %1 side panel",this._leftHandler.area),this._rightHandler.closeButton.title=t.__("Collapse %1 side panel",this._rightHandler.area)}}get userLayout(){return g.JSONExt.deepCopy(this._userLayout)}activateById(e){for(const t of["main","top","left","right","menu","down"]){const i=(0,p.find)(this.widgets(t),(t=>t.id===e));i&&("left"===t?this.expandLeft(e):"right"===t?this.expandRight(e):"down"===t?(this._downPanel.show(),i.activate()):i.activate())}}add(e,t,i){var n,s;let a;a=(null==i?void 0:i.type)&&this._userLayout[i.type]?this._userLayout[i.type]:this._userLayout[e.id],t=null!==(n=null==a?void 0:a.area)&&void 0!==n?n:t;const r=null!==(s=null==(i=i||(null==a?void 0:a.options)?{...i,...null==a?void 0:a.options}:void 0)?void 0:i.rank)&&void 0!==s?s:900;switch(t){case"top":return this._topHandler.addWidget(e,r);case"menu":return this._menuHandler.addWidget(e,r);case"main":case void 0:{if(this._main.widgets.length>0)return;const t=this.currentWidget;this._main.addWidget(e),this._main.update(),this._currentChanged.emit({newValue:e,oldValue:t}),this._mainWidgetLoaded.resolve();break}case"left":return this._leftHandler.addWidget(e,r);case"right":return this._rightHandler.addWidget(e,r);case"down":return this._downPanel.addWidget(e);default:console.warn(`Cannot add widget to area: ${t}`)}}collapseTop(){this._topWrapper.setHidden(!0),this._spacer_top.setHidden(!0)}expandTop(){this._topWrapper.setHidden(!1),this._spacer_top.setHidden(!1)}*widgets(e){switch(null!=e?e:"main"){case"top":return void(yield*this._topHandler.panel.widgets);case"menu":return void(yield*this._menuHandler.panel.widgets);case"main":return void(yield*this._main.widgets);case"left":return void(yield*this._leftHandler.widgets);case"right":return void(yield*this._rightHandler.widgets);case"down":return void(yield*this._downPanel.widgets);default:return void console.error(`This shell has no area called "${e}"`)}}expandLeft(e){this._leftHandler.panel.show(),this._leftHandler.expand(e)}collapseLeft(){this._leftHandler.collapse(),this._leftHandler.panel.hide()}expandRight(e){this._rightHandler.panel.show(),this._rightHandler.expand(e)}collapseRight(){this._rightHandler.collapse(),this._rightHandler.panel.hide()}async restoreLayout(e){this._userLayout=e}_onTabPanelChanged(){0===this._downPanel.stackedPanel.widgets.length&&this._downPanel.hide()}}var P,v;!function(e){e.SkipLinkWidgetHandler=class{constructor(e){this._isDisposed=!1;const t=this._skipLinkWidget=new c.Widget,i=document.createElement("a");i.href="#first-cell",i.tabIndex=1,i.text="Skip to Main",i.className="skip-link",i.addEventListener("click",this),t.addClass("jp-skiplink"),t.id="jp-skiplink",t.node.appendChild(i)}handleEvent(e){"click"===e.type&&this._focusMain()}_focusMain(){const e=document.querySelector("#main-panel .jp-InputArea-editor");e.tabIndex=1,e.focus()}get skipLinkWidget(){return this._skipLinkWidget}dispose(){this.isDisposed||(this._isDisposed=!0,this._skipLinkWidget.node.removeEventListener("click",this),this._skipLinkWidget.dispose())}hide(){this._skipLinkWidget.hide()}show(){this._skipLinkWidget.show()}get isDisposed(){return this._isDisposed}}}(P||(P={}));class b extends s.JupyterFrontEnd{constructor(e={shell:new y}){var t,i;if(super({...e,shell:null!==(t=e.shell)&&void 0!==t?t:new y}),this.name="Jupyter Notebook",this.namespace=this.name,this.status=new d.J(this),this.version=null!==(i=o.PageConfig.getOption("appVersion"))&&void 0!==i?i:"unknown",this._info=s.JupyterLab.defaultInfo,this._formatter=new l.Throttler((()=>{v.setFormat(this)}),250),this.docRegistry.addModelFactory(new a.Base64ModelFactory),e.mimeExtensions)for(const t of(0,r.as)(e.mimeExtensions))this.registerPlugin(t);const n=Object.keys(s.JupyterLab.defaultInfo).reduce(((t,i)=>(i in e&&(t[i]=JSON.parse(JSON.stringify(e[i]))),t)),{});this._info={...s.JupyterLab.defaultInfo,...n},this.restored=this.shell.restored,this.restored.then((()=>this._formatter.invoke()))}get info(){return this._info}get paths(){return{urls:{base:o.PageConfig.getOption("baseUrl"),notFound:o.PageConfig.getOption("notFoundUrl"),app:o.PageConfig.getOption("appUrl"),static:o.PageConfig.getOption("staticUrl"),settings:o.PageConfig.getOption("settingsUrl"),themes:o.PageConfig.getOption("themesUrl"),doc:o.PageConfig.getOption("docUrl"),translations:o.PageConfig.getOption("translationsApiUrl"),hubHost:o.PageConfig.getOption("hubHost")||void 0,hubPrefix:o.PageConfig.getOption("hubPrefix")||void 0,hubUser:o.PageConfig.getOption("hubUser")||void 0,hubServerName:o.PageConfig.getOption("hubServerName")||void 0},directories:{appSettings:o.PageConfig.getOption("appSettingsDir"),schemas:o.PageConfig.getOption("schemasDir"),static:o.PageConfig.getOption("staticDir"),templates:o.PageConfig.getOption("templatesDir"),themes:o.PageConfig.getOption("themesDir"),userSettings:o.PageConfig.getOption("userSettingsDir"),serverRoot:o.PageConfig.getOption("serverRoot"),workspaces:o.PageConfig.getOption("workspacesDir")}}}handleEvent(e){super.handleEvent(e),"resize"===e.type&&this._formatter.invoke()}registerPluginModule(e){let t=e.default;Object.prototype.hasOwnProperty.call(e,"__esModule")||(t=e),Array.isArray(t)||(t=[t]),t.forEach((e=>{try{this.registerPlugin(e)}catch(e){console.error(e)}}))}registerPluginModules(e){e.forEach((e=>{this.registerPluginModule(e)}))}}!function(e){e.setFormat=function(e){e.format=window.matchMedia("only screen and (max-width: 760px)").matches?"mobile":"desktop"}}(v||(v={}));const H=new class{open(e){const{prefix:t,path:i,searchParams:n,target:s,features:a}=e,r=new URL(o.URLExt.join(t,null!=i?i:""),window.location.origin);return n&&(r.search=n.toString()),window.open(r,s,a)}},C=new g.Token("@jupyter-notebook/application:INotebookPathOpener")}}]);
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.4abd86605f9970bf2af0.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"use strict";(self.webpackChunk_jupyter_notebook_lab_extension=self.webpackChunk_jupyter_notebook_lab_extension||[]).push([[568],{568:(e,o,t)=>{t.r(o),t.d(o,{default:()=>m});var n,a=t(40),r=t(780),c=t(571),l=t(474),i=t(188),s=t(882),b=t(343),d=t(801);!function(e){e.launchNotebookTree="jupyter-notebook:launch-tree",e.openNotebook="jupyter-notebook:open-notebook",e.openLab="jupyter-notebook:open-lab",e.openNbClassic="jupyter-notebook:open-nbclassic"}(n||(n={}));const u={id:"@jupyter-notebook/lab-extension:interface-switcher",description:"A plugin to add custom toolbar items to the notebook page.",autoStart:!0,requires:[i.ITranslator],optional:[l.INotebookTracker,r.ICommandPalette,b.INotebookPathOpener,b.INotebookShell,a.ILabShell,r.IToolbarWidgetRegistry],activate:(e,o,t,a,r,l,i,u)=>{if(!t)return;const{commands:m,shell:p}=e,k=c.PageConfig.getBaseUrl(),h=o.load("notebook"),_="true"===c.PageConfig.getOption("nbclassic_enabled"),g=new s.Menu({commands:m}),f=[],N=null!=r?r:b.defaultNotebookPathOpener;l||f.push({command:n.openNotebook,commandLabel:h.__("Notebook"),commandDescription:h.__("Open in %1","Jupyter Notebook"),buttonLabel:"openNotebook",urlPrefix:`${k}tree`}),i||f.push({command:n.openLab,commandLabel:h.__("JupyterLab"),commandDescription:h.__("Open in %1","JupyterLab"),buttonLabel:"openLab",urlPrefix:`${k}doc/tree`}),_&&f.push({command:n.openNbClassic,commandLabel:h.__("NbClassic"),commandDescription:h.__("Open in %1","NbClassic"),buttonLabel:"openNbClassic",urlPrefix:`${k}nbclassic/notebooks`});const y=()=>null!==t.currentWidget&&t.currentWidget===p.currentWidget;let C;if(f.forEach((e=>{const{command:o}=e;(e=>{const{command:o,commandLabel:n,commandDescription:r,urlPrefix:c}=e;m.addCommand(o,{label:e=>(e.noLabel,e.isMenu||e.isPalette?r:n),caption:n,execute:()=>{const e=t.currentWidget;e&&N.open({prefix:c,path:e.context.path})},isEnabled:y}),a&&a.addItem({command:o,category:"Other",args:{isPalette:!0}})})(e),g.addItem({command:o})})),1===f.length)C=e=>{const o=new d.CommandToolbarButton({commands:m,id:f[0].command,label:f[0].commandLabel,icon:d.launchIcon});return o.addClass("jp-nb-interface-switcher-button"),o};else{const e={overflowMenuOptions:{isVisible:!1}},o=new s.MenuBar(e);g.title.label=h.__("Open in..."),g.title.icon=d.caretDownIcon,o.addMenu(g),C=o=>{const t=new s.MenuBar(e);return t.addMenu(g),t.addClass("jp-InterfaceSwitcher"),t}}u&&u.addFactory("Notebook","interfaceSwitcher",C)}},m=[{id:"@jupyter-notebook/lab-extension:launch-tree",description:"A plugin to add a command to open the Jupyter Notebook Tree.",autoStart:!0,requires:[i.ITranslator],optional:[r.ICommandPalette],activate:(e,o,t)=>{const{commands:a}=e,r=o.load("notebook"),l=r.__("Help");a.addCommand(n.launchNotebookTree,{label:r.__("Launch Jupyter Notebook File Browser"),execute:()=>{const e=c.URLExt.join(c.PageConfig.getBaseUrl(),"tree");window.open(e)}}),t&&t.addItem({command:n.launchNotebookTree,category:l})}},u]}}]);
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.327ec9d7a9413375ec45.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"use strict";(self.webpackChunk_jupyter_notebook_lab_extension=self.webpackChunk_jupyter_notebook_lab_extension||[]).push([[928],{950:(t,e,r)=>{r.d(e,{as:()=>p});var n=r(780),i=r(151),a=r(160),o=r(188),s=r(801),c=r(930),d=r(4);const u=new c.Token("@jupyterlab/application:ILayoutRestorer","A service providing application layout restoration functionality. Use this to have your activities restored across page loads.");var y;!function(t){function e(r){return r&&r.type?"tab-area"===r.type?{type:"tab-area",currentIndex:r.currentIndex,widgets:r.widgets.map((e=>t.nameProperty.get(e))).filter((t=>!!t))}:{type:"split-area",orientation:r.orientation,sizes:r.sizes,children:r.children.map(e).filter((t=>!!t))}:null}function r(t,e){if(!t)return null;const n=t.type||"unknown";if("unknown"===n||"tab-area"!==n&&"split-area"!==n)return console.warn(`Attempted to deserialize unknown type: ${n}`),null;if("tab-area"===n){const{currentIndex:r,widgets:n}=t,i={type:"tab-area",currentIndex:r||0,widgets:n&&n.map((t=>e.get(t))).filter((t=>!!t))||[]};return i.currentIndex>i.widgets.length-1&&(i.currentIndex=0),i}const{orientation:i,sizes:a,children:o}=t;return{type:"split-area",orientation:i,sizes:a||[],children:o&&o.map((t=>r(t,e))).filter((t=>!!t))||[]}}t.nameProperty=new d.AttachedProperty({name:"name",create:t=>""}),t.serializeMain=function(r){const n={dock:r&&r.dock&&e(r.dock.main)||null};if(r&&r.currentWidget){const e=t.nameProperty.get(r.currentWidget);e&&(n.current=e)}return n},t.deserializeMain=function(t,e){if(!t)return null;const n=t.current||null,i=t.dock||null;return{currentWidget:n&&e.has(n)&&e.get(n)||null,dock:i?{main:r(i,e)}:null}}}(y||(y={}));const l=new c.Token("@jupyterlab/application:IMimeDocumentTracker","A widget tracker for documents rendered using a mime renderer extension. Use this if you want to list and interact with documents rendered by such extensions.");function p(t){const e=[],r=new n.WidgetTracker({namespace:"application-mimedocuments"});return t.forEach((t=>{let n=t.default;t.hasOwnProperty("__esModule")||(n=t),Array.isArray(n)||(n=[n]),n.forEach((t=>{e.push(function(t,e){return{id:e.id,description:e.description,requires:[a.IRenderMimeRegistry,o.ITranslator],autoStart:!0,activate:(r,n,a)=>{if(void 0!==e.rank?n.addFactory(e.rendererFactory,e.rank):n.addFactory(e.rendererFactory),!e.documentWidgetFactoryOptions)return;const o=r.docRegistry;let c=[];c=Array.isArray(e.documentWidgetFactoryOptions)?e.documentWidgetFactoryOptions:[e.documentWidgetFactoryOptions],e.fileTypes&&e.fileTypes.forEach((t=>{t.icon&&(t={...t,icon:s.LabIcon.resolve({icon:t.icon})}),r.docRegistry.addFileType(t)})),c.forEach((r=>{const s=r.toolbarFactory?t=>r.toolbarFactory(t.content.renderer):void 0,c=new i.MimeDocumentFactory({renderTimeout:e.renderTimeout,dataType:e.dataType,rendermime:n,modelName:r.modelName,name:r.name,primaryFileType:o.getFileType(r.primaryFileType),fileTypes:r.fileTypes,defaultFor:r.defaultFor,defaultRendered:r.defaultRendered,toolbarFactory:s,translator:a,factory:e.rendererFactory});o.addWidgetFactory(c),c.widgetCreated.connect(((e,r)=>{m.factoryNameProperty.set(r,c.name),r.context.pathChanged.connect((()=>{t.save(r)})),t.add(r)}))}))}}}(r,t))}))})),e.push({id:"@jupyterlab/application-extension:mimedocument",description:"Provides a mime document widget tracker.",optional:[u],provides:l,autoStart:!0,activate:(t,e)=>(e&&e.restore(r,{command:"docmanager:open",args:t=>({path:t.context.path,factory:m.factoryNameProperty.get(t)}),name:t=>`${t.context.path}:${m.factoryNameProperty.get(t)}`}),r)}),e}var m;!function(t){t.factoryNameProperty=new d.AttachedProperty({name:"factoryName",create:()=>{}})}(m||(m={}))},448:(t,e,r)=>{r.d(e,{J:()=>a});var n=r(717),i=r(901);class a{constructor(t){this._busyCount=0,this._dirtyCount=0,this._busySignal=new i.Signal(t),this._dirtySignal=new i.Signal(t)}get busySignal(){return this._busySignal}get dirtySignal(){return this._dirtySignal}get isBusy(){return this._busyCount>0}get isDirty(){return this._dirtyCount>0}setDirty(){const t=this.isDirty;return this._dirtyCount++,this.isDirty!==t&&this._dirtySignal.emit(this.isDirty),new n.DisposableDelegate((()=>{const t=this.isDirty;this._dirtyCount=Math.max(0,this._dirtyCount-1),this.isDirty!==t&&this._dirtySignal.emit(this.isDirty)}))}setBusy(){const t=this.isBusy;return this._busyCount++,this.isBusy!==t&&this._busySignal.emit(this.isBusy),new n.DisposableDelegate((()=>{const t=this.isBusy;this._busyCount--,this.isBusy!==t&&this._busySignal.emit(this.isBusy)}))}}}}]);
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"use strict";(self.webpackChunk_jupyter_notebook_lab_extension=self.webpackChunk_jupyter_notebook_lab_extension||[]).push([[93],{122:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(961),o=t.n(r),a=t(242),i=t.n(a)()(o());i.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-InterfaceSwitcher {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.jp-InterfaceSwitcher .lm-MenuBar-itemIcon svg {\n vertical-align: sub;\n}\n\n.jp-nb-interface-switcher-button > .jp-ToolbarButtonComponent::part(content) {\n flex-direction: row-reverse;\n}\n\n.jp-nb-interface-switcher-button > .jp-ToolbarButtonComponent > svg {\n padding-left: 3px;\n}\n",""]);const c=i},242:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(i[s]=!0)}for(var u=0;u<e.length;u++){var p=[].concat(e[u]);r&&i[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),t&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=t):p[2]=t),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),n.push(p))}},n}},961:e=>{e.exports=function(e){return e[1]}},398:e=>{var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var a={},i=[],c=0;c<e.length;c++){var s=e[c],u=r.base?s[0]+r.base:s[0],p=a[u]||0,l="".concat(u," ").concat(p);a[u]=p+1;var f=t(l),d={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)n[f].references++,n[f].updater(d);else{var v=o(d,r);r.byIndex=c,n.splice(c,0,{identifier:l,updater:v,references:1})}i.push(l)}return i}function o(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var c=t(a[i]);n[c].references--}for(var s=r(e,o),u=0;u<a.length;u++){var p=t(a[u]);0===n[p].references&&(n[p].updater(),n.splice(p,1))}a=s}}},955:e=>{var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},133:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},826:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},608:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,o&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},51:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},93:(e,n,t)=>{t.r(n);var r=t(398),o=t.n(r),a=t(608),i=t.n(a),c=t(955),s=t.n(c),u=t(826),p=t.n(u),l=t(133),f=t.n(l),d=t(51),v=t.n(d),m=t(122),h={};h.styleTagTransform=v(),h.setAttributes=p(),h.insert=s().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=f(),o()(m.Z,h),m.Z&&m.Z.locals&&m.Z.locals}}]);
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab-plotly/install.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"schemaVersion": 1,
|
3 |
+
"name": "jupyterlab-plotly",
|
4 |
+
"version": "6.0.1",
|
5 |
+
"jupyterlab": {
|
6 |
+
"mimeExtension": "lib/mimeExtension.js"
|
7 |
+
}
|
8 |
+
}
|
9 |
+
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab-plotly/static/340.2a23c8275d47a2531dae.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab-plotly/static/remoteEntry.5153b2c003c011c482e3.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
var _JUPYTERLAB;(()=>{"use strict";var e,r,t={987:(e,r,t)=>{var o={"./index":()=>t.e(340).then((()=>()=>t(340))),"./mimeExtension":()=>t.e(340).then((()=>()=>t(340)))},a=(e,r)=>(t.R=r,r=t.o(o,e)?o[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),n=(e,r)=>{if(t.S){var o="default",a=t.S[o];if(a&&a!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=e,t.I(o,r)}};t.d(r,{get:()=>a,init:()=>n})}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,a),n.exports}a.m=t,a.c=o,a.amdO={},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((r,t)=>(a.f[t](e,r),r)),[])),a.u=e=>e+".2a23c8275d47a2531dae.js?v=2a23c8275d47a2531dae",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="jupyterlab-plotly:",a.l=(t,o,n,i)=>{if(e[t])e[t].push(o);else{var l,u;if(void 0!==n)for(var d=document.getElementsByTagName("script"),p=0;p<d.length;p++){var s=d[p];if(s.getAttribute("src")==t||s.getAttribute("data-webpack")==r+n){l=s;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",r+n),l.src=t),e[t]=[o];var c=(r,o)=>{l.onerror=l.onload=null,clearTimeout(f);var a=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(o))),r)return r(o)},f=setTimeout(c.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=c.bind(null,l.onerror),l.onload=c.bind(null,l.onload),u&&document.head.appendChild(l)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{a.S={};var e={},r={};a.I=(t,o)=>{o||(o=[]);var n=r[t];if(n||(n=r[t]={}),!(o.indexOf(n)>=0)){if(o.push(n),e[t])return e[t];a.o(a.S,t)||(a.S[t]={});var i=a.S[t],l="jupyterlab-plotly",u=[];return"default"===t&&((e,r,t,o)=>{var n=i[e]=i[e]||{},u=n[r];(!u||!u.loaded&&(1!=!u.eager?o:l>u.from))&&(n[r]={get:()=>a.e(340).then((()=>()=>a(340))),from:l,eager:!1})})("jupyterlab-plotly","6.0.1"),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var r=a.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 o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={80:0};a.f.j=(r,t)=>{var o=a.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else{var n=new Promise(((t,a)=>o=e[r]=[t,a]));t.push(o[2]=n);var i=a.p+a.u(r),l=new Error;a.l(i,(t=>{if(a.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var n=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+n+": "+i+")",l.name="ChunkLoadError",l.type=n,l.request=i,o[1](l)}}),"chunk-"+r,r)}};var r=(r,t)=>{var o,n,[i,l,u]=t,d=0;if(i.some((r=>0!==e[r]))){for(o in l)a.o(l,o)&&(a.m[o]=l[o]);u&&u(a)}for(r&&r(t);d<i.length;d++)n=i[d],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0},t=self.webpackChunkjupyterlab_plotly=self.webpackChunkjupyterlab_plotly||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var n=a(987);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["jupyterlab-plotly"]=n})();
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab_pygments/static/747.67662283a5707eeb4d4c.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"use strict";(self.webpackChunkjupyterlab_pygments=self.webpackChunkjupyterlab_pygments||[]).push([[747],{150:(r,o,t)=>{t.d(o,{Z:()=>c});var e=t(81),i=t.n(e),n=t(645),l=t.n(n)()(i());l.push([r.id,"\n/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n/* This file was auto-generated by generate_css.py in jupyterlab_pygments */\n\n.highlight .hll { background-color: var(--jp-cell-editor-active-background) }\n.highlight { background: var(--jp-cell-editor-background); color: var(--jp-mirror-editor-variable-color) }\n.highlight .c { color: var(--jp-mirror-editor-comment-color); font-style: italic } /* Comment */\n.highlight .err { color: var(--jp-mirror-editor-error-color) } /* Error */\n.highlight .k { color: var(--jp-mirror-editor-keyword-color); font-weight: bold } /* Keyword */\n.highlight .o { color: var(--jp-mirror-editor-operator-color); font-weight: bold } /* Operator */\n.highlight .p { color: var(--jp-mirror-editor-punctuation-color) } /* Punctuation */\n.highlight .ch { color: var(--jp-mirror-editor-comment-color); font-style: italic } /* Comment.Hashbang */\n.highlight .cm { color: var(--jp-mirror-editor-comment-color); font-style: italic } /* Comment.Multiline */\n.highlight .cp { color: var(--jp-mirror-editor-comment-color); font-style: italic } /* Comment.Preproc */\n.highlight .cpf { color: var(--jp-mirror-editor-comment-color); font-style: italic } /* Comment.PreprocFile */\n.highlight .c1 { color: var(--jp-mirror-editor-comment-color); font-style: italic } /* Comment.Single */\n.highlight .cs { color: var(--jp-mirror-editor-comment-color); font-style: italic } /* Comment.Special */\n.highlight .kc { color: var(--jp-mirror-editor-keyword-color); font-weight: bold } /* Keyword.Constant */\n.highlight .kd { color: var(--jp-mirror-editor-keyword-color); font-weight: bold } /* Keyword.Declaration */\n.highlight .kn { color: var(--jp-mirror-editor-keyword-color); font-weight: bold } /* Keyword.Namespace */\n.highlight .kp { color: var(--jp-mirror-editor-keyword-color); font-weight: bold } /* Keyword.Pseudo */\n.highlight .kr { color: var(--jp-mirror-editor-keyword-color); font-weight: bold } /* Keyword.Reserved */\n.highlight .kt { color: var(--jp-mirror-editor-keyword-color); font-weight: bold } /* Keyword.Type */\n.highlight .m { color: var(--jp-mirror-editor-number-color) } /* Literal.Number */\n.highlight .s { color: var(--jp-mirror-editor-string-color) } /* Literal.String */\n.highlight .ow { color: var(--jp-mirror-editor-operator-color); font-weight: bold } /* Operator.Word */\n.highlight .pm { color: var(--jp-mirror-editor-punctuation-color) } /* Punctuation.Marker */\n.highlight .w { color: var(--jp-mirror-editor-variable-color) } /* Text.Whitespace */\n.highlight .mb { color: var(--jp-mirror-editor-number-color) } /* Literal.Number.Bin */\n.highlight .mf { color: var(--jp-mirror-editor-number-color) } /* Literal.Number.Float */\n.highlight .mh { color: var(--jp-mirror-editor-number-color) } /* Literal.Number.Hex */\n.highlight .mi { color: var(--jp-mirror-editor-number-color) } /* Literal.Number.Integer */\n.highlight .mo { color: var(--jp-mirror-editor-number-color) } /* Literal.Number.Oct */\n.highlight .sa { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Affix */\n.highlight .sb { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Backtick */\n.highlight .sc { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Char */\n.highlight .dl { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Delimiter */\n.highlight .sd { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Doc */\n.highlight .s2 { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Double */\n.highlight .se { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Escape */\n.highlight .sh { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Heredoc */\n.highlight .si { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Interpol */\n.highlight .sx { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Other */\n.highlight .sr { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Regex */\n.highlight .s1 { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Single */\n.highlight .ss { color: var(--jp-mirror-editor-string-color) } /* Literal.String.Symbol */\n.highlight .il { color: var(--jp-mirror-editor-number-color) } /* Literal.Number.Integer.Long */",""]);const c=l},645:r=>{r.exports=function(r){var o=[];return o.toString=function(){return this.map((function(o){var t="",e=void 0!==o[5];return o[4]&&(t+="@supports (".concat(o[4],") {")),o[2]&&(t+="@media ".concat(o[2]," {")),e&&(t+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),t+=r(o),e&&(t+="}"),o[2]&&(t+="}"),o[4]&&(t+="}"),t})).join("")},o.i=function(r,t,e,i,n){"string"==typeof r&&(r=[[null,r,void 0]]);var l={};if(e)for(var c=0;c<this.length;c++){var a=this[c][0];null!=a&&(l[a]=!0)}for(var h=0;h<r.length;h++){var g=[].concat(r[h]);e&&l[g[0]]||(void 0!==n&&(void 0===g[5]||(g[1]="@layer".concat(g[5].length>0?" ".concat(g[5]):""," {").concat(g[1],"}")),g[5]=n),t&&(g[2]?(g[1]="@media ".concat(g[2]," {").concat(g[1],"}"),g[2]=t):g[2]=t),i&&(g[4]?(g[1]="@supports (".concat(g[4],") {").concat(g[1],"}"),g[4]=i):g[4]="".concat(i)),o.push(g))}},o}},81:r=>{r.exports=function(r){return r[1]}},379:r=>{var o=[];function t(r){for(var t=-1,e=0;e<o.length;e++)if(o[e].identifier===r){t=e;break}return t}function e(r,e){for(var n={},l=[],c=0;c<r.length;c++){var a=r[c],h=e.base?a[0]+e.base:a[0],g=n[h]||0,s="".concat(h," ").concat(g);n[h]=g+1;var d=t(s),p={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==d)o[d].references++,o[d].updater(p);else{var m=i(p,e);e.byIndex=c,o.splice(c,0,{identifier:s,updater:m,references:1})}l.push(s)}return l}function i(r,o){var t=o.domAPI(o);return t.update(r),function(o){if(o){if(o.css===r.css&&o.media===r.media&&o.sourceMap===r.sourceMap&&o.supports===r.supports&&o.layer===r.layer)return;t.update(r=o)}else t.remove()}}r.exports=function(r,i){var n=e(r=r||[],i=i||{});return function(r){r=r||[];for(var l=0;l<n.length;l++){var c=t(n[l]);o[c].references--}for(var a=e(r,i),h=0;h<n.length;h++){var g=t(n[h]);0===o[g].references&&(o[g].updater(),o.splice(g,1))}n=a}}},569:r=>{var o={};r.exports=function(r,t){var e=function(r){if(void 0===o[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(r){t=null}o[r]=t}return o[r]}(r);if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");e.appendChild(t)}},216:r=>{r.exports=function(r){var o=document.createElement("style");return r.setAttributes(o,r.attributes),r.insert(o,r.options),o}},565:(r,o,t)=>{r.exports=function(r){var o=t.nc;o&&r.setAttribute("nonce",o)}},795:r=>{r.exports=function(r){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var o=r.insertStyleElement(r);return{update:function(t){!function(r,o,t){var e="";t.supports&&(e+="@supports (".concat(t.supports,") {")),t.media&&(e+="@media ".concat(t.media," {"));var i=void 0!==t.layer;i&&(e+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),e+=t.css,i&&(e+="}"),t.media&&(e+="}"),t.supports&&(e+="}");var n=t.sourceMap;n&&"undefined"!=typeof btoa&&(e+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),o.styleTagTransform(e,r,o.options)}(o,r,t)},remove:function(){!function(r){if(null===r.parentNode)return!1;r.parentNode.removeChild(r)}(o)}}}},589:r=>{r.exports=function(r,o){if(o.styleSheet)o.styleSheet.cssText=r;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(r))}}},747:(r,o,t)=>{t.r(o);var e=t(379),i=t.n(e),n=t(795),l=t.n(n),c=t(569),a=t.n(c),h=t(565),g=t.n(h),s=t(216),d=t.n(s),p=t(589),m=t.n(p),u=t(150),v={};v.styleTagTransform=m(),v.setAttributes=g(),v.insert=a().bind(null,"head"),v.domAPI=l(),v.insertStyleElement=d(),i()(u.Z,v),u.Z&&u.Z.locals&&u.Z.locals}}]);
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab_pygments/static/remoteEntry.5cbb9d2323598fbda535.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
var _JUPYTERLAB;(()=>{"use strict";var e,r,t={741:(e,r,t)=>{var n={"./index":()=>t.e(568).then((()=>()=>t(568))),"./extension":()=>t.e(568).then((()=>()=>t(568))),"./style":()=>t.e(747).then((()=>()=>t(747)))},a=(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),o=(e,r)=>{if(t.S){var n="default",a=t.S[n];if(a&&a!==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:()=>a,init:()=>o})}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,exports:{}};return t[e](o,o.exports,a),o.exports}a.m=t,a.c=n,a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((r,t)=>(a.f[t](e,r),r)),[])),a.u=e=>e+"."+{568:"1e2faa2ba0bbe59c4780",747:"67662283a5707eeb4d4c"}[e]+".js?v="+{568:"1e2faa2ba0bbe59c4780",747:"67662283a5707eeb4d4c"}[e],a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="jupyterlab_pygments:",a.l=(t,n,o,i)=>{if(e[t])e[t].push(n);else{var l,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),d=0;d<s.length;d++){var c=s[d];if(c.getAttribute("src")==t||c.getAttribute("data-webpack")==r+o){l=c;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",r+o),l.src=t),e[t]=[n];var p=(r,n)=>{l.onerror=l.onload=null,clearTimeout(f);var a=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),r)return r(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),u&&document.head.appendChild(l)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{a.S={};var e={},r={};a.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];a.o(a.S,t)||(a.S[t]={});var i=a.S[t],l="jupyterlab_pygments",u=[];return"default"===t&&((e,r,t,n)=>{var o=i[e]=i[e]||{},u=o[r];(!u||!u.loaded&&(1!=!u.eager?n:l>u.from))&&(o[r]={get:()=>a.e(568).then((()=>()=>a(568))),from:l,eager:!1})})("jupyterlab_pygments","0.3.0"),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var r=a.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(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={761:0};a.f.j=(r,t)=>{var n=a.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,a)=>n=e[r]=[t,a]));t.push(n[2]=o);var i=a.p+a.u(r),l=new Error;a.l(i,(t=>{if(a.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,n[1](l)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[i,l,u]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in l)a.o(l,n)&&(a.m[n]=l[n]);u&&u(a)}for(r&&r(t);s<i.length;s++)o=i[s],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkjupyterlab_pygments=self.webpackChunkjupyterlab_pygments||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),a.nc=void 0;var o=a(741);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB).jupyterlab_pygments=o})();
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/labextensions/jupyterlab_pygments/static/style.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* This is a generated file of CSS imports */
|
2 |
+
/* It was generated by @jupyterlab/builder in Build.ensureAssets() */
|
3 |
+
|
4 |
+
import 'jupyterlab_pygments/style/index.js';
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/asciidoc/conf.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_template": "base",
|
3 |
+
"mimetypes": {
|
4 |
+
"text/asciidoc": true
|
5 |
+
}
|
6 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/asciidoc/index.asciidoc.j2
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{% extends 'display_priority.j2' %}
|
2 |
+
|
3 |
+
|
4 |
+
{% block input %}
|
5 |
+
{% if resources.global_content_filter.include_input_prompt %}
|
6 |
+
{% if cell.execution_count is defined -%}
|
7 |
+
+*In[{{ cell.execution_count|replace(None, " ") }}]:*+
|
8 |
+
{% else %}
|
9 |
+
+*In[]:*+
|
10 |
+
{%- endif -%}
|
11 |
+
{%- endif -%}
|
12 |
+
[source
|
13 |
+
{%- if 'magics_language' in cell.metadata -%}
|
14 |
+
, {{ cell.metadata.magics_language}}
|
15 |
+
{%- elif 'pygments_lexer' in nb.metadata.get('language_info', {}) -%}
|
16 |
+
, {{ nb.metadata.language_info.pygments_lexer }}
|
17 |
+
{%- elif 'name' in nb.metadata.get('language_info', {}) -%}
|
18 |
+
, {{ nb.metadata.language_info.name }}
|
19 |
+
{%- endif -%}]
|
20 |
+
----
|
21 |
+
{{ cell.source}}
|
22 |
+
----
|
23 |
+
{% endblock input %}
|
24 |
+
|
25 |
+
{% block output_group %}
|
26 |
+
{% if resources.global_content_filter.include_output_prompt %}
|
27 |
+
{% if cell.execution_count is defined -%}
|
28 |
+
+*Out[{{ cell.execution_count|replace(None, " ") }}]:*+
|
29 |
+
{%- else -%}
|
30 |
+
+*Out[]:*+
|
31 |
+
{%- endif -%}
|
32 |
+
{%- endif %}
|
33 |
+
----
|
34 |
+
{{- super() -}}
|
35 |
+
----
|
36 |
+
{% endblock output_group %}
|
37 |
+
|
38 |
+
{% block error %}
|
39 |
+
{{ super() }}
|
40 |
+
{% endblock error %}
|
41 |
+
|
42 |
+
{% block traceback_line %}
|
43 |
+
{{ line | indent | strip_ansi }}
|
44 |
+
{% endblock traceback_line %}
|
45 |
+
|
46 |
+
{%- block execute_result %}
|
47 |
+
{%- block data_priority scoped %}
|
48 |
+
{{- super() -}}
|
49 |
+
{%- endblock %}
|
50 |
+
{%- endblock execute_result %}
|
51 |
+
|
52 |
+
{% block stream %}
|
53 |
+
{{ output.text -}}
|
54 |
+
{% endblock stream %}
|
55 |
+
|
56 |
+
{% block data_svg %}
|
57 |
+

|
58 |
+
{% endblock data_svg %}
|
59 |
+
|
60 |
+
{% block data_png %}
|
61 |
+

|
62 |
+
{% endblock data_png %}
|
63 |
+
|
64 |
+
{% block data_jpg %}
|
65 |
+

|
66 |
+
{% endblock data_jpg %}
|
67 |
+
|
68 |
+
{% block data_latex %}
|
69 |
+
{{ output.data['text/latex'] | convert_pandoc(from_format="latex", to_format="asciidoc")}}
|
70 |
+
{% endblock data_latex %}
|
71 |
+
|
72 |
+
{% block data_html scoped %}
|
73 |
+
{{ output.data['text/html'] | convert_pandoc(from_format='html', to_format='asciidoc')}}
|
74 |
+
{% endblock data_html %}
|
75 |
+
|
76 |
+
{% block data_markdown scoped %}
|
77 |
+
{{ output.data['text/markdown'] | markdown2asciidoc}}
|
78 |
+
{% endblock data_markdown %}
|
79 |
+
|
80 |
+
{% block data_text scoped %}
|
81 |
+
{{-output.data['text/plain']-}}
|
82 |
+
{% endblock data_text %}
|
83 |
+
|
84 |
+
{% block markdowncell scoped %}
|
85 |
+
{{ cell.source | markdown2asciidoc}}
|
86 |
+
{% endblock markdowncell %}
|
87 |
+
|
88 |
+
{% block unknowncell scoped %}
|
89 |
+
unknown type {{ cell.type }}
|
90 |
+
{% endblock unknowncell %}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/base/celltags.j2
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{%- macro celltags(cell) -%}
|
2 |
+
{% if cell.metadata.tags | length > 0 -%}
|
3 |
+
{% for tag in (cell.metadata.tags) -%}
|
4 |
+
{{ (' celltag_' ~ tag) | escape_html -}}
|
5 |
+
{%- endfor -%}
|
6 |
+
{%- endif %}
|
7 |
+
{%- endmacro %}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/basic/conf.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_template": "classic",
|
3 |
+
"mimetypes": {
|
4 |
+
"text/html": true
|
5 |
+
}
|
6 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/basic/index.html.j2
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{%- extends 'classic/base.html.j2' -%}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/classic/base.html.j2
ADDED
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{%- extends 'display_priority.j2' -%}
|
2 |
+
{% from 'celltags.j2' import celltags %}
|
3 |
+
{% from 'cell_id_anchor.j2' import cell_id_anchor %}
|
4 |
+
|
5 |
+
{% block codecell %}
|
6 |
+
<div {{ cell_id_anchor(cell) }} class="cell border-box-sizing code_cell rendered{{ celltags(cell) }}">
|
7 |
+
{{ super() }}
|
8 |
+
</div>
|
9 |
+
{%- endblock codecell %}
|
10 |
+
|
11 |
+
{% block input_group -%}
|
12 |
+
<div class="input">
|
13 |
+
{{ super() }}
|
14 |
+
</div>
|
15 |
+
{% endblock input_group %}
|
16 |
+
|
17 |
+
{% block output_group %}
|
18 |
+
<div class="output_wrapper">
|
19 |
+
<div class="output">
|
20 |
+
{{ super() }}
|
21 |
+
</div>
|
22 |
+
</div>
|
23 |
+
{% endblock output_group %}
|
24 |
+
|
25 |
+
{% block in_prompt -%}
|
26 |
+
<div class="prompt input_prompt">
|
27 |
+
{%- if cell.execution_count is defined -%}
|
28 |
+
In [{{ cell.execution_count|replace(None, " ") }}]:
|
29 |
+
{%- else -%}
|
30 |
+
In [ ]:
|
31 |
+
{%- endif -%}
|
32 |
+
</div>
|
33 |
+
{%- endblock in_prompt %}
|
34 |
+
|
35 |
+
{% block empty_in_prompt -%}
|
36 |
+
<div class="prompt input_prompt">
|
37 |
+
</div>
|
38 |
+
{%- endblock empty_in_prompt %}
|
39 |
+
|
40 |
+
{#
|
41 |
+
output_prompt doesn't do anything in HTML,
|
42 |
+
because there is a prompt div in each output area (see output block)
|
43 |
+
#}
|
44 |
+
{% block output_prompt %}
|
45 |
+
{% endblock output_prompt %}
|
46 |
+
|
47 |
+
{% block input %}
|
48 |
+
<div class="inner_cell">
|
49 |
+
<div class="input_area">
|
50 |
+
{{ cell.source | highlight_code(metadata=cell.metadata) | clean_html }}
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
{%- endblock input %}
|
54 |
+
|
55 |
+
{% block output_area_prompt %}
|
56 |
+
{%- if output.output_type == 'execute_result' -%}
|
57 |
+
<div class="prompt output_prompt">
|
58 |
+
{%- if cell.execution_count is defined -%}
|
59 |
+
Out[{{ cell.execution_count|replace(None, " ") }}]:
|
60 |
+
{%- else -%}
|
61 |
+
Out[ ]:
|
62 |
+
{%- endif -%}
|
63 |
+
{%- else -%}
|
64 |
+
<div class="prompt">
|
65 |
+
{%- endif -%}
|
66 |
+
</div>
|
67 |
+
{% endblock output_area_prompt %}
|
68 |
+
|
69 |
+
{% block output %}
|
70 |
+
<div class="output_area">
|
71 |
+
{% if resources.global_content_filter.include_output_prompt %}
|
72 |
+
{{ self.output_area_prompt() }}
|
73 |
+
{% endif %}
|
74 |
+
{{ super() }}
|
75 |
+
</div>
|
76 |
+
{% endblock output %}
|
77 |
+
|
78 |
+
{% block markdowncell scoped %}
|
79 |
+
<div {{ cell_id_anchor(cell) }} class="cell border-box-sizing text_cell rendered{{ celltags(cell) }}">
|
80 |
+
{%- if resources.global_content_filter.include_input_prompt-%}
|
81 |
+
{{ self.empty_in_prompt() }}
|
82 |
+
{%- endif -%}
|
83 |
+
<div class="inner_cell">
|
84 |
+
<div class="text_cell_render border-box-sizing rendered_html">
|
85 |
+
{%- if resources.should_sanitize_html %}
|
86 |
+
{%- set html_value=cell.source | markdown2html | strip_files_prefix | clean_html -%}
|
87 |
+
{%- else %}
|
88 |
+
{%- set html_value=cell.source | markdown2html | strip_files_prefix -%}
|
89 |
+
{%- endif %}
|
90 |
+
{{ html_value }}
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
{%- endblock markdowncell %}
|
95 |
+
|
96 |
+
{% block rawcell scoped %}
|
97 |
+
{%- if cell.metadata.get('raw_mimetype', '').lower() in resources.get('raw_mimetypes', ['']) -%}
|
98 |
+
{{ cell.source | clean_html }}
|
99 |
+
{%- endif -%}
|
100 |
+
{%- endblock rawcell %}
|
101 |
+
|
102 |
+
{% block unknowncell scoped %}
|
103 |
+
unknown type {{ cell.type }}
|
104 |
+
{% endblock unknowncell %}
|
105 |
+
|
106 |
+
{% block execute_result -%}
|
107 |
+
{%- set extra_class="output_execute_result" -%}
|
108 |
+
{% block data_priority scoped %}
|
109 |
+
{{ super() }}
|
110 |
+
{% endblock data_priority %}
|
111 |
+
{%- set extra_class="" -%}
|
112 |
+
{%- endblock execute_result %}
|
113 |
+
|
114 |
+
{% block stream_stdout -%}
|
115 |
+
<div class="output_subarea output_stream output_stdout output_text">
|
116 |
+
<pre>
|
117 |
+
{{- output.text | ansi2html -}}
|
118 |
+
</pre>
|
119 |
+
</div>
|
120 |
+
{%- endblock stream_stdout %}
|
121 |
+
|
122 |
+
{% block stream_stderr -%}
|
123 |
+
<div class="output_subarea output_stream output_stderr output_text">
|
124 |
+
<pre>
|
125 |
+
{{- output.text | ansi2html -}}
|
126 |
+
</pre>
|
127 |
+
</div>
|
128 |
+
{%- endblock stream_stderr %}
|
129 |
+
|
130 |
+
{% block data_svg scoped -%}
|
131 |
+
<div class="output_svg output_subarea {{ extra_class }}">
|
132 |
+
{%- if output.svg_filename %}
|
133 |
+
<img src="{{ output.svg_filename | posix_path | escape_html }}">
|
134 |
+
{%- else %}
|
135 |
+
{%- if resources.should_not_encode_svg %}
|
136 |
+
{{ output.data['image/svg+xml'].encode("utf-8") | clean_html }}
|
137 |
+
{%- else %}
|
138 |
+
<img src="data:image/svg+xml;base64,{{ output.data['image/svg+xml'] | text_base64 | escape_html }}">
|
139 |
+
{%- endif %}
|
140 |
+
{%- endif %}
|
141 |
+
</div>
|
142 |
+
{%- endblock data_svg %}
|
143 |
+
|
144 |
+
{% block data_html scoped -%}
|
145 |
+
<div class="output_html rendered_html output_subarea {{ extra_class }}">
|
146 |
+
{%- if resources.should_sanitize_html %}
|
147 |
+
{%- set html_value=output.data['text/html'] | clean_html -%}
|
148 |
+
{%- else %}
|
149 |
+
{%- set html_value=output.data['text/html'] -%}
|
150 |
+
{%- endif %}
|
151 |
+
{%- if output.get('metadata', {}).get('text/html', {}).get('isolated') -%}
|
152 |
+
<iframe
|
153 |
+
class="isolated-iframe"
|
154 |
+
style="height:520px; width:100%; margin:0; padding: 0"
|
155 |
+
frameborder="0"
|
156 |
+
scrolling="auto"
|
157 |
+
src="data:text/html;base64,{{ html_value | text_base64 }}">
|
158 |
+
</iframe>
|
159 |
+
{%- else -%}
|
160 |
+
{{ html_value }}
|
161 |
+
{%- endif -%}
|
162 |
+
</div>
|
163 |
+
{%- endblock data_html %}
|
164 |
+
|
165 |
+
{% block data_markdown scoped -%}
|
166 |
+
{%- if resources.should_sanitize_html %}
|
167 |
+
{%- set html_value=output.data['text/markdown'] | markdown2html | clean_html -%}
|
168 |
+
{%- else %}
|
169 |
+
{%- set html_value=output.data['text/markdown'] | markdown2html -%}
|
170 |
+
{%- endif %}
|
171 |
+
<div class="output_markdown rendered_html output_subarea {{ extra_class }}">
|
172 |
+
{{ html_value }}
|
173 |
+
</div>
|
174 |
+
{%- endblock data_markdown %}
|
175 |
+
|
176 |
+
{% block data_png scoped %}
|
177 |
+
<div class="output_png output_subarea {{ extra_class }}">
|
178 |
+
{%- if 'image/png' in output.metadata.get('filenames', {}) %}
|
179 |
+
<img src="{{ output.metadata.filenames['image/png'] | posix_path | escape_html }}"
|
180 |
+
{%- else %}
|
181 |
+
<img src="data:image/png;base64,{{ output.data['image/png'] | escape_html }}"
|
182 |
+
{%- endif %}
|
183 |
+
{%- set width=output | get_metadata('width', 'image/png') -%}
|
184 |
+
{%- if width is not none %}
|
185 |
+
width={{ width | escape_html }}
|
186 |
+
{%- endif %}
|
187 |
+
{%- set height=output | get_metadata('height', 'image/png') -%}
|
188 |
+
{%- if height is not none %}
|
189 |
+
height={{ height | escape_html }}
|
190 |
+
{%- endif %}
|
191 |
+
{%- if output | get_metadata('unconfined', 'image/png') %}
|
192 |
+
class="unconfined"
|
193 |
+
{%- endif %}
|
194 |
+
{%- set alttext=(output | get_metadata('alt', 'image/png')) or (cell | get_metadata('alt')) -%}
|
195 |
+
{%- if alttext is not none %}
|
196 |
+
alt="{{ alttext | escape_html }}"
|
197 |
+
{%- endif %}
|
198 |
+
>
|
199 |
+
</div>
|
200 |
+
{%- endblock data_png %}
|
201 |
+
|
202 |
+
{% block data_jpg scoped %}
|
203 |
+
<div class="output_jpeg output_subarea {{ extra_class }}">
|
204 |
+
{%- if 'image/jpeg' in output.metadata.get('filenames', {}) %}
|
205 |
+
<img src="{{ output.metadata.filenames['image/jpeg'] | posix_path | escape_html }}"
|
206 |
+
{%- else %}
|
207 |
+
<img src="data:image/jpeg;base64,{{ output.data['image/jpeg'] | escape_html }}"
|
208 |
+
{%- endif %}
|
209 |
+
{%- set width=output | get_metadata('width', 'image/jpeg') -%}
|
210 |
+
{%- if width is not none %}
|
211 |
+
width={{ width | escape_html }}
|
212 |
+
{%- endif %}
|
213 |
+
{%- set height=output | get_metadata('height', 'image/jpeg') -%}
|
214 |
+
{%- if height is not none %}
|
215 |
+
height={{ height | escape_html }}
|
216 |
+
{%- endif %}
|
217 |
+
{%- if output | get_metadata('unconfined', 'image/jpeg') %}
|
218 |
+
class="unconfined"
|
219 |
+
{%- endif %}
|
220 |
+
{%- set alttext=(output | get_metadata('alt', 'image/jpeg')) or (cell | get_metadata('alt')) -%}
|
221 |
+
{%- if alttext is not none %}
|
222 |
+
alt="{{ alttext | escape_html }}"
|
223 |
+
{%- endif %}
|
224 |
+
>
|
225 |
+
</div>
|
226 |
+
{%- endblock data_jpg %}
|
227 |
+
|
228 |
+
{% block data_latex scoped %}
|
229 |
+
<div class="output_latex output_subarea {{ extra_class }}">
|
230 |
+
{{ output.data['text/latex'] | e }}
|
231 |
+
</div>
|
232 |
+
{%- endblock data_latex %}
|
233 |
+
|
234 |
+
{% block error -%}
|
235 |
+
<div class="output_subarea output_text output_error">
|
236 |
+
<pre>
|
237 |
+
{{- super() -}}
|
238 |
+
</pre>
|
239 |
+
</div>
|
240 |
+
{%- endblock error %}
|
241 |
+
|
242 |
+
{%- block traceback_line %}
|
243 |
+
{{ line | ansi2html }}
|
244 |
+
{%- endblock traceback_line %}
|
245 |
+
|
246 |
+
{%- block data_text scoped %}
|
247 |
+
<div class="output_text output_subarea {{ extra_class }}">
|
248 |
+
<pre>
|
249 |
+
{{- output.data['text/plain'] | ansi2html -}}
|
250 |
+
</pre>
|
251 |
+
</div>
|
252 |
+
{%- endblock -%}
|
253 |
+
|
254 |
+
{%- block data_javascript scoped %}
|
255 |
+
{% set div_id = uuid4() %}
|
256 |
+
<div id="{{ div_id }}" class="output_subarea output_javascript {{ extra_class }}">
|
257 |
+
{%- if not resources.should_sanitize_html %}
|
258 |
+
<script type="text/javascript">
|
259 |
+
var element = $('#{{ div_id }}');
|
260 |
+
{{ output.data['application/javascript'] }}
|
261 |
+
</script>
|
262 |
+
{%- endif %}
|
263 |
+
</div>
|
264 |
+
{%- endblock -%}
|
265 |
+
|
266 |
+
{%- block data_widget_view scoped %}
|
267 |
+
{%- if not resources.should_sanitize_html %}
|
268 |
+
{% set div_id = uuid4() %}
|
269 |
+
{% set datatype_list = output.data | filter_data_type %}
|
270 |
+
{% set datatype = datatype_list[0]%}
|
271 |
+
<div id="{{ div_id }}" class="output_subarea output_widget_view {{ extra_class }}">
|
272 |
+
<script type="text/javascript">
|
273 |
+
var element = $('#{{ div_id }}');
|
274 |
+
</script>
|
275 |
+
<script type="{{ datatype }}">
|
276 |
+
{{ output.data[datatype] | json_dumps | escape_html_script }}
|
277 |
+
</script>
|
278 |
+
</div>
|
279 |
+
{%- endif %}
|
280 |
+
{%- endblock data_widget_view -%}
|
281 |
+
|
282 |
+
{%- block footer %}
|
283 |
+
{%- if not resources.should_sanitize_html %}
|
284 |
+
{% set mimetype = 'application/vnd.jupyter.widget-state+json'%}
|
285 |
+
{% if mimetype in nb.metadata.get("widgets",{})%}
|
286 |
+
<script type="{{ mimetype }}">
|
287 |
+
{{ nb.metadata.widgets[mimetype] | json_dumps | escape_html_script }}
|
288 |
+
</script>
|
289 |
+
{% endif %}
|
290 |
+
{%- endif %}
|
291 |
+
{{ super() }}
|
292 |
+
{%- endblock footer-%}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/classic/conf.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_template": "base",
|
3 |
+
"mimetypes": {
|
4 |
+
"text/html": true
|
5 |
+
},
|
6 |
+
"preprocessors": {
|
7 |
+
"100-pygments": {
|
8 |
+
"type": "nbconvert.preprocessors.CSSHTMLHeaderPreprocessor",
|
9 |
+
"enabled": true,
|
10 |
+
"style": "default"
|
11 |
+
}
|
12 |
+
}
|
13 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/compatibility/full.tpl
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
{{ resources.deprecated("This template is deprecated, please use classic/index.html.j2") }}
|
2 |
+
{%- extends 'index.html.j2' -%}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/base.html.j2
ADDED
@@ -0,0 +1,331 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{%- extends 'display_priority.j2' -%}
|
2 |
+
{% from 'celltags.j2' import celltags %}
|
3 |
+
{% from 'cell_id_anchor.j2' import cell_id_anchor %}
|
4 |
+
|
5 |
+
{% block codecell %}
|
6 |
+
{%- if not cell.outputs -%}
|
7 |
+
{%- set no_output_class="jp-mod-noOutputs" -%}
|
8 |
+
{%- endif -%}
|
9 |
+
{%- if not resources.global_content_filter.include_input -%}
|
10 |
+
{%- set no_input_class="jp-mod-noInput" -%}
|
11 |
+
{%- endif -%}
|
12 |
+
<div {{ cell_id_anchor(cell) }} class="jp-Cell jp-CodeCell jp-Notebook-cell {{ no_output_class }} {{ no_input_class }} {{ celltags(cell) }}">
|
13 |
+
{{ super() }}
|
14 |
+
</div>
|
15 |
+
{%- endblock codecell %}
|
16 |
+
|
17 |
+
{% block input_group -%}
|
18 |
+
<div class="jp-Cell-inputWrapper">
|
19 |
+
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
|
20 |
+
</div>
|
21 |
+
<div class="jp-InputArea jp-Cell-inputArea">
|
22 |
+
{{ super() }}
|
23 |
+
</div>
|
24 |
+
</div>
|
25 |
+
{% endblock input_group %}
|
26 |
+
|
27 |
+
{% block input %}
|
28 |
+
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
|
29 |
+
<div class="cm-editor cm-s-jupyter">
|
30 |
+
{{ cell.source | highlight_code(metadata=cell.metadata) | clean_html }}
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
{%- endblock input %}
|
34 |
+
|
35 |
+
{% block output_group %}
|
36 |
+
<div class="jp-Cell-outputWrapper">
|
37 |
+
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
|
38 |
+
</div>
|
39 |
+
{{ super() }}
|
40 |
+
</div>
|
41 |
+
{% endblock output_group %}
|
42 |
+
|
43 |
+
{% block outputs %}
|
44 |
+
<div class="jp-OutputArea jp-Cell-outputArea">
|
45 |
+
{{ super() }}
|
46 |
+
</div>
|
47 |
+
{% endblock outputs %}
|
48 |
+
|
49 |
+
{% block in_prompt -%}
|
50 |
+
<div class="jp-InputPrompt jp-InputArea-prompt">
|
51 |
+
{%- if cell.execution_count is defined -%}
|
52 |
+
In [{{ cell.execution_count|replace(None, " ") }}]:
|
53 |
+
{%- else -%}
|
54 |
+
In [ ]:
|
55 |
+
{%- endif -%}
|
56 |
+
</div>
|
57 |
+
{%- endblock in_prompt %}
|
58 |
+
|
59 |
+
{% block empty_in_prompt -%}
|
60 |
+
<div class="jp-InputPrompt jp-InputArea-prompt">
|
61 |
+
</div>
|
62 |
+
{%- endblock empty_in_prompt %}
|
63 |
+
|
64 |
+
{#
|
65 |
+
output_prompt doesn't do anything in HTML,
|
66 |
+
because there is a prompt div in each output area (see output block)
|
67 |
+
#}
|
68 |
+
{% block output_prompt %}
|
69 |
+
{% endblock output_prompt %}
|
70 |
+
|
71 |
+
{% block output_area_prompt %}
|
72 |
+
<div class="jp-OutputPrompt jp-OutputArea-prompt">
|
73 |
+
{%- if output.output_type == 'execute_result' -%}
|
74 |
+
{%- if cell.execution_count is defined -%}
|
75 |
+
Out[{{ cell.execution_count|replace(None, " ") }}]:
|
76 |
+
{%- else -%}
|
77 |
+
Out[ ]:
|
78 |
+
{%- endif -%}
|
79 |
+
{%- endif -%}
|
80 |
+
</div>
|
81 |
+
{% endblock output_area_prompt %}
|
82 |
+
|
83 |
+
{% block output %}
|
84 |
+
{%- if output.output_type == 'execute_result' -%}
|
85 |
+
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
|
86 |
+
{%- else -%}
|
87 |
+
<div class="jp-OutputArea-child">
|
88 |
+
{%- endif -%}
|
89 |
+
{% if resources.global_content_filter.include_output_prompt %}
|
90 |
+
{{ self.output_area_prompt() }}
|
91 |
+
{% endif %}
|
92 |
+
{{ super() }}
|
93 |
+
</div>
|
94 |
+
{% endblock output %}
|
95 |
+
|
96 |
+
{% block markdowncell scoped %}
|
97 |
+
<div {{ cell_id_anchor(cell) }} class="jp-Cell jp-MarkdownCell jp-Notebook-cell">
|
98 |
+
<div class="jp-Cell-inputWrapper">
|
99 |
+
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
|
100 |
+
</div>
|
101 |
+
<div class="jp-InputArea jp-Cell-inputArea">
|
102 |
+
{%- if resources.global_content_filter.include_input_prompt-%}
|
103 |
+
{{ self.empty_in_prompt() }}
|
104 |
+
{%- endif -%}
|
105 |
+
<div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-MarkdownOutput {{ celltags(cell) }}" data-mime-type="text/markdown">
|
106 |
+
{%- if resources.should_sanitize_html %}
|
107 |
+
{%- set html_value=cell.source | markdown2html | strip_files_prefix | clean_html -%}
|
108 |
+
{%- else %}
|
109 |
+
{%- set html_value=cell.source | markdown2html | strip_files_prefix -%}
|
110 |
+
{%- endif %}
|
111 |
+
{{ html_value }}
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
{%- endblock markdowncell %}
|
117 |
+
|
118 |
+
{% block rawcell scoped %}
|
119 |
+
{%- if cell.metadata.get('raw_mimetype', '').lower() in resources.get('raw_mimetypes', ['']) -%}
|
120 |
+
{{ cell.source | clean_html }}
|
121 |
+
{%- endif -%}
|
122 |
+
{%- endblock rawcell %}
|
123 |
+
|
124 |
+
{% block unknowncell scoped %}
|
125 |
+
unknown type {{ cell.type }}
|
126 |
+
{% endblock unknowncell %}
|
127 |
+
|
128 |
+
{% block execute_result -%}
|
129 |
+
{%- set extra_class="jp-OutputArea-executeResult" -%}
|
130 |
+
{% block data_priority scoped %}
|
131 |
+
{{ super() }}
|
132 |
+
{% endblock data_priority %}
|
133 |
+
{%- set extra_class="" -%}
|
134 |
+
{%- endblock execute_result %}
|
135 |
+
|
136 |
+
{% block stream_stdout -%}
|
137 |
+
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain">
|
138 |
+
<pre>
|
139 |
+
{{- output.text | ansi2html -}}
|
140 |
+
</pre>
|
141 |
+
</div>
|
142 |
+
{%- endblock stream_stdout %}
|
143 |
+
|
144 |
+
{% block stream_stderr -%}
|
145 |
+
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
|
146 |
+
<pre>
|
147 |
+
{{- output.text | ansi2html -}}
|
148 |
+
</pre>
|
149 |
+
</div>
|
150 |
+
{%- endblock stream_stderr %}
|
151 |
+
|
152 |
+
{% block stream_stdin -%}
|
153 |
+
{%- if resources.global_content_filter.include_output_stdin -%}
|
154 |
+
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stdin">
|
155 |
+
<pre>
|
156 |
+
{{- output.text | ansi2html -}}
|
157 |
+
</pre>
|
158 |
+
</div>
|
159 |
+
{%- endif %}
|
160 |
+
{%- endblock stream_stdin %}
|
161 |
+
|
162 |
+
{% block data_svg scoped -%}
|
163 |
+
<div class="jp-RenderedSVG jp-OutputArea-output {{ extra_class }}" data-mime-type="image/svg+xml">
|
164 |
+
{%- if output.svg_filename %}
|
165 |
+
<img src="{{ output.svg_filename | posix_path | escape_html }}">
|
166 |
+
{%- else %}
|
167 |
+
{%- if resources.should_not_encode_svg %}
|
168 |
+
{{ output.data['image/svg+xml'].encode("utf-8") | clean_html }}
|
169 |
+
{%- else %}
|
170 |
+
<img src="data:image/svg+xml;base64,{{ output.data['image/svg+xml'] | text_base64 | escape_html }}">
|
171 |
+
{%- endif %}
|
172 |
+
{%- endif %}
|
173 |
+
</div>
|
174 |
+
{%- endblock data_svg %}
|
175 |
+
|
176 |
+
{% block data_mermaid scoped -%}
|
177 |
+
<div class="jp-Mermaid">
|
178 |
+
<pre class="mermaid">
|
179 |
+
{{ output.data['text/vnd.mermaid'].strip() }}
|
180 |
+
</pre>
|
181 |
+
</div>
|
182 |
+
{%- endblock data_mermaid %}
|
183 |
+
|
184 |
+
{% block data_html scoped -%}
|
185 |
+
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output {{ extra_class }}" data-mime-type="text/html">
|
186 |
+
{%- if resources.should_sanitize_html %}
|
187 |
+
{{ output.data['text/html'] | clean_html }}
|
188 |
+
{%- else %}
|
189 |
+
{{ output.data['text/html'] }}
|
190 |
+
{%- endif %}
|
191 |
+
</div>
|
192 |
+
{%- endblock data_html %}
|
193 |
+
|
194 |
+
{% block data_markdown scoped -%}
|
195 |
+
{%- if resources.should_sanitize_html %}
|
196 |
+
{%- set html_value=output.data['text/markdown'] | markdown2html | clean_html -%}
|
197 |
+
{%- else %}
|
198 |
+
{%- set html_value=output.data['text/markdown'] | markdown2html -%}
|
199 |
+
{%- endif %}
|
200 |
+
<div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-OutputArea-output {{ extra_class }}" data-mime-type="text/markdown">
|
201 |
+
{{ html_value }}
|
202 |
+
</div>
|
203 |
+
{%- endblock data_markdown %}
|
204 |
+
|
205 |
+
{% block data_png scoped %}
|
206 |
+
<div class="jp-RenderedImage jp-OutputArea-output {{ extra_class }}">
|
207 |
+
{%- if 'image/png' in output.metadata.get('filenames', {}) %}
|
208 |
+
<img src="{{ output.metadata.filenames['image/png'] | posix_path | escape_html }}"
|
209 |
+
{%- else %}
|
210 |
+
<img src="data:image/png;base64,{{ output.data['image/png'] | escape_html }}"
|
211 |
+
{%- endif %}
|
212 |
+
{%- set width=output | get_metadata('width', 'image/png') -%}
|
213 |
+
{%- if width is not none %}
|
214 |
+
width={{ width | escape_html }}
|
215 |
+
{%- endif %}
|
216 |
+
{%- set height=output | get_metadata('height', 'image/png') -%}
|
217 |
+
{%- if height is not none %}
|
218 |
+
height={{ height | escape_html }}
|
219 |
+
{%- endif %}
|
220 |
+
class="
|
221 |
+
{%- if output | get_metadata('unconfined', 'image/png') %}
|
222 |
+
unconfined
|
223 |
+
{%- endif %}
|
224 |
+
{%- if output | get_metadata('needs_background', 'image/png') == 'light' %}
|
225 |
+
jp-needs-light-background
|
226 |
+
{%- endif %}
|
227 |
+
{%- if output | get_metadata('needs_background', 'image/png') == 'dark' %}
|
228 |
+
jp-needs-dark-background
|
229 |
+
{%- endif %}
|
230 |
+
"
|
231 |
+
>
|
232 |
+
</div>
|
233 |
+
{%- endblock data_png %}
|
234 |
+
|
235 |
+
{% block data_jpg scoped %}
|
236 |
+
<div class="jp-RenderedImage jp-OutputArea-output {{ extra_class }}">
|
237 |
+
{%- if 'image/jpeg' in output.metadata.get('filenames', {}) %}
|
238 |
+
<img src="{{ output.metadata.filenames['image/jpeg'] | posix_path | escape_html }}"
|
239 |
+
{%- else %}
|
240 |
+
<img src="data:image/jpeg;base64,{{ output.data['image/jpeg'] | escape_html }}"
|
241 |
+
{%- endif %}
|
242 |
+
{%- set width=output | get_metadata('width', 'image/jpeg') -%}
|
243 |
+
{%- if width is not none %}
|
244 |
+
width={{ width | escape_html }}
|
245 |
+
{%- endif %}
|
246 |
+
{%- set height=output | get_metadata('height', 'image/jpeg') -%}
|
247 |
+
{%- if height is not none %}
|
248 |
+
height={{ height | escape_html }}
|
249 |
+
{%- endif %}
|
250 |
+
class="
|
251 |
+
{%- if output | get_metadata('unconfined', 'image/jpeg') %}
|
252 |
+
unconfined
|
253 |
+
{%- endif %}
|
254 |
+
{%- if output | get_metadata('needs_background', 'image/jpeg') == 'light' %}
|
255 |
+
jp-needs-light-background
|
256 |
+
{%- endif %}
|
257 |
+
{%- if output | get_metadata('needs_background', 'image/jpeg') == 'dark' %}
|
258 |
+
jp-needs-dark-background
|
259 |
+
{%- endif %}
|
260 |
+
"
|
261 |
+
>
|
262 |
+
</div>
|
263 |
+
{%- endblock data_jpg %}
|
264 |
+
|
265 |
+
{% block data_latex scoped %}
|
266 |
+
<div class="jp-RenderedLatex jp-OutputArea-output {{ extra_class }}" data-mime-type="text/latex">
|
267 |
+
{{ output.data['text/latex'] | e }}
|
268 |
+
</div>
|
269 |
+
{%- endblock data_latex %}
|
270 |
+
|
271 |
+
{% block error -%}
|
272 |
+
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
|
273 |
+
<pre>
|
274 |
+
{{- super() -}}
|
275 |
+
</pre>
|
276 |
+
</div>
|
277 |
+
{%- endblock error %}
|
278 |
+
|
279 |
+
{%- block traceback_line %}
|
280 |
+
{{ line | ansi2html }}
|
281 |
+
{%- endblock traceback_line %}
|
282 |
+
|
283 |
+
{%- block data_text scoped %}
|
284 |
+
<div class="jp-RenderedText jp-OutputArea-output {{ extra_class }}" data-mime-type="text/plain">
|
285 |
+
<pre>
|
286 |
+
{{- output.data['text/plain'] | ansi2html -}}
|
287 |
+
</pre>
|
288 |
+
</div>
|
289 |
+
{%- endblock -%}
|
290 |
+
|
291 |
+
{#
|
292 |
+
###############################################################################
|
293 |
+
# TODO: how to better handle JavaScript repr? #
|
294 |
+
###############################################################################
|
295 |
+
#}
|
296 |
+
|
297 |
+
{%- block data_javascript scoped %}
|
298 |
+
{% set div_id = uuid4() %}
|
299 |
+
<div id="{{ div_id }}" class="jp-RenderedJavaScript jp-OutputArea-output {{ extra_class }}" data-mime-type="application/javascript">
|
300 |
+
{%- if not resources.should_sanitize_html %}
|
301 |
+
<script type="text/javascript">
|
302 |
+
var element = document.getElementById('{{ div_id }}');
|
303 |
+
{{ output.data['application/javascript'] }}
|
304 |
+
</script>
|
305 |
+
{%- endif %}
|
306 |
+
</div>
|
307 |
+
{%- endblock -%}
|
308 |
+
|
309 |
+
{%- block data_widget_view scoped %}
|
310 |
+
{% set div_id = uuid4() %}
|
311 |
+
{% set datatype_list = output.data | filter_data_type %}
|
312 |
+
{% set datatype = datatype_list[0]%}
|
313 |
+
<div id="{{ div_id }}" class="jupyter-widgets jp-OutputArea-output {{ extra_class }}">
|
314 |
+
<script type="text/javascript">
|
315 |
+
var element = document.getElementById('{{ div_id }}');
|
316 |
+
</script>
|
317 |
+
<script type="{{ datatype }}">
|
318 |
+
{{ output.data[datatype] | json_dumps | escape_html_script }}
|
319 |
+
</script>
|
320 |
+
</div>
|
321 |
+
{%- endblock data_widget_view -%}
|
322 |
+
|
323 |
+
{%- block footer %}
|
324 |
+
{% set mimetype = 'application/vnd.jupyter.widget-state+json'%}
|
325 |
+
{% if mimetype in nb.metadata.get("widgets",{})%}
|
326 |
+
<script type="{{ mimetype }}">
|
327 |
+
{{ nb.metadata.widgets[mimetype] | json_dumps | escape_html_script }}
|
328 |
+
</script>
|
329 |
+
{% endif %}
|
330 |
+
{{ super() }}
|
331 |
+
{%- endblock footer-%}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/conf.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_template": "base",
|
3 |
+
"mimetypes": {
|
4 |
+
"text/html": true
|
5 |
+
},
|
6 |
+
"preprocessors": {
|
7 |
+
"100-pygments": {
|
8 |
+
"type": "nbconvert.preprocessors.CSSHTMLHeaderPreprocessor",
|
9 |
+
"enabled": true
|
10 |
+
}
|
11 |
+
}
|
12 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/index.html.j2
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{%- extends 'base.html.j2' -%}
|
2 |
+
{% from 'mathjax.html.j2' import mathjax %}
|
3 |
+
{% from 'mermaidjs.html.j2' import mermaid_js %}
|
4 |
+
{% from 'jupyter_widgets.html.j2' import jupyter_widgets %}
|
5 |
+
|
6 |
+
{%- block header -%}
|
7 |
+
<!DOCTYPE html>
|
8 |
+
<html lang="{{ resources.language_code }}">
|
9 |
+
<head>
|
10 |
+
{%- block html_head -%}
|
11 |
+
<meta charset="utf-8" />
|
12 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
13 |
+
{% set nb_title = nb.metadata.get('title', resources['metadata']['name']) | escape_html_keep_quotes %}
|
14 |
+
<title>{{nb_title}}</title>
|
15 |
+
|
16 |
+
{%- block html_head_js -%}
|
17 |
+
{%- block html_head_js_requirejs -%}
|
18 |
+
<script src="{{ resources.require_js_url }}"></script>
|
19 |
+
{%- endblock html_head_js_requirejs -%}
|
20 |
+
{%- endblock html_head_js -%}
|
21 |
+
|
22 |
+
{% block jupyter_widgets %}
|
23 |
+
{%- if "widgets" in nb.metadata -%}
|
24 |
+
{{ jupyter_widgets(resources.jupyter_widgets_base_url, resources.html_manager_semver_range, resources.widget_renderer_url) }}
|
25 |
+
{%- endif -%}
|
26 |
+
{% endblock jupyter_widgets %}
|
27 |
+
|
28 |
+
{% block extra_css %}
|
29 |
+
{% endblock extra_css %}
|
30 |
+
|
31 |
+
{% for css in resources.inlining.css -%}
|
32 |
+
<style type="text/css">
|
33 |
+
{{ css }}
|
34 |
+
</style>
|
35 |
+
{% endfor %}
|
36 |
+
|
37 |
+
{% block notebook_css %}
|
38 |
+
{{ resources.include_css("static/index.css") }}
|
39 |
+
{% if resources.theme == 'dark' %}
|
40 |
+
{{ resources.include_css("static/theme-dark.css") }}
|
41 |
+
{% elif resources.theme == 'light' %}
|
42 |
+
{{ resources.include_css("static/theme-light.css") }}
|
43 |
+
{% else %}
|
44 |
+
{{ resources.include_lab_theme(resources.theme) }}
|
45 |
+
{% endif %}
|
46 |
+
<style type="text/css">
|
47 |
+
/* Force rendering true colors when outputing to pdf */
|
48 |
+
* {
|
49 |
+
-webkit-print-color-adjust: exact;
|
50 |
+
}
|
51 |
+
|
52 |
+
/* Misc */
|
53 |
+
a.anchor-link {
|
54 |
+
display: none;
|
55 |
+
}
|
56 |
+
|
57 |
+
/* Input area styling */
|
58 |
+
.jp-InputArea {
|
59 |
+
overflow: hidden;
|
60 |
+
}
|
61 |
+
|
62 |
+
.jp-InputArea-editor {
|
63 |
+
overflow: hidden;
|
64 |
+
}
|
65 |
+
|
66 |
+
.cm-editor.cm-s-jupyter .highlight pre {
|
67 |
+
/* weird, but --jp-code-padding defined to be 5px but 4px horizontal padding is hardcoded for pre.cm-line */
|
68 |
+
padding: var(--jp-code-padding) 4px;
|
69 |
+
margin: 0;
|
70 |
+
|
71 |
+
font-family: inherit;
|
72 |
+
font-size: inherit;
|
73 |
+
line-height: inherit;
|
74 |
+
color: inherit;
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
.jp-OutputArea-output pre {
|
79 |
+
line-height: inherit;
|
80 |
+
font-family: inherit;
|
81 |
+
}
|
82 |
+
|
83 |
+
.jp-RenderedText pre {
|
84 |
+
color: var(--jp-content-font-color1);
|
85 |
+
font-size: var(--jp-code-font-size);
|
86 |
+
}
|
87 |
+
|
88 |
+
/* Hiding the collapser by default */
|
89 |
+
.jp-Collapser {
|
90 |
+
display: none;
|
91 |
+
}
|
92 |
+
|
93 |
+
@page {
|
94 |
+
margin: 0.5in; /* Margin for each printed piece of paper */
|
95 |
+
}
|
96 |
+
|
97 |
+
@media print {
|
98 |
+
.jp-Cell-inputWrapper,
|
99 |
+
.jp-Cell-outputWrapper {
|
100 |
+
display: block;
|
101 |
+
}
|
102 |
+
}
|
103 |
+
</style>
|
104 |
+
|
105 |
+
{% endblock notebook_css %}
|
106 |
+
|
107 |
+
{%- block html_head_js_mathjax -%}
|
108 |
+
{{ mathjax(resources.mathjax_url) }}
|
109 |
+
{%- endblock html_head_js_mathjax -%}
|
110 |
+
|
111 |
+
{%- block html_head_js_mermaidjs -%}
|
112 |
+
{{ mermaid_js(resources.mermaid_js_url) }}
|
113 |
+
{%- endblock html_head_js_mermaidjs -%}
|
114 |
+
|
115 |
+
{%- block html_head_css -%}
|
116 |
+
{%- endblock html_head_css -%}
|
117 |
+
|
118 |
+
{%- endblock html_head -%}
|
119 |
+
</head>
|
120 |
+
{%- endblock header -%}
|
121 |
+
|
122 |
+
{%- block body_header -%}
|
123 |
+
{% if resources.theme == 'dark' %}
|
124 |
+
<body class="jp-Notebook" data-jp-theme-light="false" data-jp-theme-name="JupyterLab Dark">
|
125 |
+
{% else %}
|
126 |
+
<body class="jp-Notebook" data-jp-theme-light="true" data-jp-theme-name="JupyterLab Light">
|
127 |
+
{% endif %}
|
128 |
+
<main>
|
129 |
+
{%- endblock body_header -%}
|
130 |
+
|
131 |
+
{% block body_footer %}
|
132 |
+
</main>
|
133 |
+
</body>
|
134 |
+
{% endblock body_footer %}
|
135 |
+
|
136 |
+
{% block footer %}
|
137 |
+
{% block footer_js %}
|
138 |
+
{% endblock footer_js %}
|
139 |
+
{{ super() }}
|
140 |
+
</html>
|
141 |
+
{% endblock footer %}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/mermaidjs.html.j2
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{%- macro mermaid_js(
|
2 |
+
url="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.7.0/mermaid.esm.min.mjs"
|
3 |
+
) -%}
|
4 |
+
<script type="module">
|
5 |
+
document.addEventListener("DOMContentLoaded", async () => {
|
6 |
+
const diagrams = document.querySelectorAll(".jp-Mermaid > pre.mermaid");
|
7 |
+
// do not load mermaidjs if not needed
|
8 |
+
if (!diagrams.length) {
|
9 |
+
return;
|
10 |
+
}
|
11 |
+
const mermaid = (await import("{{ url }}")).default;
|
12 |
+
const parser = new DOMParser();
|
13 |
+
|
14 |
+
mermaid.initialize({
|
15 |
+
maxTextSize: 100000,
|
16 |
+
maxEdges: 100000,
|
17 |
+
startOnLoad: false,
|
18 |
+
fontFamily: window
|
19 |
+
.getComputedStyle(document.body)
|
20 |
+
.getPropertyValue("--jp-ui-font-family"),
|
21 |
+
theme: document.querySelector("body[data-jp-theme-light='true']")
|
22 |
+
? "default"
|
23 |
+
: "dark",
|
24 |
+
});
|
25 |
+
|
26 |
+
let _nextMermaidId = 0;
|
27 |
+
|
28 |
+
function makeMermaidImage(svg) {
|
29 |
+
const img = document.createElement("img");
|
30 |
+
const doc = parser.parseFromString(svg, "image/svg+xml");
|
31 |
+
const svgEl = doc.querySelector("svg");
|
32 |
+
const { maxWidth } = svgEl?.style || {};
|
33 |
+
const firstTitle = doc.querySelector("title");
|
34 |
+
const firstDesc = doc.querySelector("desc");
|
35 |
+
|
36 |
+
img.setAttribute("src", `data:image/svg+xml,${encodeURIComponent(svg)}`);
|
37 |
+
if (maxWidth) {
|
38 |
+
img.width = parseInt(maxWidth);
|
39 |
+
}
|
40 |
+
if (firstTitle) {
|
41 |
+
img.setAttribute("alt", firstTitle.textContent);
|
42 |
+
}
|
43 |
+
if (firstDesc) {
|
44 |
+
const caption = document.createElement("figcaption");
|
45 |
+
caption.className = "sr-only";
|
46 |
+
caption.textContent = firstDesc.textContent;
|
47 |
+
return [img, caption];
|
48 |
+
}
|
49 |
+
return [img];
|
50 |
+
}
|
51 |
+
|
52 |
+
async function makeMermaidError(text) {
|
53 |
+
let errorMessage = "";
|
54 |
+
try {
|
55 |
+
await mermaid.parse(text);
|
56 |
+
} catch (err) {
|
57 |
+
errorMessage = `${err}`;
|
58 |
+
}
|
59 |
+
|
60 |
+
const result = document.createElement("details");
|
61 |
+
result.className = 'jp-RenderedMermaid-Details';
|
62 |
+
const summary = document.createElement("summary");
|
63 |
+
summary.className = 'jp-RenderedMermaid-Summary';
|
64 |
+
const pre = document.createElement("pre");
|
65 |
+
const code = document.createElement("code");
|
66 |
+
code.innerText = text;
|
67 |
+
pre.appendChild(code);
|
68 |
+
summary.appendChild(pre);
|
69 |
+
result.appendChild(summary);
|
70 |
+
|
71 |
+
const warning = document.createElement("pre");
|
72 |
+
warning.innerText = errorMessage;
|
73 |
+
result.appendChild(warning);
|
74 |
+
return [result];
|
75 |
+
}
|
76 |
+
|
77 |
+
async function renderOneMarmaid(src) {
|
78 |
+
const id = `jp-mermaid-${_nextMermaidId++}`;
|
79 |
+
const parent = src.parentNode;
|
80 |
+
let raw = src.textContent.trim();
|
81 |
+
const el = document.createElement("div");
|
82 |
+
el.style.visibility = "hidden";
|
83 |
+
document.body.appendChild(el);
|
84 |
+
let results = null;
|
85 |
+
let output = null;
|
86 |
+
try {
|
87 |
+
let { svg } = await mermaid.render(id, raw, el);
|
88 |
+
svg = cleanMermaidSvg(svg);
|
89 |
+
results = makeMermaidImage(svg);
|
90 |
+
output = document.createElement("figure");
|
91 |
+
results.map(output.appendChild, output);
|
92 |
+
} catch (err) {
|
93 |
+
parent.classList.add("jp-mod-warning");
|
94 |
+
results = await makeMermaidError(raw);
|
95 |
+
output = results[0];
|
96 |
+
} finally {
|
97 |
+
el.remove();
|
98 |
+
}
|
99 |
+
parent.classList.add("jp-RenderedMermaid");
|
100 |
+
parent.appendChild(output);
|
101 |
+
}
|
102 |
+
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Post-process to ensure mermaid diagrams contain only valid SVG and XHTML.
|
106 |
+
*/
|
107 |
+
function cleanMermaidSvg(svg) {
|
108 |
+
return svg.replace(RE_VOID_ELEMENT, replaceVoidElement);
|
109 |
+
}
|
110 |
+
|
111 |
+
|
112 |
+
/**
|
113 |
+
* A regular expression for all void elements, which may include attributes and
|
114 |
+
* a slash.
|
115 |
+
*
|
116 |
+
* @see https://developer.mozilla.org/en-US/docs/Glossary/Void_element
|
117 |
+
*
|
118 |
+
* Of these, only `<br>` is generated by Mermaid in place of `\n`,
|
119 |
+
* but _any_ "malformed" tag will break the SVG rendering entirely.
|
120 |
+
*/
|
121 |
+
const RE_VOID_ELEMENT =
|
122 |
+
/<\s*(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)\s*([^>]*?)\s*>/gi;
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Ensure a void element is closed with a slash, preserving any attributes.
|
126 |
+
*/
|
127 |
+
function replaceVoidElement(match, tag, rest) {
|
128 |
+
rest = rest.trim();
|
129 |
+
if (!rest.endsWith('/')) {
|
130 |
+
rest = `${rest} /`;
|
131 |
+
}
|
132 |
+
return `<${tag} ${rest}>`;
|
133 |
+
}
|
134 |
+
|
135 |
+
void Promise.all([...diagrams].map(renderOneMarmaid));
|
136 |
+
});
|
137 |
+
</script>
|
138 |
+
<style>
|
139 |
+
.jp-Mermaid:not(.jp-RenderedMermaid) {
|
140 |
+
display: none;
|
141 |
+
}
|
142 |
+
|
143 |
+
.jp-RenderedMermaid {
|
144 |
+
overflow: auto;
|
145 |
+
display: flex;
|
146 |
+
}
|
147 |
+
|
148 |
+
.jp-RenderedMermaid.jp-mod-warning {
|
149 |
+
width: auto;
|
150 |
+
padding: 0.5em;
|
151 |
+
margin-top: 0.5em;
|
152 |
+
border: var(--jp-border-width) solid var(--jp-warn-color2);
|
153 |
+
border-radius: var(--jp-border-radius);
|
154 |
+
color: var(--jp-ui-font-color1);
|
155 |
+
font-size: var(--jp-ui-font-size1);
|
156 |
+
white-space: pre-wrap;
|
157 |
+
word-wrap: break-word;
|
158 |
+
}
|
159 |
+
|
160 |
+
.jp-RenderedMermaid figure {
|
161 |
+
margin: 0;
|
162 |
+
overflow: auto;
|
163 |
+
max-width: 100%;
|
164 |
+
}
|
165 |
+
|
166 |
+
.jp-RenderedMermaid img {
|
167 |
+
max-width: 100%;
|
168 |
+
}
|
169 |
+
|
170 |
+
.jp-RenderedMermaid-Details > pre {
|
171 |
+
margin-top: 1em;
|
172 |
+
}
|
173 |
+
|
174 |
+
.jp-RenderedMermaid-Summary {
|
175 |
+
color: var(--jp-warn-color2);
|
176 |
+
}
|
177 |
+
|
178 |
+
.jp-RenderedMermaid:not(.jp-mod-warning) pre {
|
179 |
+
display: none;
|
180 |
+
}
|
181 |
+
|
182 |
+
.jp-RenderedMermaid-Summary > pre {
|
183 |
+
display: inline-block;
|
184 |
+
white-space: normal;
|
185 |
+
}
|
186 |
+
</style>
|
187 |
+
<!-- End of mermaid configuration -->
|
188 |
+
{%- endmacro %}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/static/index.css
ADDED
The diff for this file is too large to render.
See raw diff
|
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/static/theme-dark.css
ADDED
@@ -0,0 +1,438 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*-----------------------------------------------------------------------------
|
2 |
+
| Copyright (c) Jupyter Development Team.
|
3 |
+
| Distributed under the terms of the Modified BSD License.
|
4 |
+
|----------------------------------------------------------------------------*/
|
5 |
+
|
6 |
+
/*
|
7 |
+
The following CSS variables define the main, public API for styling JupyterLab.
|
8 |
+
These variables should be used by all plugins wherever possible. In other
|
9 |
+
words, plugins should not define custom colors, sizes, etc unless absolutely
|
10 |
+
necessary. This enables users to change the visual theme of JupyterLab
|
11 |
+
by changing these variables.
|
12 |
+
|
13 |
+
Many variables appear in an ordered sequence (0,1,2,3). These sequences
|
14 |
+
are designed to work well together, so for example, `--jp-border-color1` should
|
15 |
+
be used with `--jp-layout-color1`. The numbers have the following meanings:
|
16 |
+
|
17 |
+
* 0: super-primary, reserved for special emphasis
|
18 |
+
* 1: primary, most important under normal situations
|
19 |
+
* 2: secondary, next most important under normal situations
|
20 |
+
* 3: tertiary, next most important under normal situations
|
21 |
+
|
22 |
+
Throughout JupyterLab, we are mostly following principles from Google's
|
23 |
+
Material Design when selecting colors. We are not, however, following
|
24 |
+
all of MD as it is not optimized for dense, information rich UIs.
|
25 |
+
*/
|
26 |
+
|
27 |
+
:root {
|
28 |
+
/* Elevation
|
29 |
+
*
|
30 |
+
* We style box-shadows using Material Design's idea of elevation. These particular numbers are taken from here:
|
31 |
+
*
|
32 |
+
* https://github.com/material-components/material-components-web
|
33 |
+
* https://material-components-web.appspot.com/elevation.html
|
34 |
+
*/
|
35 |
+
|
36 |
+
/* The dark theme shadows need a bit of work, but this will probably also require work on the core layout
|
37 |
+
* colors used in the theme as well. */
|
38 |
+
--jp-shadow-base-lightness: 32;
|
39 |
+
--jp-shadow-umbra-color: rgba(
|
40 |
+
var(--jp-shadow-base-lightness),
|
41 |
+
var(--jp-shadow-base-lightness),
|
42 |
+
var(--jp-shadow-base-lightness),
|
43 |
+
0.2
|
44 |
+
);
|
45 |
+
--jp-shadow-penumbra-color: rgba(
|
46 |
+
var(--jp-shadow-base-lightness),
|
47 |
+
var(--jp-shadow-base-lightness),
|
48 |
+
var(--jp-shadow-base-lightness),
|
49 |
+
0.14
|
50 |
+
);
|
51 |
+
--jp-shadow-ambient-color: rgba(
|
52 |
+
var(--jp-shadow-base-lightness),
|
53 |
+
var(--jp-shadow-base-lightness),
|
54 |
+
var(--jp-shadow-base-lightness),
|
55 |
+
0.12
|
56 |
+
);
|
57 |
+
--jp-elevation-z0: none;
|
58 |
+
--jp-elevation-z1: 0 2px 1px -1px var(--jp-shadow-umbra-color),
|
59 |
+
0 1px 1px 0 var(--jp-shadow-penumbra-color),
|
60 |
+
0 1px 3px 0 var(--jp-shadow-ambient-color);
|
61 |
+
--jp-elevation-z2: 0 3px 1px -2px var(--jp-shadow-umbra-color),
|
62 |
+
0 2px 2px 0 var(--jp-shadow-penumbra-color),
|
63 |
+
0 1px 5px 0 var(--jp-shadow-ambient-color);
|
64 |
+
--jp-elevation-z4: 0 2px 4px -1px var(--jp-shadow-umbra-color),
|
65 |
+
0 4px 5px 0 var(--jp-shadow-penumbra-color),
|
66 |
+
0 1px 10px 0 var(--jp-shadow-ambient-color);
|
67 |
+
--jp-elevation-z6: 0 3px 5px -1px var(--jp-shadow-umbra-color),
|
68 |
+
0 6px 10px 0 var(--jp-shadow-penumbra-color),
|
69 |
+
0 1px 18px 0 var(--jp-shadow-ambient-color);
|
70 |
+
--jp-elevation-z8: 0 5px 5px -3px var(--jp-shadow-umbra-color),
|
71 |
+
0 8px 10px 1px var(--jp-shadow-penumbra-color),
|
72 |
+
0 3px 14px 2px var(--jp-shadow-ambient-color);
|
73 |
+
--jp-elevation-z12: 0 7px 8px -4px var(--jp-shadow-umbra-color),
|
74 |
+
0 12px 17px 2px var(--jp-shadow-penumbra-color),
|
75 |
+
0 5px 22px 4px var(--jp-shadow-ambient-color);
|
76 |
+
--jp-elevation-z16: 0 8px 10px -5px var(--jp-shadow-umbra-color),
|
77 |
+
0 16px 24px 2px var(--jp-shadow-penumbra-color),
|
78 |
+
0 6px 30px 5px var(--jp-shadow-ambient-color);
|
79 |
+
--jp-elevation-z20: 0 10px 13px -6px var(--jp-shadow-umbra-color),
|
80 |
+
0 20px 31px 3px var(--jp-shadow-penumbra-color),
|
81 |
+
0 8px 38px 7px var(--jp-shadow-ambient-color);
|
82 |
+
--jp-elevation-z24: 0 11px 15px -7px var(--jp-shadow-umbra-color),
|
83 |
+
0 24px 38px 3px var(--jp-shadow-penumbra-color),
|
84 |
+
0 9px 46px 8px var(--jp-shadow-ambient-color);
|
85 |
+
|
86 |
+
/* Borders
|
87 |
+
*
|
88 |
+
* The following variables, specify the visual styling of borders in JupyterLab.
|
89 |
+
*/
|
90 |
+
|
91 |
+
--jp-border-width: 1px;
|
92 |
+
--jp-border-color0: var(--md-grey-700);
|
93 |
+
--jp-border-color1: var(--md-grey-700);
|
94 |
+
--jp-border-color2: var(--md-grey-800);
|
95 |
+
--jp-border-color3: var(--md-grey-900);
|
96 |
+
--jp-inverse-border-color: var(--md-grey-600);
|
97 |
+
--jp-border-radius: 2px;
|
98 |
+
|
99 |
+
/* UI Fonts
|
100 |
+
*
|
101 |
+
* The UI font CSS variables are used for the typography all of the JupyterLab
|
102 |
+
* user interface elements that are not directly user generated content.
|
103 |
+
*
|
104 |
+
* The font sizing here is done assuming that the body font size of --jp-ui-font-size1
|
105 |
+
* is applied to a parent element. When children elements, such as headings, are sized
|
106 |
+
* in em all things will be computed relative to that body size.
|
107 |
+
*/
|
108 |
+
|
109 |
+
--jp-ui-font-scale-factor: 1.2;
|
110 |
+
--jp-ui-font-size0: 0.83333em;
|
111 |
+
--jp-ui-font-size1: 13px; /* Base font size */
|
112 |
+
--jp-ui-font-size2: 1.2em;
|
113 |
+
--jp-ui-font-size3: 1.44em;
|
114 |
+
--jp-ui-font-family: system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI',
|
115 |
+
helvetica, arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
116 |
+
'Segoe UI Symbol';
|
117 |
+
|
118 |
+
/*
|
119 |
+
* Use these font colors against the corresponding main layout colors.
|
120 |
+
* In a light theme, these go from dark to light.
|
121 |
+
*/
|
122 |
+
|
123 |
+
/* Defaults use Material Design specification */
|
124 |
+
--jp-ui-font-color0: rgba(255, 255, 255, 1);
|
125 |
+
--jp-ui-font-color1: rgba(255, 255, 255, 0.87);
|
126 |
+
--jp-ui-font-color2: rgba(255, 255, 255, 0.54);
|
127 |
+
--jp-ui-font-color3: rgba(255, 255, 255, 0.38);
|
128 |
+
|
129 |
+
/*
|
130 |
+
* Use these against the brand/accent/warn/error colors.
|
131 |
+
* These will typically go from light to darker, in both a dark and light theme.
|
132 |
+
*/
|
133 |
+
|
134 |
+
--jp-ui-inverse-font-color0: rgba(0, 0, 0, 1);
|
135 |
+
--jp-ui-inverse-font-color1: rgba(0, 0, 0, 0.8);
|
136 |
+
--jp-ui-inverse-font-color2: rgba(0, 0, 0, 0.5);
|
137 |
+
--jp-ui-inverse-font-color3: rgba(0, 0, 0, 0.3);
|
138 |
+
|
139 |
+
/* Content Fonts
|
140 |
+
*
|
141 |
+
* Content font variables are used for typography of user generated content.
|
142 |
+
*
|
143 |
+
* The font sizing here is done assuming that the body font size of --jp-content-font-size1
|
144 |
+
* is applied to a parent element. When children elements, such as headings, are sized
|
145 |
+
* in em all things will be computed relative to that body size.
|
146 |
+
*/
|
147 |
+
|
148 |
+
--jp-content-line-height: 1.6;
|
149 |
+
--jp-content-font-scale-factor: 1.2;
|
150 |
+
--jp-content-font-size0: 0.83333em;
|
151 |
+
--jp-content-font-size1: 14px; /* Base font size */
|
152 |
+
--jp-content-font-size2: 1.2em;
|
153 |
+
--jp-content-font-size3: 1.44em;
|
154 |
+
--jp-content-font-size4: 1.728em;
|
155 |
+
--jp-content-font-size5: 2.0736em;
|
156 |
+
|
157 |
+
/* This gives a magnification of about 125% in presentation mode over normal. */
|
158 |
+
--jp-content-presentation-font-size1: 17px;
|
159 |
+
--jp-content-heading-line-height: 1;
|
160 |
+
--jp-content-heading-margin-top: 1.2em;
|
161 |
+
--jp-content-heading-margin-bottom: 0.8em;
|
162 |
+
--jp-content-heading-font-weight: 500;
|
163 |
+
|
164 |
+
/* Defaults use Material Design specification */
|
165 |
+
--jp-content-font-color0: rgba(255, 255, 255, 1);
|
166 |
+
--jp-content-font-color1: rgba(255, 255, 255, 1);
|
167 |
+
--jp-content-font-color2: rgba(255, 255, 255, 0.7);
|
168 |
+
--jp-content-font-color3: rgba(255, 255, 255, 0.5);
|
169 |
+
--jp-content-link-color: var(--md-blue-300);
|
170 |
+
--jp-content-font-family: system-ui, -apple-system, blinkmacsystemfont,
|
171 |
+
'Segoe UI', helvetica, arial, sans-serif, 'Apple Color Emoji',
|
172 |
+
'Segoe UI Emoji', 'Segoe UI Symbol';
|
173 |
+
|
174 |
+
/*
|
175 |
+
* Code Fonts
|
176 |
+
*
|
177 |
+
* Code font variables are used for typography of code and other monospaces content.
|
178 |
+
*/
|
179 |
+
|
180 |
+
--jp-code-font-size: 13px;
|
181 |
+
--jp-code-line-height: 1.3077; /* 17px for 13px base */
|
182 |
+
--jp-code-padding: 5px; /* 5px for 13px base, codemirror highlighting needs integer px value */
|
183 |
+
--jp-code-font-family-default: menlo, consolas, 'DejaVu Sans Mono', monospace;
|
184 |
+
--jp-code-font-family: var(--jp-code-font-family-default);
|
185 |
+
|
186 |
+
/* This gives a magnification of about 125% in presentation mode over normal. */
|
187 |
+
--jp-code-presentation-font-size: 16px;
|
188 |
+
|
189 |
+
/* may need to tweak cursor width if you change font size */
|
190 |
+
--jp-code-cursor-width0: 1.4px;
|
191 |
+
--jp-code-cursor-width1: 2px;
|
192 |
+
--jp-code-cursor-width2: 4px;
|
193 |
+
|
194 |
+
/* Layout
|
195 |
+
*
|
196 |
+
* The following are the main layout colors use in JupyterLab. In a light
|
197 |
+
* theme these would go from light to dark.
|
198 |
+
*/
|
199 |
+
|
200 |
+
--jp-layout-color0: #111;
|
201 |
+
--jp-layout-color1: var(--md-grey-900);
|
202 |
+
--jp-layout-color2: var(--md-grey-800);
|
203 |
+
--jp-layout-color3: var(--md-grey-700);
|
204 |
+
--jp-layout-color4: var(--md-grey-600);
|
205 |
+
|
206 |
+
/* Inverse Layout
|
207 |
+
*
|
208 |
+
* The following are the inverse layout colors use in JupyterLab. In a light
|
209 |
+
* theme these would go from dark to light.
|
210 |
+
*/
|
211 |
+
|
212 |
+
--jp-inverse-layout-color0: white;
|
213 |
+
--jp-inverse-layout-color1: white;
|
214 |
+
--jp-inverse-layout-color2: var(--md-grey-200);
|
215 |
+
--jp-inverse-layout-color3: var(--md-grey-400);
|
216 |
+
--jp-inverse-layout-color4: var(--md-grey-600);
|
217 |
+
|
218 |
+
/* Brand/accent */
|
219 |
+
|
220 |
+
--jp-brand-color0: var(--md-blue-700);
|
221 |
+
--jp-brand-color1: var(--md-blue-500);
|
222 |
+
--jp-brand-color2: var(--md-blue-300);
|
223 |
+
--jp-brand-color3: var(--md-blue-100);
|
224 |
+
--jp-brand-color4: var(--md-blue-50);
|
225 |
+
--jp-accent-color0: var(--md-green-700);
|
226 |
+
--jp-accent-color1: var(--md-green-500);
|
227 |
+
--jp-accent-color2: var(--md-green-300);
|
228 |
+
--jp-accent-color3: var(--md-green-100);
|
229 |
+
|
230 |
+
/* State colors (warn, error, success, info) */
|
231 |
+
|
232 |
+
--jp-warn-color0: var(--md-orange-700);
|
233 |
+
--jp-warn-color1: var(--md-orange-500);
|
234 |
+
--jp-warn-color2: var(--md-orange-300);
|
235 |
+
--jp-warn-color3: var(--md-orange-100);
|
236 |
+
--jp-error-color0: var(--md-red-700);
|
237 |
+
--jp-error-color1: var(--md-red-500);
|
238 |
+
--jp-error-color2: var(--md-red-300);
|
239 |
+
--jp-error-color3: var(--md-red-100);
|
240 |
+
--jp-success-color0: var(--md-green-700);
|
241 |
+
--jp-success-color1: var(--md-green-500);
|
242 |
+
--jp-success-color2: var(--md-green-300);
|
243 |
+
--jp-success-color3: var(--md-green-100);
|
244 |
+
--jp-info-color0: var(--md-cyan-700);
|
245 |
+
--jp-info-color1: var(--md-cyan-500);
|
246 |
+
--jp-info-color2: var(--md-cyan-300);
|
247 |
+
--jp-info-color3: var(--md-cyan-100);
|
248 |
+
|
249 |
+
/* Cell specific styles */
|
250 |
+
|
251 |
+
--jp-cell-padding: 5px;
|
252 |
+
--jp-cell-collapser-width: 8px;
|
253 |
+
--jp-cell-collapser-min-height: 20px;
|
254 |
+
--jp-cell-collapser-not-active-hover-opacity: 0.6;
|
255 |
+
--jp-cell-editor-background: var(--jp-layout-color1);
|
256 |
+
--jp-cell-editor-border-color: var(--md-grey-700);
|
257 |
+
--jp-cell-editor-box-shadow: inset 0 0 2px var(--md-blue-300);
|
258 |
+
--jp-cell-editor-active-background: var(--jp-layout-color0);
|
259 |
+
--jp-cell-editor-active-border-color: var(--jp-brand-color1);
|
260 |
+
--jp-cell-prompt-width: 64px;
|
261 |
+
--jp-cell-prompt-font-family: var(--jp-code-font-family-default);
|
262 |
+
--jp-cell-prompt-letter-spacing: 0;
|
263 |
+
--jp-cell-prompt-opacity: 1;
|
264 |
+
--jp-cell-prompt-not-active-opacity: 1;
|
265 |
+
--jp-cell-prompt-not-active-font-color: var(--md-grey-300);
|
266 |
+
|
267 |
+
/* A custom blend of MD grey and blue 600
|
268 |
+
* See https://meyerweb.com/eric/tools/color-blend/#546E7A:1E88E5:5:hex */
|
269 |
+
--jp-cell-inprompt-font-color: #307fc1;
|
270 |
+
|
271 |
+
/* A custom blend of MD grey and orange 600
|
272 |
+
* https://meyerweb.com/eric/tools/color-blend/#546E7A:F4511E:5:hex */
|
273 |
+
--jp-cell-outprompt-font-color: #bf5b3d;
|
274 |
+
|
275 |
+
/* Notebook specific styles */
|
276 |
+
|
277 |
+
--jp-notebook-padding: 10px;
|
278 |
+
--jp-notebook-select-background: var(--jp-layout-color1);
|
279 |
+
--jp-notebook-multiselected-color: rgba(33, 150, 243, 0.24);
|
280 |
+
|
281 |
+
/* The scroll padding is calculated to fill enough space at the bottom of the
|
282 |
+
notebook to show one single-line cell (with appropriate padding) at the top
|
283 |
+
when the notebook is scrolled all the way to the bottom. We also subtract one
|
284 |
+
pixel so that no scrollbar appears if we have just one single-line cell in the
|
285 |
+
notebook. This padding is to enable a 'scroll past end' feature in a notebook.
|
286 |
+
*/
|
287 |
+
--jp-notebook-scroll-padding: calc(
|
288 |
+
100% - var(--jp-code-font-size) * var(--jp-code-line-height) -
|
289 |
+
var(--jp-code-padding) - var(--jp-cell-padding) - 1px
|
290 |
+
);
|
291 |
+
|
292 |
+
/* Rendermime styles */
|
293 |
+
|
294 |
+
--jp-rendermime-error-background: rgba(244, 67, 54, 0.28);
|
295 |
+
--jp-rendermime-table-row-background: var(--md-grey-900);
|
296 |
+
--jp-rendermime-table-row-hover-background: rgba(3, 169, 244, 0.2);
|
297 |
+
|
298 |
+
/* Dialog specific styles */
|
299 |
+
|
300 |
+
--jp-dialog-background: rgba(0, 0, 0, 0.6);
|
301 |
+
|
302 |
+
/* Console specific styles */
|
303 |
+
|
304 |
+
--jp-console-padding: 10px;
|
305 |
+
|
306 |
+
/* Toolbar specific styles */
|
307 |
+
|
308 |
+
--jp-toolbar-border-color: var(--jp-border-color2);
|
309 |
+
--jp-toolbar-micro-height: 8px;
|
310 |
+
--jp-toolbar-background: var(--jp-layout-color1);
|
311 |
+
--jp-toolbar-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.8);
|
312 |
+
--jp-toolbar-header-margin: 4px 4px 0 4px;
|
313 |
+
--jp-toolbar-active-background: var(--jp-layout-color0);
|
314 |
+
|
315 |
+
/* Statusbar specific styles */
|
316 |
+
|
317 |
+
--jp-statusbar-height: 24px;
|
318 |
+
|
319 |
+
/* Input field styles */
|
320 |
+
|
321 |
+
--jp-input-box-shadow: inset 0 0 2px var(--md-blue-300);
|
322 |
+
--jp-input-active-background: var(--jp-layout-color0);
|
323 |
+
--jp-input-hover-background: var(--jp-layout-color2);
|
324 |
+
--jp-input-background: var(--md-grey-800);
|
325 |
+
--jp-input-border-color: var(--jp-inverse-border-color);
|
326 |
+
--jp-input-active-border-color: var(--jp-brand-color1);
|
327 |
+
--jp-input-active-box-shadow-color: rgba(19, 124, 189, 0.3);
|
328 |
+
|
329 |
+
/* General editor styles */
|
330 |
+
|
331 |
+
--jp-editor-selected-background: var(--jp-layout-color2);
|
332 |
+
--jp-editor-selected-focused-background: rgba(33, 150, 243, 0.24);
|
333 |
+
--jp-editor-cursor-color: var(--jp-ui-font-color0);
|
334 |
+
|
335 |
+
/* Code mirror specific styles */
|
336 |
+
|
337 |
+
--jp-mirror-editor-keyword-color: var(--md-green-500);
|
338 |
+
--jp-mirror-editor-atom-color: var(--md-blue-300);
|
339 |
+
--jp-mirror-editor-number-color: var(--md-green-400);
|
340 |
+
--jp-mirror-editor-def-color: var(--md-blue-600);
|
341 |
+
--jp-mirror-editor-variable-color: var(--md-grey-300);
|
342 |
+
--jp-mirror-editor-variable-2-color: var(--md-blue-500);
|
343 |
+
--jp-mirror-editor-variable-3-color: var(--md-green-600);
|
344 |
+
--jp-mirror-editor-punctuation-color: var(--md-blue-400);
|
345 |
+
--jp-mirror-editor-property-color: var(--md-blue-400);
|
346 |
+
--jp-mirror-editor-operator-color: #a2f;
|
347 |
+
--jp-mirror-editor-comment-color: #408080;
|
348 |
+
--jp-mirror-editor-string-color: #ff7070;
|
349 |
+
--jp-mirror-editor-string-2-color: var(--md-purple-300);
|
350 |
+
--jp-mirror-editor-meta-color: #a2f;
|
351 |
+
--jp-mirror-editor-qualifier-color: #555;
|
352 |
+
--jp-mirror-editor-builtin-color: var(--md-green-600);
|
353 |
+
--jp-mirror-editor-bracket-color: #997;
|
354 |
+
--jp-mirror-editor-tag-color: var(--md-green-700);
|
355 |
+
--jp-mirror-editor-attribute-color: var(--md-blue-700);
|
356 |
+
--jp-mirror-editor-header-color: var(--md-blue-500);
|
357 |
+
--jp-mirror-editor-quote-color: var(--md-green-300);
|
358 |
+
--jp-mirror-editor-link-color: var(--md-blue-700);
|
359 |
+
--jp-mirror-editor-error-color: #f00;
|
360 |
+
--jp-mirror-editor-hr-color: #999;
|
361 |
+
|
362 |
+
/*
|
363 |
+
RTC user specific colors.
|
364 |
+
These colors are used for the cursor, username in the editor,
|
365 |
+
and the icon of the user.
|
366 |
+
*/
|
367 |
+
|
368 |
+
--jp-collaborator-color1: #ad4a00;
|
369 |
+
--jp-collaborator-color2: #7b6a00;
|
370 |
+
--jp-collaborator-color3: #007e00;
|
371 |
+
--jp-collaborator-color4: #008772;
|
372 |
+
--jp-collaborator-color5: #0079b9;
|
373 |
+
--jp-collaborator-color6: #8b45c6;
|
374 |
+
--jp-collaborator-color7: #be208b;
|
375 |
+
|
376 |
+
/* Vega extension styles */
|
377 |
+
|
378 |
+
--jp-vega-background: var(--md-grey-400);
|
379 |
+
|
380 |
+
/* Sidebar-related styles */
|
381 |
+
|
382 |
+
--jp-sidebar-min-width: 250px;
|
383 |
+
|
384 |
+
/* Search-related styles */
|
385 |
+
|
386 |
+
--jp-search-toggle-off-opacity: 0.6;
|
387 |
+
--jp-search-toggle-hover-opacity: 0.8;
|
388 |
+
--jp-search-toggle-on-opacity: 1;
|
389 |
+
--jp-search-selected-match-background-color: rgb(255, 225, 0);
|
390 |
+
--jp-search-selected-match-color: black;
|
391 |
+
--jp-search-unselected-match-background-color: var(
|
392 |
+
--jp-inverse-layout-color0
|
393 |
+
);
|
394 |
+
--jp-search-unselected-match-color: var(--jp-ui-inverse-font-color0);
|
395 |
+
|
396 |
+
/* scrollbar related styles. Supports every browser except Edge. */
|
397 |
+
|
398 |
+
/* colors based on JetBrain's Darcula theme */
|
399 |
+
|
400 |
+
--jp-scrollbar-background-color: #3f4244;
|
401 |
+
--jp-scrollbar-thumb-color: 88, 96, 97; /* need to specify thumb color as an RGB triplet */
|
402 |
+
--jp-scrollbar-endpad: 3px; /* the minimum gap between the thumb and the ends of a scrollbar */
|
403 |
+
|
404 |
+
/* hacks for setting the thumb shape. These do nothing in Firefox */
|
405 |
+
|
406 |
+
--jp-scrollbar-thumb-margin: 3.5px; /* the space in between the sides of the thumb and the track */
|
407 |
+
--jp-scrollbar-thumb-radius: 9px; /* set to a large-ish value for rounded endcaps on the thumb */
|
408 |
+
|
409 |
+
/* Icon colors that work well with light or dark backgrounds */
|
410 |
+
--jp-icon-contrast-color0: var(--md-purple-600);
|
411 |
+
--jp-icon-contrast-color1: var(--md-green-600);
|
412 |
+
--jp-icon-contrast-color2: var(--md-pink-600);
|
413 |
+
--jp-icon-contrast-color3: var(--md-blue-600);
|
414 |
+
|
415 |
+
/* Button colors */
|
416 |
+
--jp-accept-color-normal: var(--md-blue-700);
|
417 |
+
--jp-accept-color-hover: var(--md-blue-800);
|
418 |
+
--jp-accept-color-active: var(--md-blue-900);
|
419 |
+
--jp-warn-color-normal: var(--md-red-700);
|
420 |
+
--jp-warn-color-hover: var(--md-red-800);
|
421 |
+
--jp-warn-color-active: var(--md-red-900);
|
422 |
+
--jp-reject-color-normal: var(--md-grey-600);
|
423 |
+
--jp-reject-color-hover: var(--md-grey-700);
|
424 |
+
--jp-reject-color-active: var(--md-grey-800);
|
425 |
+
|
426 |
+
/* File or activity icons and switch semantic variables */
|
427 |
+
--jp-jupyter-icon-color: #f37626;
|
428 |
+
--jp-notebook-icon-color: #f37626;
|
429 |
+
--jp-json-icon-color: var(--md-orange-500);
|
430 |
+
--jp-console-icon-background-color: var(--md-blue-500);
|
431 |
+
--jp-console-icon-color: white;
|
432 |
+
--jp-terminal-icon-background-color: var(--md-grey-200);
|
433 |
+
--jp-terminal-icon-color: var(--md-grey-800);
|
434 |
+
--jp-text-editor-icon-color: var(--md-grey-200);
|
435 |
+
--jp-inspector-icon-color: var(--md-grey-200);
|
436 |
+
--jp-switch-color: var(--md-grey-400);
|
437 |
+
--jp-switch-true-position-color: var(--md-orange-700);
|
438 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/lab/static/theme-light.css
ADDED
@@ -0,0 +1,423 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*-----------------------------------------------------------------------------
|
2 |
+
| Copyright (c) Jupyter Development Team.
|
3 |
+
| Distributed under the terms of the Modified BSD License.
|
4 |
+
|----------------------------------------------------------------------------*/
|
5 |
+
|
6 |
+
/*
|
7 |
+
The following CSS variables define the main, public API for styling JupyterLab.
|
8 |
+
These variables should be used by all plugins wherever possible. In other
|
9 |
+
words, plugins should not define custom colors, sizes, etc unless absolutely
|
10 |
+
necessary. This enables users to change the visual theme of JupyterLab
|
11 |
+
by changing these variables.
|
12 |
+
|
13 |
+
Many variables appear in an ordered sequence (0,1,2,3). These sequences
|
14 |
+
are designed to work well together, so for example, `--jp-border-color1` should
|
15 |
+
be used with `--jp-layout-color1`. The numbers have the following meanings:
|
16 |
+
|
17 |
+
* 0: super-primary, reserved for special emphasis
|
18 |
+
* 1: primary, most important under normal situations
|
19 |
+
* 2: secondary, next most important under normal situations
|
20 |
+
* 3: tertiary, next most important under normal situations
|
21 |
+
|
22 |
+
Throughout JupyterLab, we are mostly following principles from Google's
|
23 |
+
Material Design when selecting colors. We are not, however, following
|
24 |
+
all of MD as it is not optimized for dense, information rich UIs.
|
25 |
+
*/
|
26 |
+
|
27 |
+
:root {
|
28 |
+
/* Elevation
|
29 |
+
*
|
30 |
+
* We style box-shadows using Material Design's idea of elevation. These particular numbers are taken from here:
|
31 |
+
*
|
32 |
+
* https://github.com/material-components/material-components-web
|
33 |
+
* https://material-components-web.appspot.com/elevation.html
|
34 |
+
*/
|
35 |
+
|
36 |
+
--jp-shadow-base-lightness: 0;
|
37 |
+
--jp-shadow-umbra-color: rgba(
|
38 |
+
var(--jp-shadow-base-lightness),
|
39 |
+
var(--jp-shadow-base-lightness),
|
40 |
+
var(--jp-shadow-base-lightness),
|
41 |
+
0.2
|
42 |
+
);
|
43 |
+
--jp-shadow-penumbra-color: rgba(
|
44 |
+
var(--jp-shadow-base-lightness),
|
45 |
+
var(--jp-shadow-base-lightness),
|
46 |
+
var(--jp-shadow-base-lightness),
|
47 |
+
0.14
|
48 |
+
);
|
49 |
+
--jp-shadow-ambient-color: rgba(
|
50 |
+
var(--jp-shadow-base-lightness),
|
51 |
+
var(--jp-shadow-base-lightness),
|
52 |
+
var(--jp-shadow-base-lightness),
|
53 |
+
0.12
|
54 |
+
);
|
55 |
+
--jp-elevation-z0: none;
|
56 |
+
--jp-elevation-z1: 0 2px 1px -1px var(--jp-shadow-umbra-color),
|
57 |
+
0 1px 1px 0 var(--jp-shadow-penumbra-color),
|
58 |
+
0 1px 3px 0 var(--jp-shadow-ambient-color);
|
59 |
+
--jp-elevation-z2: 0 3px 1px -2px var(--jp-shadow-umbra-color),
|
60 |
+
0 2px 2px 0 var(--jp-shadow-penumbra-color),
|
61 |
+
0 1px 5px 0 var(--jp-shadow-ambient-color);
|
62 |
+
--jp-elevation-z4: 0 2px 4px -1px var(--jp-shadow-umbra-color),
|
63 |
+
0 4px 5px 0 var(--jp-shadow-penumbra-color),
|
64 |
+
0 1px 10px 0 var(--jp-shadow-ambient-color);
|
65 |
+
--jp-elevation-z6: 0 3px 5px -1px var(--jp-shadow-umbra-color),
|
66 |
+
0 6px 10px 0 var(--jp-shadow-penumbra-color),
|
67 |
+
0 1px 18px 0 var(--jp-shadow-ambient-color);
|
68 |
+
--jp-elevation-z8: 0 5px 5px -3px var(--jp-shadow-umbra-color),
|
69 |
+
0 8px 10px 1px var(--jp-shadow-penumbra-color),
|
70 |
+
0 3px 14px 2px var(--jp-shadow-ambient-color);
|
71 |
+
--jp-elevation-z12: 0 7px 8px -4px var(--jp-shadow-umbra-color),
|
72 |
+
0 12px 17px 2px var(--jp-shadow-penumbra-color),
|
73 |
+
0 5px 22px 4px var(--jp-shadow-ambient-color);
|
74 |
+
--jp-elevation-z16: 0 8px 10px -5px var(--jp-shadow-umbra-color),
|
75 |
+
0 16px 24px 2px var(--jp-shadow-penumbra-color),
|
76 |
+
0 6px 30px 5px var(--jp-shadow-ambient-color);
|
77 |
+
--jp-elevation-z20: 0 10px 13px -6px var(--jp-shadow-umbra-color),
|
78 |
+
0 20px 31px 3px var(--jp-shadow-penumbra-color),
|
79 |
+
0 8px 38px 7px var(--jp-shadow-ambient-color);
|
80 |
+
--jp-elevation-z24: 0 11px 15px -7px var(--jp-shadow-umbra-color),
|
81 |
+
0 24px 38px 3px var(--jp-shadow-penumbra-color),
|
82 |
+
0 9px 46px 8px var(--jp-shadow-ambient-color);
|
83 |
+
|
84 |
+
/* Borders
|
85 |
+
*
|
86 |
+
* The following variables, specify the visual styling of borders in JupyterLab.
|
87 |
+
*/
|
88 |
+
|
89 |
+
--jp-border-width: 1px;
|
90 |
+
--jp-border-color0: var(--md-grey-400);
|
91 |
+
--jp-border-color1: var(--md-grey-400);
|
92 |
+
--jp-border-color2: var(--md-grey-300);
|
93 |
+
--jp-border-color3: var(--md-grey-200);
|
94 |
+
--jp-inverse-border-color: var(--md-grey-600);
|
95 |
+
--jp-border-radius: 2px;
|
96 |
+
|
97 |
+
/* UI Fonts
|
98 |
+
*
|
99 |
+
* The UI font CSS variables are used for the typography all of the JupyterLab
|
100 |
+
* user interface elements that are not directly user generated content.
|
101 |
+
*
|
102 |
+
* The font sizing here is done assuming that the body font size of --jp-ui-font-size1
|
103 |
+
* is applied to a parent element. When children elements, such as headings, are sized
|
104 |
+
* in em all things will be computed relative to that body size.
|
105 |
+
*/
|
106 |
+
|
107 |
+
--jp-ui-font-scale-factor: 1.2;
|
108 |
+
--jp-ui-font-size0: 0.83333em;
|
109 |
+
--jp-ui-font-size1: 13px; /* Base font size */
|
110 |
+
--jp-ui-font-size2: 1.2em;
|
111 |
+
--jp-ui-font-size3: 1.44em;
|
112 |
+
--jp-ui-font-family: system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI',
|
113 |
+
helvetica, arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
114 |
+
'Segoe UI Symbol';
|
115 |
+
|
116 |
+
/*
|
117 |
+
* Use these font colors against the corresponding main layout colors.
|
118 |
+
* In a light theme, these go from dark to light.
|
119 |
+
*/
|
120 |
+
|
121 |
+
/* Defaults use Material Design specification */
|
122 |
+
--jp-ui-font-color0: rgba(0, 0, 0, 1);
|
123 |
+
--jp-ui-font-color1: rgba(0, 0, 0, 0.87);
|
124 |
+
--jp-ui-font-color2: rgba(0, 0, 0, 0.54);
|
125 |
+
--jp-ui-font-color3: rgba(0, 0, 0, 0.38);
|
126 |
+
|
127 |
+
/*
|
128 |
+
* Use these against the brand/accent/warn/error colors.
|
129 |
+
* These will typically go from light to darker, in both a dark and light theme.
|
130 |
+
*/
|
131 |
+
|
132 |
+
--jp-ui-inverse-font-color0: rgba(255, 255, 255, 1);
|
133 |
+
--jp-ui-inverse-font-color1: rgba(255, 255, 255, 1);
|
134 |
+
--jp-ui-inverse-font-color2: rgba(255, 255, 255, 0.7);
|
135 |
+
--jp-ui-inverse-font-color3: rgba(255, 255, 255, 0.5);
|
136 |
+
|
137 |
+
/* Content Fonts
|
138 |
+
*
|
139 |
+
* Content font variables are used for typography of user generated content.
|
140 |
+
*
|
141 |
+
* The font sizing here is done assuming that the body font size of --jp-content-font-size1
|
142 |
+
* is applied to a parent element. When children elements, such as headings, are sized
|
143 |
+
* in em all things will be computed relative to that body size.
|
144 |
+
*/
|
145 |
+
|
146 |
+
--jp-content-line-height: 1.6;
|
147 |
+
--jp-content-font-scale-factor: 1.2;
|
148 |
+
--jp-content-font-size0: 0.83333em;
|
149 |
+
--jp-content-font-size1: 14px; /* Base font size */
|
150 |
+
--jp-content-font-size2: 1.2em;
|
151 |
+
--jp-content-font-size3: 1.44em;
|
152 |
+
--jp-content-font-size4: 1.728em;
|
153 |
+
--jp-content-font-size5: 2.0736em;
|
154 |
+
|
155 |
+
/* This gives a magnification of about 125% in presentation mode over normal. */
|
156 |
+
--jp-content-presentation-font-size1: 17px;
|
157 |
+
--jp-content-heading-line-height: 1;
|
158 |
+
--jp-content-heading-margin-top: 1.2em;
|
159 |
+
--jp-content-heading-margin-bottom: 0.8em;
|
160 |
+
--jp-content-heading-font-weight: 500;
|
161 |
+
|
162 |
+
/* Defaults use Material Design specification */
|
163 |
+
--jp-content-font-color0: rgba(0, 0, 0, 1);
|
164 |
+
--jp-content-font-color1: rgba(0, 0, 0, 0.87);
|
165 |
+
--jp-content-font-color2: rgba(0, 0, 0, 0.54);
|
166 |
+
--jp-content-font-color3: rgba(0, 0, 0, 0.38);
|
167 |
+
--jp-content-link-color: var(--md-blue-900);
|
168 |
+
--jp-content-font-family: system-ui, -apple-system, blinkmacsystemfont,
|
169 |
+
'Segoe UI', helvetica, arial, sans-serif, 'Apple Color Emoji',
|
170 |
+
'Segoe UI Emoji', 'Segoe UI Symbol';
|
171 |
+
|
172 |
+
/*
|
173 |
+
* Code Fonts
|
174 |
+
*
|
175 |
+
* Code font variables are used for typography of code and other monospaces content.
|
176 |
+
*/
|
177 |
+
|
178 |
+
--jp-code-font-size: 13px;
|
179 |
+
--jp-code-line-height: 1.3077; /* 17px for 13px base */
|
180 |
+
--jp-code-padding: 5px; /* 5px for 13px base, codemirror highlighting needs integer px value */
|
181 |
+
--jp-code-font-family-default: menlo, consolas, 'DejaVu Sans Mono', monospace;
|
182 |
+
--jp-code-font-family: var(--jp-code-font-family-default);
|
183 |
+
|
184 |
+
/* This gives a magnification of about 125% in presentation mode over normal. */
|
185 |
+
--jp-code-presentation-font-size: 16px;
|
186 |
+
|
187 |
+
/* may need to tweak cursor width if you change font size */
|
188 |
+
--jp-code-cursor-width0: 1.4px;
|
189 |
+
--jp-code-cursor-width1: 2px;
|
190 |
+
--jp-code-cursor-width2: 4px;
|
191 |
+
|
192 |
+
/* Layout
|
193 |
+
*
|
194 |
+
* The following are the main layout colors use in JupyterLab. In a light
|
195 |
+
* theme these would go from light to dark.
|
196 |
+
*/
|
197 |
+
|
198 |
+
--jp-layout-color0: white;
|
199 |
+
--jp-layout-color1: white;
|
200 |
+
--jp-layout-color2: var(--md-grey-200);
|
201 |
+
--jp-layout-color3: var(--md-grey-400);
|
202 |
+
--jp-layout-color4: var(--md-grey-600);
|
203 |
+
|
204 |
+
/* Inverse Layout
|
205 |
+
*
|
206 |
+
* The following are the inverse layout colors use in JupyterLab. In a light
|
207 |
+
* theme these would go from dark to light.
|
208 |
+
*/
|
209 |
+
|
210 |
+
--jp-inverse-layout-color0: #111;
|
211 |
+
--jp-inverse-layout-color1: var(--md-grey-900);
|
212 |
+
--jp-inverse-layout-color2: var(--md-grey-800);
|
213 |
+
--jp-inverse-layout-color3: var(--md-grey-700);
|
214 |
+
--jp-inverse-layout-color4: var(--md-grey-600);
|
215 |
+
|
216 |
+
/* Brand/accent */
|
217 |
+
|
218 |
+
--jp-brand-color0: var(--md-blue-900);
|
219 |
+
--jp-brand-color1: var(--md-blue-700);
|
220 |
+
--jp-brand-color2: var(--md-blue-300);
|
221 |
+
--jp-brand-color3: var(--md-blue-100);
|
222 |
+
--jp-brand-color4: var(--md-blue-50);
|
223 |
+
--jp-accent-color0: var(--md-green-900);
|
224 |
+
--jp-accent-color1: var(--md-green-700);
|
225 |
+
--jp-accent-color2: var(--md-green-300);
|
226 |
+
--jp-accent-color3: var(--md-green-100);
|
227 |
+
|
228 |
+
/* State colors (warn, error, success, info) */
|
229 |
+
|
230 |
+
--jp-warn-color0: var(--md-orange-900);
|
231 |
+
--jp-warn-color1: var(--md-orange-700);
|
232 |
+
--jp-warn-color2: var(--md-orange-300);
|
233 |
+
--jp-warn-color3: var(--md-orange-100);
|
234 |
+
--jp-error-color0: var(--md-red-900);
|
235 |
+
--jp-error-color1: var(--md-red-700);
|
236 |
+
--jp-error-color2: var(--md-red-300);
|
237 |
+
--jp-error-color3: var(--md-red-100);
|
238 |
+
--jp-success-color0: var(--md-green-900);
|
239 |
+
--jp-success-color1: var(--md-green-700);
|
240 |
+
--jp-success-color2: var(--md-green-300);
|
241 |
+
--jp-success-color3: var(--md-green-100);
|
242 |
+
--jp-info-color0: var(--md-cyan-900);
|
243 |
+
--jp-info-color1: var(--md-cyan-700);
|
244 |
+
--jp-info-color2: var(--md-cyan-300);
|
245 |
+
--jp-info-color3: var(--md-cyan-100);
|
246 |
+
|
247 |
+
/* Cell specific styles */
|
248 |
+
|
249 |
+
--jp-cell-padding: 5px;
|
250 |
+
--jp-cell-collapser-width: 8px;
|
251 |
+
--jp-cell-collapser-min-height: 20px;
|
252 |
+
--jp-cell-collapser-not-active-hover-opacity: 0.6;
|
253 |
+
--jp-cell-editor-background: var(--md-grey-100);
|
254 |
+
--jp-cell-editor-border-color: var(--md-grey-300);
|
255 |
+
--jp-cell-editor-box-shadow: inset 0 0 2px var(--md-blue-300);
|
256 |
+
--jp-cell-editor-active-background: var(--jp-layout-color0);
|
257 |
+
--jp-cell-editor-active-border-color: var(--jp-brand-color1);
|
258 |
+
--jp-cell-prompt-width: 64px;
|
259 |
+
--jp-cell-prompt-font-family: var(--jp-code-font-family-default);
|
260 |
+
--jp-cell-prompt-letter-spacing: 0;
|
261 |
+
--jp-cell-prompt-opacity: 1;
|
262 |
+
--jp-cell-prompt-not-active-opacity: 0.5;
|
263 |
+
--jp-cell-prompt-not-active-font-color: var(--md-grey-700);
|
264 |
+
|
265 |
+
/* A custom blend of MD grey and blue 600
|
266 |
+
* See https://meyerweb.com/eric/tools/color-blend/#546E7A:1E88E5:5:hex */
|
267 |
+
--jp-cell-inprompt-font-color: #307fc1;
|
268 |
+
|
269 |
+
/* A custom blend of MD grey and orange 600
|
270 |
+
* https://meyerweb.com/eric/tools/color-blend/#546E7A:F4511E:5:hex */
|
271 |
+
--jp-cell-outprompt-font-color: #bf5b3d;
|
272 |
+
|
273 |
+
/* Notebook specific styles */
|
274 |
+
|
275 |
+
--jp-notebook-padding: 10px;
|
276 |
+
--jp-notebook-select-background: var(--jp-layout-color1);
|
277 |
+
--jp-notebook-multiselected-color: var(--md-blue-50);
|
278 |
+
|
279 |
+
/* The scroll padding is calculated to fill enough space at the bottom of the
|
280 |
+
notebook to show one single-line cell (with appropriate padding) at the top
|
281 |
+
when the notebook is scrolled all the way to the bottom. We also subtract one
|
282 |
+
pixel so that no scrollbar appears if we have just one single-line cell in the
|
283 |
+
notebook. This padding is to enable a 'scroll past end' feature in a notebook.
|
284 |
+
*/
|
285 |
+
--jp-notebook-scroll-padding: calc(
|
286 |
+
100% - var(--jp-code-font-size) * var(--jp-code-line-height) -
|
287 |
+
var(--jp-code-padding) - var(--jp-cell-padding) - 1px
|
288 |
+
);
|
289 |
+
|
290 |
+
/* Rendermime styles */
|
291 |
+
|
292 |
+
--jp-rendermime-error-background: #fdd;
|
293 |
+
--jp-rendermime-table-row-background: var(--md-grey-100);
|
294 |
+
--jp-rendermime-table-row-hover-background: var(--md-light-blue-50);
|
295 |
+
|
296 |
+
/* Dialog specific styles */
|
297 |
+
|
298 |
+
--jp-dialog-background: rgba(0, 0, 0, 0.25);
|
299 |
+
|
300 |
+
/* Console specific styles */
|
301 |
+
|
302 |
+
--jp-console-padding: 10px;
|
303 |
+
|
304 |
+
/* Toolbar specific styles */
|
305 |
+
|
306 |
+
--jp-toolbar-border-color: var(--jp-border-color1);
|
307 |
+
--jp-toolbar-micro-height: 8px;
|
308 |
+
--jp-toolbar-background: var(--jp-layout-color1);
|
309 |
+
--jp-toolbar-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.24);
|
310 |
+
--jp-toolbar-header-margin: 4px 4px 0 4px;
|
311 |
+
--jp-toolbar-active-background: var(--md-grey-300);
|
312 |
+
|
313 |
+
/* Statusbar specific styles */
|
314 |
+
|
315 |
+
--jp-statusbar-height: 24px;
|
316 |
+
|
317 |
+
/* Input field styles */
|
318 |
+
|
319 |
+
--jp-input-box-shadow: inset 0 0 2px var(--md-blue-300);
|
320 |
+
--jp-input-active-background: var(--jp-layout-color1);
|
321 |
+
--jp-input-hover-background: var(--jp-layout-color1);
|
322 |
+
--jp-input-background: var(--md-grey-100);
|
323 |
+
--jp-input-border-color: var(--jp-inverse-border-color);
|
324 |
+
--jp-input-active-border-color: var(--jp-brand-color1);
|
325 |
+
--jp-input-active-box-shadow-color: rgba(19, 124, 189, 0.3);
|
326 |
+
|
327 |
+
/* General editor styles */
|
328 |
+
|
329 |
+
--jp-editor-selected-background: #d9d9d9;
|
330 |
+
--jp-editor-selected-focused-background: #d7d4f0;
|
331 |
+
--jp-editor-cursor-color: var(--jp-ui-font-color0);
|
332 |
+
|
333 |
+
/* Code mirror specific styles */
|
334 |
+
|
335 |
+
--jp-mirror-editor-keyword-color: #008000;
|
336 |
+
--jp-mirror-editor-atom-color: #88f;
|
337 |
+
--jp-mirror-editor-number-color: #080;
|
338 |
+
--jp-mirror-editor-def-color: #00f;
|
339 |
+
--jp-mirror-editor-variable-color: var(--md-grey-900);
|
340 |
+
--jp-mirror-editor-variable-2-color: rgb(0, 54, 109);
|
341 |
+
--jp-mirror-editor-variable-3-color: #085;
|
342 |
+
--jp-mirror-editor-punctuation-color: #05a;
|
343 |
+
--jp-mirror-editor-property-color: #05a;
|
344 |
+
--jp-mirror-editor-operator-color: #a2f;
|
345 |
+
--jp-mirror-editor-comment-color: #408080;
|
346 |
+
--jp-mirror-editor-string-color: #ba2121;
|
347 |
+
--jp-mirror-editor-string-2-color: #708;
|
348 |
+
--jp-mirror-editor-meta-color: #a2f;
|
349 |
+
--jp-mirror-editor-qualifier-color: #555;
|
350 |
+
--jp-mirror-editor-builtin-color: #008000;
|
351 |
+
--jp-mirror-editor-bracket-color: #997;
|
352 |
+
--jp-mirror-editor-tag-color: #170;
|
353 |
+
--jp-mirror-editor-attribute-color: #00c;
|
354 |
+
--jp-mirror-editor-header-color: blue;
|
355 |
+
--jp-mirror-editor-quote-color: #090;
|
356 |
+
--jp-mirror-editor-link-color: #00c;
|
357 |
+
--jp-mirror-editor-error-color: #f00;
|
358 |
+
--jp-mirror-editor-hr-color: #999;
|
359 |
+
|
360 |
+
/*
|
361 |
+
RTC user specific colors.
|
362 |
+
These colors are used for the cursor, username in the editor,
|
363 |
+
and the icon of the user.
|
364 |
+
*/
|
365 |
+
|
366 |
+
--jp-collaborator-color1: #ffad8e;
|
367 |
+
--jp-collaborator-color2: #dac83d;
|
368 |
+
--jp-collaborator-color3: #72dd76;
|
369 |
+
--jp-collaborator-color4: #00e4d0;
|
370 |
+
--jp-collaborator-color5: #45d4ff;
|
371 |
+
--jp-collaborator-color6: #e2b1ff;
|
372 |
+
--jp-collaborator-color7: #ff9de6;
|
373 |
+
|
374 |
+
/* Vega extension styles */
|
375 |
+
|
376 |
+
--jp-vega-background: white;
|
377 |
+
|
378 |
+
/* Sidebar-related styles */
|
379 |
+
|
380 |
+
--jp-sidebar-min-width: 250px;
|
381 |
+
|
382 |
+
/* Search-related styles */
|
383 |
+
|
384 |
+
--jp-search-toggle-off-opacity: 0.5;
|
385 |
+
--jp-search-toggle-hover-opacity: 0.8;
|
386 |
+
--jp-search-toggle-on-opacity: 1;
|
387 |
+
--jp-search-selected-match-background-color: rgb(245, 200, 0);
|
388 |
+
--jp-search-selected-match-color: black;
|
389 |
+
--jp-search-unselected-match-background-color: var(
|
390 |
+
--jp-inverse-layout-color0
|
391 |
+
);
|
392 |
+
--jp-search-unselected-match-color: var(--jp-ui-inverse-font-color0);
|
393 |
+
|
394 |
+
/* Icon colors that work well with light or dark backgrounds */
|
395 |
+
--jp-icon-contrast-color0: var(--md-purple-600);
|
396 |
+
--jp-icon-contrast-color1: var(--md-green-600);
|
397 |
+
--jp-icon-contrast-color2: var(--md-pink-600);
|
398 |
+
--jp-icon-contrast-color3: var(--md-blue-600);
|
399 |
+
|
400 |
+
/* Button colors */
|
401 |
+
--jp-accept-color-normal: var(--md-blue-700);
|
402 |
+
--jp-accept-color-hover: var(--md-blue-800);
|
403 |
+
--jp-accept-color-active: var(--md-blue-900);
|
404 |
+
--jp-warn-color-normal: var(--md-red-700);
|
405 |
+
--jp-warn-color-hover: var(--md-red-800);
|
406 |
+
--jp-warn-color-active: var(--md-red-900);
|
407 |
+
--jp-reject-color-normal: var(--md-grey-600);
|
408 |
+
--jp-reject-color-hover: var(--md-grey-700);
|
409 |
+
--jp-reject-color-active: var(--md-grey-800);
|
410 |
+
|
411 |
+
/* File or activity icons and switch semantic variables */
|
412 |
+
--jp-jupyter-icon-color: #f37626;
|
413 |
+
--jp-notebook-icon-color: #f37626;
|
414 |
+
--jp-json-icon-color: var(--md-orange-700);
|
415 |
+
--jp-console-icon-background-color: var(--md-blue-700);
|
416 |
+
--jp-console-icon-color: white;
|
417 |
+
--jp-terminal-icon-background-color: var(--md-grey-800);
|
418 |
+
--jp-terminal-icon-color: var(--md-grey-200);
|
419 |
+
--jp-text-editor-icon-color: var(--md-grey-700);
|
420 |
+
--jp-inspector-icon-color: var(--md-grey-700);
|
421 |
+
--jp-switch-color: var(--md-grey-400);
|
422 |
+
--jp-switch-true-position-color: var(--md-orange-900);
|
423 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/base.tex.j2
ADDED
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
((=- Latex base template (must inherit)
|
2 |
+
This template builds upon the abstract template, adding common latex output
|
3 |
+
functions. Figures, data_text,
|
4 |
+
This template defines defines a default docclass, the inheriting class should
|
5 |
+
override this.-=))
|
6 |
+
|
7 |
+
((*- extends 'document_contents.tex.j2' -*))
|
8 |
+
|
9 |
+
%===============================================================================
|
10 |
+
% Abstract overrides
|
11 |
+
%===============================================================================
|
12 |
+
|
13 |
+
((*- block header -*))
|
14 |
+
((* block docclass *))\documentclass[11pt]{article}((* endblock docclass *))
|
15 |
+
|
16 |
+
((* block packages *))
|
17 |
+
|
18 |
+
% Basic figure setup, for now with no caption control since it's done
|
19 |
+
% automatically by Pandoc (which extracts  syntax from Markdown).
|
20 |
+
\usepackage{graphicx}
|
21 |
+
% Keep aspect ratio if custom image width or height is specified
|
22 |
+
\setkeys{Gin}{keepaspectratio}
|
23 |
+
% Maintain compatibility with old templates. Remove in nbconvert 6.0
|
24 |
+
\let\Oldincludegraphics\includegraphics
|
25 |
+
% Ensure that by default, figures have no caption (until we provide a
|
26 |
+
% proper Figure object with a Caption API and a way to capture that
|
27 |
+
% in the conversion process - todo).
|
28 |
+
\usepackage{caption}
|
29 |
+
\DeclareCaptionFormat{nocaption}{}
|
30 |
+
\captionsetup{format=nocaption,aboveskip=0pt,belowskip=0pt}
|
31 |
+
|
32 |
+
\usepackage{float}
|
33 |
+
\floatplacement{figure}{H} % forces figures to be placed at the correct location
|
34 |
+
\usepackage{xcolor} % Allow colors to be defined
|
35 |
+
\usepackage{enumerate} % Needed for markdown enumerations to work
|
36 |
+
\usepackage{geometry} % Used to adjust the document margins
|
37 |
+
\usepackage{amsmath} % Equations
|
38 |
+
\usepackage{amssymb} % Equations
|
39 |
+
\usepackage{textcomp} % defines textquotesingle
|
40 |
+
% Hack from http://tex.stackexchange.com/a/47451/13684:
|
41 |
+
\AtBeginDocument{%
|
42 |
+
\def\PYZsq{\textquotesingle}% Upright quotes in Pygmentized code
|
43 |
+
}
|
44 |
+
\usepackage{upquote} % Upright quotes for verbatim code
|
45 |
+
\usepackage{eurosym} % defines \euro
|
46 |
+
|
47 |
+
\usepackage{iftex}
|
48 |
+
\ifPDFTeX
|
49 |
+
\usepackage[T1]{fontenc}
|
50 |
+
\IfFileExists{alphabeta.sty}{
|
51 |
+
\usepackage{alphabeta}
|
52 |
+
}{
|
53 |
+
\usepackage[mathletters]{ucs}
|
54 |
+
\usepackage[utf8x]{inputenc}
|
55 |
+
}
|
56 |
+
\else
|
57 |
+
\usepackage{fontspec}
|
58 |
+
\usepackage{unicode-math}
|
59 |
+
\fi
|
60 |
+
|
61 |
+
\usepackage{fancyvrb} % verbatim replacement that allows latex
|
62 |
+
\usepackage{grffile} % extends the file name processing of package graphics
|
63 |
+
% to support a larger range
|
64 |
+
\makeatletter % fix for old versions of grffile with XeLaTeX
|
65 |
+
\@ifpackagelater{grffile}{2019/11/01}
|
66 |
+
{
|
67 |
+
% Do nothing on new versions
|
68 |
+
}
|
69 |
+
{
|
70 |
+
\def\Gread@@xetex#1{%
|
71 |
+
\IfFileExists{"\Gin@base".bb}%
|
72 |
+
{\Gread@eps{\[email protected]}}%
|
73 |
+
{\Gread@@xetex@aux#1}%
|
74 |
+
}
|
75 |
+
}
|
76 |
+
\makeatother
|
77 |
+
\usepackage[Export]{adjustbox} % Used to constrain images to a maximum size
|
78 |
+
\adjustboxset{max size={0.9\linewidth}{0.9\paperheight}}
|
79 |
+
|
80 |
+
% The hyperref package gives us a pdf with properly built
|
81 |
+
% internal navigation ('pdf bookmarks' for the table of contents,
|
82 |
+
% internal cross-reference links, web links for URLs, etc.)
|
83 |
+
\usepackage{hyperref}
|
84 |
+
% The default LaTeX title has an obnoxious amount of whitespace. By default,
|
85 |
+
% titling removes some of it. It also provides customization options.
|
86 |
+
\usepackage{titling}
|
87 |
+
\usepackage{longtable} % longtable support required by pandoc >1.10
|
88 |
+
\usepackage{booktabs} % table support for pandoc > 1.12.2
|
89 |
+
\usepackage{array} % table support for pandoc >= 2.11.3
|
90 |
+
\usepackage{calc} % table minipage width calculation for pandoc >= 2.11.1
|
91 |
+
\usepackage[inline]{enumitem} % IRkernel/repr support (it uses the enumerate* environment)
|
92 |
+
\usepackage[normalem]{ulem} % ulem is needed to support strikethroughs (\sout)
|
93 |
+
% normalem makes italics be italics, not underlines
|
94 |
+
\usepackage{soul} % strikethrough (\st) support for pandoc >= 3.0.0
|
95 |
+
\usepackage{mathrsfs}
|
96 |
+
((* endblock packages *))
|
97 |
+
|
98 |
+
((* block definitions *))
|
99 |
+
% Colors for the hyperref package
|
100 |
+
\definecolor{urlcolor}{rgb}{0,.145,.698}
|
101 |
+
\definecolor{linkcolor}{rgb}{.71,0.21,0.01}
|
102 |
+
\definecolor{citecolor}{rgb}{.12,.54,.11}
|
103 |
+
|
104 |
+
% ANSI colors
|
105 |
+
\definecolor{ansi-black}{HTML}{3E424D}
|
106 |
+
\definecolor{ansi-black-intense}{HTML}{282C36}
|
107 |
+
\definecolor{ansi-red}{HTML}{E75C58}
|
108 |
+
\definecolor{ansi-red-intense}{HTML}{B22B31}
|
109 |
+
\definecolor{ansi-green}{HTML}{00A250}
|
110 |
+
\definecolor{ansi-green-intense}{HTML}{007427}
|
111 |
+
\definecolor{ansi-yellow}{HTML}{DDB62B}
|
112 |
+
\definecolor{ansi-yellow-intense}{HTML}{B27D12}
|
113 |
+
\definecolor{ansi-blue}{HTML}{208FFB}
|
114 |
+
\definecolor{ansi-blue-intense}{HTML}{0065CA}
|
115 |
+
\definecolor{ansi-magenta}{HTML}{D160C4}
|
116 |
+
\definecolor{ansi-magenta-intense}{HTML}{A03196}
|
117 |
+
\definecolor{ansi-cyan}{HTML}{60C6C8}
|
118 |
+
\definecolor{ansi-cyan-intense}{HTML}{258F8F}
|
119 |
+
\definecolor{ansi-white}{HTML}{C5C1B4}
|
120 |
+
\definecolor{ansi-white-intense}{HTML}{A1A6B2}
|
121 |
+
\definecolor{ansi-default-inverse-fg}{HTML}{FFFFFF}
|
122 |
+
\definecolor{ansi-default-inverse-bg}{HTML}{000000}
|
123 |
+
|
124 |
+
% common color for the border for error outputs.
|
125 |
+
\definecolor{outerrorbackground}{HTML}{FFDFDF}
|
126 |
+
|
127 |
+
% commands and environments needed by pandoc snippets
|
128 |
+
% extracted from the output of `pandoc -s`
|
129 |
+
\providecommand{\tightlist}{%
|
130 |
+
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
131 |
+
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
|
132 |
+
% Add ',fontsize=\small' for more characters per line
|
133 |
+
\newenvironment{Shaded}{}{}
|
134 |
+
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
|
135 |
+
\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{{#1}}}
|
136 |
+
\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
|
137 |
+
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
|
138 |
+
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
|
139 |
+
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
|
140 |
+
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
|
141 |
+
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{{#1}}}}
|
142 |
+
\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{{#1}}}
|
143 |
+
\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
|
144 |
+
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{{#1}}}
|
145 |
+
\newcommand{\RegionMarkerTok}[1]{{#1}}
|
146 |
+
\newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
|
147 |
+
\newcommand{\NormalTok}[1]{{#1}}
|
148 |
+
|
149 |
+
% Additional commands for more recent versions of Pandoc
|
150 |
+
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{{#1}}}
|
151 |
+
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
|
152 |
+
\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
|
153 |
+
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{{#1}}}
|
154 |
+
\newcommand{\ImportTok}[1]{{#1}}
|
155 |
+
\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{{#1}}}}
|
156 |
+
\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
|
157 |
+
\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
|
158 |
+
\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{{#1}}}
|
159 |
+
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
|
160 |
+
\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{{#1}}}
|
161 |
+
\newcommand{\BuiltInTok}[1]{{#1}}
|
162 |
+
\newcommand{\ExtensionTok}[1]{{#1}}
|
163 |
+
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{{#1}}}
|
164 |
+
\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{{#1}}}
|
165 |
+
\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
|
166 |
+
\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
|
167 |
+
\makeatletter
|
168 |
+
\newsavebox\pandoc@box
|
169 |
+
\newcommand*\pandocbounded[1]{%
|
170 |
+
\sbox\pandoc@box{#1}%
|
171 |
+
% scaling factors for width and height
|
172 |
+
\Gscale@div\@tempa\textheight{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}%
|
173 |
+
\Gscale@div\@tempb\linewidth{\wd\pandoc@box}%
|
174 |
+
% select the smaller of both
|
175 |
+
\ifdim\@tempb\p@<\@tempa\p@
|
176 |
+
\let\@tempa\@tempb
|
177 |
+
\fi
|
178 |
+
% scaling accordingly (\@tempa < 1)
|
179 |
+
\ifdim\@tempa\p@<\p@
|
180 |
+
\scalebox{\@tempa}{\usebox\pandoc@box}%
|
181 |
+
% scaling not needed, use as it is
|
182 |
+
\else
|
183 |
+
\usebox{\pandoc@box}%
|
184 |
+
\fi
|
185 |
+
}
|
186 |
+
\makeatother
|
187 |
+
|
188 |
+
% Define a nice break command that doesn't care if a line doesn't already
|
189 |
+
% exist.
|
190 |
+
\def\br{\hspace*{\fill} \\* }
|
191 |
+
% Math Jax compatibility definitions
|
192 |
+
\def\gt{>}
|
193 |
+
\def\lt{<}
|
194 |
+
\let\Oldtex\TeX
|
195 |
+
\let\Oldlatex\LaTeX
|
196 |
+
\renewcommand{\TeX}{\textrm{\Oldtex}}
|
197 |
+
\renewcommand{\LaTeX}{\textrm{\Oldlatex}}
|
198 |
+
% Document parameters
|
199 |
+
% Document title
|
200 |
+
((* block title -*))
|
201 |
+
((*- set nb_title = nb.metadata.get('title', '') or resources['metadata']['name'] -*))
|
202 |
+
\title{((( nb_title | escape_latex )))}
|
203 |
+
((*- endblock title *))
|
204 |
+
((* block date *))
|
205 |
+
((* if 'date' in nb.metadata *))
|
206 |
+
\date{((( nb.metadata.date | escape_latex )))}
|
207 |
+
((* endif *))
|
208 |
+
((* endblock date *))
|
209 |
+
((* block author *))
|
210 |
+
((* if 'authors' in nb.metadata *))
|
211 |
+
\author{((( nb.metadata.authors | join(', ', attribute='name') )))}
|
212 |
+
((* endif *))
|
213 |
+
((* endblock author *))
|
214 |
+
((* endblock definitions *))
|
215 |
+
|
216 |
+
((* block commands *))
|
217 |
+
% Prevent overflowing lines due to hard-to-break entities
|
218 |
+
\sloppy
|
219 |
+
% Setup hyperref package
|
220 |
+
\hypersetup{
|
221 |
+
breaklinks=true, % so long urls are correctly broken across lines
|
222 |
+
colorlinks=true,
|
223 |
+
urlcolor=urlcolor,
|
224 |
+
linkcolor=linkcolor,
|
225 |
+
citecolor=citecolor,
|
226 |
+
}
|
227 |
+
% Slightly bigger margins than the latex defaults
|
228 |
+
((* block margins *))
|
229 |
+
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
|
230 |
+
((* endblock margins *))
|
231 |
+
((* endblock commands *))
|
232 |
+
((* endblock header *))
|
233 |
+
|
234 |
+
((* block body *))
|
235 |
+
\begin{document}
|
236 |
+
((* block predoc *))
|
237 |
+
((* block maketitle *))\maketitle((* endblock maketitle *))
|
238 |
+
((* block abstract *))((* endblock abstract *))
|
239 |
+
((* endblock predoc *))
|
240 |
+
|
241 |
+
((( super() )))
|
242 |
+
|
243 |
+
% Add a bibliography block to the postdoc
|
244 |
+
((* block postdoc *))
|
245 |
+
((* block bibliography *))((* endblock bibliography *))
|
246 |
+
((* endblock postdoc *))
|
247 |
+
\end{document}
|
248 |
+
((* endblock body *))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/conf.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_template": "base",
|
3 |
+
"mimetypes": {
|
4 |
+
"text/latex": true,
|
5 |
+
"text/tex": true,
|
6 |
+
"application/pdf": true
|
7 |
+
}
|
8 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/display_priority.j2
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
((= Auto-generated template file, DO NOT edit directly!
|
2 |
+
To edit this file, please refer to ../../skeleton/README.md =))
|
3 |
+
|
4 |
+
|
5 |
+
((*- extends 'null.j2' -*))
|
6 |
+
|
7 |
+
((=display data priority=))
|
8 |
+
|
9 |
+
|
10 |
+
((*- block data_priority scoped -*))
|
11 |
+
((*- for type in output.data | filter_data_type -*))
|
12 |
+
((*- if type == 'application/pdf' -*))
|
13 |
+
((*- block data_pdf -*))
|
14 |
+
((*- endblock -*))
|
15 |
+
((*- elif type == 'image/svg+xml' -*))
|
16 |
+
((*- block data_svg -*))
|
17 |
+
((*- endblock -*))
|
18 |
+
((*- elif type == 'image/png' -*))
|
19 |
+
((*- block data_png -*))
|
20 |
+
((*- endblock -*))
|
21 |
+
((*- elif type == 'text/html' -*))
|
22 |
+
((*- block data_html -*))
|
23 |
+
((*- endblock -*))
|
24 |
+
((*- elif type == 'text/markdown' -*))
|
25 |
+
((*- block data_markdown -*))
|
26 |
+
((*- endblock -*))
|
27 |
+
((*- elif type == 'image/jpeg' -*))
|
28 |
+
((*- block data_jpg -*))
|
29 |
+
((*- endblock -*))
|
30 |
+
((*- elif type == 'text/plain' -*))
|
31 |
+
((*- block data_text -*))
|
32 |
+
((*- endblock -*))
|
33 |
+
((*- elif type == 'text/latex' -*))
|
34 |
+
((*- block data_latex -*))
|
35 |
+
((*- endblock -*))
|
36 |
+
((*- elif type == 'application/javascript' -*))
|
37 |
+
((*- block data_javascript -*))
|
38 |
+
((*- endblock -*))
|
39 |
+
((*- elif type == 'application/vnd.jupyter.widget-view+json' -*))
|
40 |
+
((*- block data_widget_view -*))
|
41 |
+
((*- endblock -*))
|
42 |
+
((*- else -*))
|
43 |
+
((*- block data_other -*))
|
44 |
+
((*- endblock -*))
|
45 |
+
((*- endif -*))
|
46 |
+
((*- endfor -*))
|
47 |
+
((*- endblock data_priority -*))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/document_contents.tex.j2
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
((*- extends 'display_priority.j2' -*))
|
2 |
+
|
3 |
+
%===============================================================================
|
4 |
+
% Support blocks
|
5 |
+
%===============================================================================
|
6 |
+
|
7 |
+
% Displaying simple data text
|
8 |
+
((* block data_text *))
|
9 |
+
\begin{Verbatim}[commandchars=\\\{\}]
|
10 |
+
((( output.data['text/plain'] | escape_latex | ansi2latex )))
|
11 |
+
\end{Verbatim}
|
12 |
+
((* endblock data_text *))
|
13 |
+
|
14 |
+
% Display python error text with colored frame (saves printer ink vs bkgnd)
|
15 |
+
((* block error *))
|
16 |
+
\begin{Verbatim}[commandchars=\\\{\}, frame=single, framerule=2mm, rulecolor=\color{outerrorbackground}]
|
17 |
+
(((- super() )))
|
18 |
+
\end{Verbatim}
|
19 |
+
((* endblock error *))
|
20 |
+
% Display error lines with coloring
|
21 |
+
((*- block traceback_line *))
|
22 |
+
((( line | escape_latex | ansi2latex )))
|
23 |
+
((*- endblock traceback_line *))
|
24 |
+
|
25 |
+
% Display stream ouput with coloring
|
26 |
+
((* block stream *))
|
27 |
+
\begin{Verbatim}[commandchars=\\\{\}]
|
28 |
+
((( output.text | escape_latex | ansi2latex )))
|
29 |
+
\end{Verbatim}
|
30 |
+
((* endblock stream *))
|
31 |
+
|
32 |
+
% Display latex
|
33 |
+
((* block data_latex -*))
|
34 |
+
((( output.data['text/latex'] | strip_files_prefix )))
|
35 |
+
((* endblock data_latex *))
|
36 |
+
|
37 |
+
% Display markdown
|
38 |
+
((* block data_markdown -*))
|
39 |
+
((( output.data['text/markdown'] | citation2latex | strip_files_prefix | convert_pandoc('markdown+tex_math_double_backslash', 'latex'))))
|
40 |
+
((* endblock data_markdown *))
|
41 |
+
|
42 |
+
% Default mechanism for rendering figures
|
43 |
+
((*- block data_png -*))((( draw_figure(output.metadata.filenames['image/png']) )))((*- endblock -*))
|
44 |
+
((*- block data_jpg -*))((( draw_figure(output.metadata.filenames['image/jpeg']) )))((*- endblock -*))
|
45 |
+
((*- block data_svg -*))((( draw_figure(output.metadata.filenames['image/svg+xml']) )))((*- endblock -*))
|
46 |
+
((*- block data_pdf -*))((( draw_figure(output.metadata.filenames['application/pdf']) )))((*- endblock -*))
|
47 |
+
|
48 |
+
% Draw a figure using the graphicx package.
|
49 |
+
((* macro draw_figure(filename) -*))
|
50 |
+
((* set filename = filename | posix_path *))
|
51 |
+
((*- block figure scoped -*))
|
52 |
+
\begin{center}
|
53 |
+
\adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{((( filename )))}
|
54 |
+
\end{center}
|
55 |
+
{ \hspace*{\fill} \\}
|
56 |
+
((*- endblock figure -*))
|
57 |
+
((*- endmacro *))
|
58 |
+
|
59 |
+
% Redirect execute_result to display data priority.
|
60 |
+
((* block execute_result scoped *))
|
61 |
+
((* block data_priority scoped *))
|
62 |
+
((( super() )))
|
63 |
+
((* endblock *))
|
64 |
+
((* endblock execute_result *))
|
65 |
+
|
66 |
+
% Render markdown
|
67 |
+
((* block markdowncell scoped *))
|
68 |
+
((( cell.source | citation2latex | strip_files_prefix | convert_pandoc('markdown+tex_math_double_backslash', 'json',extra_args=[]) | resolve_references | convert_explicitly_relative_paths | convert_pandoc('json','latex'))))
|
69 |
+
((* endblock markdowncell *))
|
70 |
+
|
71 |
+
% Don't display unknown types
|
72 |
+
((* block unknowncell scoped *))
|
73 |
+
((* endblock unknowncell *))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/index.tex.j2
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
((=- Default to the notebook output style -=))
|
3 |
+
((*- if not cell_style is defined -*))
|
4 |
+
((* set cell_style = 'style_jupyter.tex.j2' *))
|
5 |
+
((*- endif -*))
|
6 |
+
|
7 |
+
((=- Inherit from the specified cell style. -=))
|
8 |
+
((* extends cell_style *))
|
9 |
+
|
10 |
+
|
11 |
+
%===============================================================================
|
12 |
+
% Latex Article
|
13 |
+
%===============================================================================
|
14 |
+
|
15 |
+
((*- block docclass -*))
|
16 |
+
\documentclass[11pt]{article}
|
17 |
+
((*- endblock docclass -*))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/null.j2
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
((=- Auto-generated template file, DO NOT edit directly!
|
2 |
+
To edit this file, please refer to ../../skeleton/README.md -=))
|
3 |
+
|
4 |
+
|
5 |
+
((=
|
6 |
+
|
7 |
+
DO NOT USE THIS AS A BASE,
|
8 |
+
IF YOU ARE COPY AND PASTING THIS FILE
|
9 |
+
YOU ARE PROBABLY DOING THINGS INCORRECTLY.
|
10 |
+
|
11 |
+
Null template, does nothing except defining a basic structure
|
12 |
+
To layout the different blocks of a notebook.
|
13 |
+
|
14 |
+
Subtemplates can override blocks to define their custom representation.
|
15 |
+
|
16 |
+
If one of the block you do overwrite is not a leaf block, consider
|
17 |
+
calling super.
|
18 |
+
|
19 |
+
((*- block nonLeafBlock -*))
|
20 |
+
#add stuff at beginning
|
21 |
+
((( super() )))
|
22 |
+
#add stuff at end
|
23 |
+
((*- endblock nonLeafBlock -*))
|
24 |
+
|
25 |
+
consider calling super even if it is a leaf block, we might insert more blocks later.
|
26 |
+
|
27 |
+
=))
|
28 |
+
((*- block header -*))
|
29 |
+
((*- endblock header -*))
|
30 |
+
((*- block body -*))
|
31 |
+
((*- for cell in nb.cells -*))
|
32 |
+
((*- block any_cell scoped -*))
|
33 |
+
((*- if cell.cell_type == 'code'-*))
|
34 |
+
((*- if resources.global_content_filter.include_code -*))
|
35 |
+
((*- block codecell scoped -*))
|
36 |
+
((*- if resources.global_content_filter.include_input and not cell.metadata.get("transient",{}).get("remove_source", false) -*))
|
37 |
+
((*- block input_group -*))
|
38 |
+
((*- if resources.global_content_filter.include_input_prompt -*))
|
39 |
+
((*- block in_prompt -*))((*- endblock in_prompt -*))
|
40 |
+
((*- endif -*))
|
41 |
+
((*- block input -*))((*- endblock input -*))
|
42 |
+
((*- endblock input_group -*))
|
43 |
+
((*- endif -*))
|
44 |
+
((*- if cell.outputs and resources.global_content_filter.include_output -*))
|
45 |
+
((*- block output_group -*))
|
46 |
+
((*- if resources.global_content_filter.include_output_prompt -*))
|
47 |
+
((*- block output_prompt -*))((*- endblock output_prompt -*))
|
48 |
+
((*- endif -*))
|
49 |
+
((*- block outputs scoped -*))
|
50 |
+
((*- for output in cell.outputs -*))
|
51 |
+
((*- block output scoped -*))
|
52 |
+
((*- if output.output_type == 'execute_result' -*))
|
53 |
+
((*- block execute_result scoped -*))((*- endblock execute_result -*))
|
54 |
+
((*- elif output.output_type == 'stream' -*))
|
55 |
+
((*- block stream scoped -*))
|
56 |
+
((*- if output.name == 'stdout' -*))
|
57 |
+
((*- block stream_stdout scoped -*))
|
58 |
+
((*- endblock stream_stdout -*))
|
59 |
+
((*- elif output.name == 'stderr' -*))
|
60 |
+
((*- block stream_stderr scoped -*))
|
61 |
+
((*- endblock stream_stderr -*))
|
62 |
+
((*- endif -*))
|
63 |
+
((*- endblock stream -*))
|
64 |
+
((*- elif output.output_type == 'display_data' -*))
|
65 |
+
((*- block display_data scoped -*))
|
66 |
+
((*- block data_priority scoped -*))
|
67 |
+
((*- endblock data_priority -*))
|
68 |
+
((*- endblock display_data -*))
|
69 |
+
((*- elif output.output_type == 'error' -*))
|
70 |
+
((*- block error scoped -*))
|
71 |
+
((*- for line in output.traceback -*))
|
72 |
+
((*- block traceback_line scoped -*))((*- endblock traceback_line -*))
|
73 |
+
((*- endfor -*))
|
74 |
+
((*- endblock error -*))
|
75 |
+
((*- endif -*))
|
76 |
+
((*- endblock output -*))
|
77 |
+
((*- endfor -*))
|
78 |
+
((*- endblock outputs -*))
|
79 |
+
((*- endblock output_group -*))
|
80 |
+
((*- endif -*))
|
81 |
+
((*- endblock codecell -*))
|
82 |
+
((*- endif -*))
|
83 |
+
((*- elif cell.cell_type in ['markdown'] -*))
|
84 |
+
((*- if resources.global_content_filter.include_markdown and not cell.metadata.get("transient",{}).get("remove_source", false) -*))
|
85 |
+
((*- block markdowncell scoped-*)) ((*- endblock markdowncell -*))
|
86 |
+
((*- endif -*))
|
87 |
+
((*- elif cell.cell_type in ['raw'] -*))
|
88 |
+
((*- if resources.global_content_filter.include_raw and not cell.metadata.get("transient",{}).get("remove_source", false) -*))
|
89 |
+
((*- block rawcell scoped -*))
|
90 |
+
((*- if cell.metadata.get('raw_mimetype', '').lower() in resources.get('raw_mimetypes', ['']) -*))
|
91 |
+
((( cell.source )))
|
92 |
+
((*- endif -*))
|
93 |
+
((*- endblock rawcell -*))
|
94 |
+
((*- endif -*))
|
95 |
+
((*- else -*))
|
96 |
+
((*- if resources.global_content_filter.include_unknown and not cell.metadata.get("transient",{}).get("remove_source", false) -*))
|
97 |
+
((*- block unknowncell scoped-*))
|
98 |
+
((*- endblock unknowncell -*))
|
99 |
+
((*- endif -*))
|
100 |
+
((*- endif -*))
|
101 |
+
((*- endblock any_cell -*))
|
102 |
+
((*- endfor -*))
|
103 |
+
((*- endblock body -*))
|
104 |
+
|
105 |
+
((*- block footer -*))
|
106 |
+
((*- endblock footer -*))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/report.tex.j2
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
% Default to the notebook output style
|
3 |
+
((* if not cell_style is defined *))
|
4 |
+
((* set cell_style = 'style_ipython.tex.j2' *))
|
5 |
+
((* endif *))
|
6 |
+
|
7 |
+
% Inherit from the specified cell style.
|
8 |
+
((* extends cell_style *))
|
9 |
+
|
10 |
+
|
11 |
+
%===============================================================================
|
12 |
+
% Latex Book
|
13 |
+
%===============================================================================
|
14 |
+
|
15 |
+
((* block predoc *))
|
16 |
+
((( super() )))
|
17 |
+
((* block tableofcontents *))\tableofcontents((* endblock tableofcontents *))
|
18 |
+
((* endblock predoc *))
|
19 |
+
|
20 |
+
((* block docclass *))
|
21 |
+
\documentclass{report}
|
22 |
+
((* endblock docclass *))
|
23 |
+
|
24 |
+
((* block markdowncell scoped *))
|
25 |
+
((( cell.source | citation2latex | strip_files_prefix | convert_pandoc('markdown+tex_math_double_backslash', 'json',extra_args=[]) | resolve_references | convert_pandoc('json','latex', extra_args=["--top-level-division=chapter"]) )))
|
26 |
+
((* endblock markdowncell *))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_bw_ipython.tex.j2
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
((= Black&white ipython input/output style =))
|
2 |
+
|
3 |
+
((*- extends 'base.tex.j2' -*))
|
4 |
+
|
5 |
+
%===============================================================================
|
6 |
+
% Input
|
7 |
+
%===============================================================================
|
8 |
+
|
9 |
+
((* block input scoped *))
|
10 |
+
((*- if resources.global_content_filter.include_input_prompt *))
|
11 |
+
((( add_prompt(cell.source, cell, 'In ') )))
|
12 |
+
((* else *))
|
13 |
+
(((cell.source)))
|
14 |
+
((* endif -*))
|
15 |
+
((* endblock input *))
|
16 |
+
|
17 |
+
|
18 |
+
%===============================================================================
|
19 |
+
% Output
|
20 |
+
%===============================================================================
|
21 |
+
|
22 |
+
((* block execute_result scoped *))
|
23 |
+
((*- for type in output.data | filter_data_type -*))
|
24 |
+
((*- if resources.global_content_filter.include_output_prompt -*))
|
25 |
+
((*- if type in ['text/plain'] *))
|
26 |
+
((( add_prompt(output.data['text/plain'], cell, 'Out') )))
|
27 |
+
((*- else -*))
|
28 |
+
\verb+Out[((( cell.execution_count )))]:+((( super() )))
|
29 |
+
((*- endif -*))
|
30 |
+
((*- else -*))
|
31 |
+
((*- if type in ['text/plain'] *))
|
32 |
+
((( output.data['text/plain'] )))
|
33 |
+
((*- else -*))
|
34 |
+
\verb+((( super() )))
|
35 |
+
((*- endif -*))
|
36 |
+
((*- endif -*))
|
37 |
+
((*- endfor -*))
|
38 |
+
((* endblock execute_result *))
|
39 |
+
|
40 |
+
|
41 |
+
%==============================================================================
|
42 |
+
% Support Macros
|
43 |
+
%==============================================================================
|
44 |
+
|
45 |
+
% Name: draw_prompt
|
46 |
+
% Purpose: Renders an output/input prompt
|
47 |
+
((* macro add_prompt(text, cell, prompt) -*))
|
48 |
+
((*- if cell.execution_count is defined -*))
|
49 |
+
((*- set execution_count = "" ~ (cell.execution_count | replace(None, " ")) -*))
|
50 |
+
((*- else -*))
|
51 |
+
((*- set execution_count = " " -*))
|
52 |
+
((*- endif -*))
|
53 |
+
((*- set indentation = " " * (execution_count | length + 7) -*))
|
54 |
+
\begin{verbatim}
|
55 |
+
(((- text | add_prompts(first=prompt ~ '[' ~ execution_count ~ ']: ', cont=indentation) -)))
|
56 |
+
\end{verbatim}
|
57 |
+
((*- endmacro *))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_bw_python.tex.j2
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
((= Black&white Python input/output style =))
|
2 |
+
|
3 |
+
((*- extends 'base.tex.j2' -*))
|
4 |
+
|
5 |
+
%===============================================================================
|
6 |
+
% Input
|
7 |
+
%===============================================================================
|
8 |
+
|
9 |
+
((* block input scoped *))
|
10 |
+
\begin{verbatim}
|
11 |
+
((*- if resources.global_content_filter.include_input_prompt *))
|
12 |
+
((( cell.source | add_prompts )))
|
13 |
+
((* else *))
|
14 |
+
((( cell.source )))
|
15 |
+
((* endif *))
|
16 |
+
\end{verbatim}
|
17 |
+
((* endblock input *))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_ipython.tex.j2
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
((= IPython input/output style =))
|
2 |
+
|
3 |
+
((*- extends 'base.tex.j2' -*))
|
4 |
+
|
5 |
+
% Custom definitions
|
6 |
+
((* block definitions *))
|
7 |
+
((( super() )))
|
8 |
+
|
9 |
+
% Pygments definitions
|
10 |
+
((( resources.latex.pygments_definitions )))
|
11 |
+
|
12 |
+
% Exact colors from NB
|
13 |
+
\definecolor{incolor}{rgb}{0.0, 0.0, 0.5}
|
14 |
+
\definecolor{outcolor}{rgb}{0.545, 0.0, 0.0}
|
15 |
+
|
16 |
+
((* endblock definitions *))
|
17 |
+
|
18 |
+
%===============================================================================
|
19 |
+
% Input
|
20 |
+
%===============================================================================
|
21 |
+
|
22 |
+
((* block input scoped *))
|
23 |
+
((*- if resources.global_content_filter.include_input_prompt *))
|
24 |
+
((( add_prompt(cell.source | highlight_code(strip_verbatim=True, metadata=cell.metadata), cell, 'In ', 'incolor') )))
|
25 |
+
((*- else *))
|
26 |
+
((( cell.source | highlight_code(strip_verbatim=True, metadata=cell.metadata) )))
|
27 |
+
((* endif *))
|
28 |
+
((* endblock input *))
|
29 |
+
|
30 |
+
|
31 |
+
%===============================================================================
|
32 |
+
% Output
|
33 |
+
%===============================================================================
|
34 |
+
|
35 |
+
((* block execute_result scoped *))
|
36 |
+
((*- for type in output.data | filter_data_type -*))
|
37 |
+
((*- if resources.global_content_filter.include_output_prompt -*))
|
38 |
+
((*- if type in ['text/plain'] *))
|
39 |
+
((( add_prompt(output.data['text/plain'] | escape_latex, cell, 'Out', 'outcolor') )))
|
40 |
+
((* else -*))
|
41 |
+
\texttt{\color{outcolor}Out[{\color{outcolor}((( cell.execution_count )))}]:}((( super() )))
|
42 |
+
((*- endif -*))
|
43 |
+
((*- else -*))
|
44 |
+
((*- if type in ['text/plain'] *))
|
45 |
+
((( output.data['text/plain'] | escape_latex )))
|
46 |
+
((* else -*))
|
47 |
+
((( super() )))
|
48 |
+
((*- endif -*))
|
49 |
+
((*- endif -*))
|
50 |
+
((*- endfor -*))
|
51 |
+
((* endblock execute_result *))
|
52 |
+
|
53 |
+
|
54 |
+
%==============================================================================
|
55 |
+
% Support Macros
|
56 |
+
%==============================================================================
|
57 |
+
|
58 |
+
% Name: draw_prompt
|
59 |
+
% Purpose: Renders an output/input prompt
|
60 |
+
((* macro add_prompt(text, cell, prompt, prompt_color) -*))
|
61 |
+
((*- if cell.execution_count is defined -*))
|
62 |
+
((*- set execution_count = "" ~ (cell.execution_count | replace(None, " ")) -*))
|
63 |
+
((*- else -*))
|
64 |
+
((*- set execution_count = " " -*))
|
65 |
+
((*- endif -*))
|
66 |
+
((*- set indention = " " * (execution_count | length + 7) -*))
|
67 |
+
\begin{Verbatim}[commandchars=\\\{\}]
|
68 |
+
((( text | add_prompts(first='{\\color{' ~ prompt_color ~ '}' ~ prompt ~ '[{\\color{' ~ prompt_color ~ '}' ~ execution_count ~ '}]:} ', cont=indention) )))
|
69 |
+
\end{Verbatim}
|
70 |
+
((*- endmacro *))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_jupyter.tex.j2
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
((=- IPython input/output style -=))
|
2 |
+
((*- extends 'base.tex.j2' -*))
|
3 |
+
|
4 |
+
((*- block packages -*))
|
5 |
+
\usepackage[breakable]{tcolorbox}
|
6 |
+
\usepackage{parskip} % Stop auto-indenting (to mimic markdown behaviour)
|
7 |
+
((( super() )))
|
8 |
+
((*- endblock packages -*))
|
9 |
+
|
10 |
+
((*- block definitions -*))
|
11 |
+
((( super() )))
|
12 |
+
% Pygments definitions
|
13 |
+
(((- resources.latex.pygments_definitions )))
|
14 |
+
|
15 |
+
% For linebreaks inside Verbatim environment from package fancyvrb.
|
16 |
+
\makeatletter
|
17 |
+
\newbox\Wrappedcontinuationbox
|
18 |
+
\newbox\Wrappedvisiblespacebox
|
19 |
+
\newcommand*\Wrappedvisiblespace {\textcolor{red}{\textvisiblespace}}
|
20 |
+
\newcommand*\Wrappedcontinuationsymbol {\textcolor{red}{\llap{\tiny$\m@th\hookrightarrow$}}}
|
21 |
+
\newcommand*\Wrappedcontinuationindent {3ex }
|
22 |
+
\newcommand*\Wrappedafterbreak {\kern\Wrappedcontinuationindent\copy\Wrappedcontinuationbox}
|
23 |
+
% Take advantage of the already applied Pygments mark-up to insert
|
24 |
+
% potential linebreaks for TeX processing.
|
25 |
+
% {, <, #, %, $, ' and ": go to next line.
|
26 |
+
% _, }, ^, &, >, - and ~: stay at end of broken line.
|
27 |
+
% Use of \textquotesingle for straight quote.
|
28 |
+
\newcommand*\Wrappedbreaksatspecials {%
|
29 |
+
\def\PYGZus{\discretionary{\char`\_}{\Wrappedafterbreak}{\char`\_}}%
|
30 |
+
\def\PYGZob{\discretionary{}{\Wrappedafterbreak\char`\{}{\char`\{}}%
|
31 |
+
\def\PYGZcb{\discretionary{\char`\}}{\Wrappedafterbreak}{\char`\}}}%
|
32 |
+
\def\PYGZca{\discretionary{\char`\^}{\Wrappedafterbreak}{\char`\^}}%
|
33 |
+
\def\PYGZam{\discretionary{\char`\&}{\Wrappedafterbreak}{\char`\&}}%
|
34 |
+
\def\PYGZlt{\discretionary{}{\Wrappedafterbreak\char`\<}{\char`\<}}%
|
35 |
+
\def\PYGZgt{\discretionary{\char`\>}{\Wrappedafterbreak}{\char`\>}}%
|
36 |
+
\def\PYGZsh{\discretionary{}{\Wrappedafterbreak\char`\#}{\char`\#}}%
|
37 |
+
\def\PYGZpc{\discretionary{}{\Wrappedafterbreak\char`\%}{\char`\%}}%
|
38 |
+
\def\PYGZdl{\discretionary{}{\Wrappedafterbreak\char`\$}{\char`\$}}%
|
39 |
+
\def\PYGZhy{\discretionary{\char`\-}{\Wrappedafterbreak}{\char`\-}}%
|
40 |
+
\def\PYGZsq{\discretionary{}{\Wrappedafterbreak\textquotesingle}{\textquotesingle}}%
|
41 |
+
\def\PYGZdq{\discretionary{}{\Wrappedafterbreak\char`\"}{\char`\"}}%
|
42 |
+
\def\PYGZti{\discretionary{\char`\~}{\Wrappedafterbreak}{\char`\~}}%
|
43 |
+
}
|
44 |
+
% Some characters . , ; ? ! / are not pygmentized.
|
45 |
+
% This macro makes them "active" and they will insert potential linebreaks
|
46 |
+
\newcommand*\Wrappedbreaksatpunct {%
|
47 |
+
\lccode`\~`\.\lowercase{\def~}{\discretionary{\hbox{\char`\.}}{\Wrappedafterbreak}{\hbox{\char`\.}}}%
|
48 |
+
\lccode`\~`\,\lowercase{\def~}{\discretionary{\hbox{\char`\,}}{\Wrappedafterbreak}{\hbox{\char`\,}}}%
|
49 |
+
\lccode`\~`\;\lowercase{\def~}{\discretionary{\hbox{\char`\;}}{\Wrappedafterbreak}{\hbox{\char`\;}}}%
|
50 |
+
\lccode`\~`\:\lowercase{\def~}{\discretionary{\hbox{\char`\:}}{\Wrappedafterbreak}{\hbox{\char`\:}}}%
|
51 |
+
\lccode`\~`\?\lowercase{\def~}{\discretionary{\hbox{\char`\?}}{\Wrappedafterbreak}{\hbox{\char`\?}}}%
|
52 |
+
\lccode`\~`\!\lowercase{\def~}{\discretionary{\hbox{\char`\!}}{\Wrappedafterbreak}{\hbox{\char`\!}}}%
|
53 |
+
\lccode`\~`\/\lowercase{\def~}{\discretionary{\hbox{\char`\/}}{\Wrappedafterbreak}{\hbox{\char`\/}}}%
|
54 |
+
\catcode`\.\active
|
55 |
+
\catcode`\,\active
|
56 |
+
\catcode`\;\active
|
57 |
+
\catcode`\:\active
|
58 |
+
\catcode`\?\active
|
59 |
+
\catcode`\!\active
|
60 |
+
\catcode`\/\active
|
61 |
+
\lccode`\~`\~
|
62 |
+
}
|
63 |
+
\makeatother
|
64 |
+
|
65 |
+
\let\OriginalVerbatim=\Verbatim
|
66 |
+
\makeatletter
|
67 |
+
\renewcommand{\Verbatim}[1][1]{%
|
68 |
+
%\parskip\z@skip
|
69 |
+
\sbox\Wrappedcontinuationbox {\Wrappedcontinuationsymbol}%
|
70 |
+
\sbox\Wrappedvisiblespacebox {\FV@SetupFont\Wrappedvisiblespace}%
|
71 |
+
\def\FancyVerbFormatLine ##1{\hsize\linewidth
|
72 |
+
\vtop{\raggedright\hyphenpenalty\z@\exhyphenpenalty\z@
|
73 |
+
\doublehyphendemerits\z@\finalhyphendemerits\z@
|
74 |
+
\strut ##1\strut}%
|
75 |
+
}%
|
76 |
+
% If the linebreak is at a space, the latter will be displayed as visible
|
77 |
+
% space at end of first line, and a continuation symbol starts next line.
|
78 |
+
% Stretch/shrink are however usually zero for typewriter font.
|
79 |
+
\def\FV@Space {%
|
80 |
+
\nobreak\hskip\z@ plus\fontdimen3\font minus\fontdimen4\font
|
81 |
+
\discretionary{\copy\Wrappedvisiblespacebox}{\Wrappedafterbreak}
|
82 |
+
{\kern\fontdimen2\font}%
|
83 |
+
}%
|
84 |
+
|
85 |
+
% Allow breaks at special characters using \PYG... macros.
|
86 |
+
\Wrappedbreaksatspecials
|
87 |
+
% Breaks at punctuation characters . , ; ? ! and / need catcode=\active
|
88 |
+
\OriginalVerbatim[#1,codes*=\Wrappedbreaksatpunct]%
|
89 |
+
}
|
90 |
+
\makeatother
|
91 |
+
|
92 |
+
% Exact colors from NB
|
93 |
+
((*- block style_colors *))
|
94 |
+
\definecolor{incolor}{HTML}{303F9F}
|
95 |
+
\definecolor{outcolor}{HTML}{D84315}
|
96 |
+
\definecolor{cellborder}{HTML}{CFCFCF}
|
97 |
+
\definecolor{cellbackground}{HTML}{F7F7F7}
|
98 |
+
((*- endblock style_colors *))
|
99 |
+
|
100 |
+
% prompt
|
101 |
+
\makeatletter
|
102 |
+
\newcommand{\boxspacing}{\kern\kvtcb@left@rule\kern\kvtcb@boxsep}
|
103 |
+
\makeatother
|
104 |
+
((*- block style_prompt *))
|
105 |
+
\newcommand{\prompt}[4]{
|
106 |
+
{\ttfamily\llap{{\color{#2}[#3]:\hspace{3pt}#4}}\vspace{-\baselineskip}}
|
107 |
+
}
|
108 |
+
((* endblock style_prompt *))
|
109 |
+
|
110 |
+
((*- endblock definitions -*))
|
111 |
+
|
112 |
+
%===============================================================================
|
113 |
+
% Input
|
114 |
+
%===============================================================================
|
115 |
+
|
116 |
+
((* block input scoped *))
|
117 |
+
((( draw_cell(cell.source | highlight_code(strip_verbatim=True), cell, 'In', 'incolor', '\\boxspacing') )))
|
118 |
+
((* endblock input *))
|
119 |
+
|
120 |
+
|
121 |
+
%===============================================================================
|
122 |
+
% Output
|
123 |
+
%===============================================================================
|
124 |
+
|
125 |
+
((*- if charlim is not defined -*))
|
126 |
+
((* set charlim = 80 *))
|
127 |
+
((*- endif -*))
|
128 |
+
|
129 |
+
((* block execute_result scoped *))
|
130 |
+
((*- for type in output.data | filter_data_type -*))
|
131 |
+
((*- if type in ['text/plain']*))
|
132 |
+
((( draw_cell(output.data['text/plain'] | wrap_text(charlim) | escape_latex | ansi2latex, cell, 'Out', 'outcolor', '\\boxspacing') )))
|
133 |
+
((* else -*))
|
134 |
+
((( " " )))
|
135 |
+
((( draw_prompt(cell, 'Out', 'outcolor','') )))((( super() )))
|
136 |
+
((*- endif -*))
|
137 |
+
((*- endfor -*))
|
138 |
+
((* endblock execute_result *))
|
139 |
+
|
140 |
+
((* block stream *))
|
141 |
+
\begin{Verbatim}[commandchars=\\\{\}]
|
142 |
+
((( output.text | wrap_text(charlim) | escape_latex | strip_trailing_newline | ansi2latex )))
|
143 |
+
\end{Verbatim}
|
144 |
+
((* endblock stream *))
|
145 |
+
|
146 |
+
%==============================================================================
|
147 |
+
% Support Macros
|
148 |
+
%==============================================================================
|
149 |
+
|
150 |
+
% Name: draw_cell
|
151 |
+
% Purpose: Renders an output/input prompt
|
152 |
+
((*- if draw_cell is not defined -*)) % Required to allow overriding.
|
153 |
+
((* macro draw_cell(text, cell, prompt, prompt_color, extra_space) -*))
|
154 |
+
((*- if prompt == 'In' -*))
|
155 |
+
((*- set style = "breakable, size=fbox, boxrule=1pt, pad at break*=1mm,colback=cellbackground, colframe=cellborder"-*))
|
156 |
+
((*- else -*))((*- set style = "breakable, size=fbox, boxrule=.5pt, pad at break*=1mm, opacityfill=0"-*))((*- endif -*))
|
157 |
+
|
158 |
+
\begin{tcolorbox}[((( style )))]
|
159 |
+
(((- draw_prompt(cell, prompt, prompt_color, extra_space) )))
|
160 |
+
\begin{Verbatim}[commandchars=\\\{\}]
|
161 |
+
((( text )))
|
162 |
+
\end{Verbatim}
|
163 |
+
\end{tcolorbox}
|
164 |
+
((*- endmacro *))
|
165 |
+
((*- endif -*))
|
166 |
+
|
167 |
+
% Name: draw_prompt
|
168 |
+
% Purpose: Renders an output/input prompt
|
169 |
+
((* macro draw_prompt(cell, prompt, prompt_color, extra_space) -*))
|
170 |
+
((*- if cell.execution_count is defined -*))
|
171 |
+
((*- set execution_count = "" ~ (cell.execution_count | replace(None, " ")) -*))
|
172 |
+
((*- else -*))((*- set execution_count = " " -*))((*- endif *))
|
173 |
+
|
174 |
+
((*- if (resources.global_content_filter.include_output_prompt and prompt == 'Out')
|
175 |
+
or (resources.global_content_filter.include_input_prompt and prompt == 'In' ) *))
|
176 |
+
\prompt{(((prompt)))}{(((prompt_color)))}{(((execution_count)))}{(((extra_space)))}
|
177 |
+
((*- endif -*))
|
178 |
+
((*- endmacro *))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/latex/style_python.tex.j2
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
((= Python input/output style =))
|
2 |
+
|
3 |
+
((*- extends 'base.tex.j2' -*))
|
4 |
+
|
5 |
+
% Custom definitions
|
6 |
+
((* block definitions *))
|
7 |
+
((( super() )))
|
8 |
+
|
9 |
+
% Pygments definitions
|
10 |
+
((( resources.latex.pygments_definitions )))
|
11 |
+
((* endblock definitions *))
|
12 |
+
|
13 |
+
%===============================================================================
|
14 |
+
% Input
|
15 |
+
%===============================================================================
|
16 |
+
|
17 |
+
((* block input scoped *))
|
18 |
+
\begin{Verbatim}[commandchars=\\\{\}]
|
19 |
+
((*- if resources.global_content_filter.include_input_prompt *))
|
20 |
+
((( cell.source | highlight_code(strip_verbatim=True, metadata=cell.metadata) | add_prompts )))
|
21 |
+
((* else *))
|
22 |
+
((( cell.source | highlight_code(strip_verbatim=True, metadata=cell.metadata) )))
|
23 |
+
((* endif *))
|
24 |
+
\end{Verbatim}
|
25 |
+
((* endblock input *))
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/markdown/conf.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_template": "base",
|
3 |
+
"mimetypes": {
|
4 |
+
"text/markdown": true
|
5 |
+
}
|
6 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/markdown/index.md.j2
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{% extends 'base/display_priority.j2' %}
|
2 |
+
|
3 |
+
|
4 |
+
{% block in_prompt %}
|
5 |
+
{% endblock in_prompt %}
|
6 |
+
|
7 |
+
{% block output_prompt %}
|
8 |
+
{%- endblock output_prompt %}
|
9 |
+
|
10 |
+
{% block input %}
|
11 |
+
```
|
12 |
+
{%- if 'magics_language' in cell.metadata -%}
|
13 |
+
{{ cell.metadata.magics_language}}
|
14 |
+
{%- elif 'name' in nb.metadata.get('language_info', {}) -%}
|
15 |
+
{{ nb.metadata.language_info.name }}
|
16 |
+
{%- endif %}
|
17 |
+
{{ cell.source}}
|
18 |
+
```
|
19 |
+
{% endblock input %}
|
20 |
+
|
21 |
+
{% block error %}
|
22 |
+
{{ super() }}
|
23 |
+
{% endblock error %}
|
24 |
+
|
25 |
+
{% block traceback_line %}
|
26 |
+
{{ line | indent | strip_ansi }}
|
27 |
+
{% endblock traceback_line %}
|
28 |
+
|
29 |
+
{% block execute_result %}
|
30 |
+
|
31 |
+
{% block data_priority scoped %}
|
32 |
+
{{ super() }}
|
33 |
+
{% endblock %}
|
34 |
+
{% endblock execute_result %}
|
35 |
+
|
36 |
+
{% block stream %}
|
37 |
+
{{ output.text | indent }}
|
38 |
+
{% endblock stream %}
|
39 |
+
|
40 |
+
{% block data_svg %}
|
41 |
+
{% if "filenames" in output.metadata %}
|
42 |
+

|
43 |
+
{% else %}
|
44 |
+

|
45 |
+
{% endif %}
|
46 |
+
{% endblock data_svg %}
|
47 |
+
|
48 |
+
{% block data_png %}
|
49 |
+
{% if "filenames" in output.metadata %}
|
50 |
+

|
51 |
+
{% else %}
|
52 |
+

|
53 |
+
{% endif %}
|
54 |
+
{% endblock data_png %}
|
55 |
+
|
56 |
+
{% block data_jpg %}
|
57 |
+
{% if "filenames" in output.metadata %}
|
58 |
+

|
59 |
+
{% else %}
|
60 |
+

|
61 |
+
{% endif %}
|
62 |
+
{% endblock data_jpg %}
|
63 |
+
|
64 |
+
{% block data_latex %}
|
65 |
+
{{ output.data['text/latex'] }}
|
66 |
+
{% endblock data_latex %}
|
67 |
+
|
68 |
+
{% block data_html scoped %}
|
69 |
+
{{ output.data['text/html'] }}
|
70 |
+
{% endblock data_html %}
|
71 |
+
|
72 |
+
{% block data_markdown scoped %}
|
73 |
+
{{ output.data['text/markdown'] }}
|
74 |
+
{% endblock data_markdown %}
|
75 |
+
|
76 |
+
{% block data_text scoped %}
|
77 |
+
{{ output.data['text/plain'] | indent }}
|
78 |
+
{% endblock data_text %}
|
79 |
+
|
80 |
+
{% block markdowncell scoped %}
|
81 |
+
{{ cell.source }}
|
82 |
+
{% endblock markdowncell %}
|
83 |
+
|
84 |
+
{% block unknowncell scoped %}
|
85 |
+
unknown type {{ cell.type }}
|
86 |
+
{% endblock unknowncell %}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/reveal/base.html.j2
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{%- extends 'lab/base.html.j2' -%}
|
2 |
+
{% from 'cellslidedata.j2' import cellslidedata %}
|
3 |
+
|
4 |
+
{%- block any_cell scoped -%}
|
5 |
+
{%- if cell.metadata.get('slide_start', False) -%}
|
6 |
+
<section {{ cellslidedata(cell) }}>
|
7 |
+
{%- endif -%}
|
8 |
+
{%- if cell.metadata.get('subslide_start', False) -%}
|
9 |
+
<section {{ cellslidedata(cell) }}>
|
10 |
+
{%- endif -%}
|
11 |
+
{%- if cell.metadata.get('fragment_start', False) -%}
|
12 |
+
<div class="fragment" {{ cellslidedata(cell) }}>
|
13 |
+
{%- endif -%}
|
14 |
+
|
15 |
+
{%- if cell.metadata.slide_type == 'notes' -%}
|
16 |
+
<aside class="notes">
|
17 |
+
{{ super() }}
|
18 |
+
</aside>
|
19 |
+
{%- elif cell.metadata.slide_type == 'skip' -%}
|
20 |
+
{%- else -%}
|
21 |
+
{{ super() }}
|
22 |
+
{%- endif -%}
|
23 |
+
|
24 |
+
{%- if cell.metadata.get('fragment_end', False) -%}
|
25 |
+
</div>
|
26 |
+
{%- endif -%}
|
27 |
+
{%- if cell.metadata.get('subslide_end', False) -%}
|
28 |
+
</section>
|
29 |
+
{%- endif -%}
|
30 |
+
{%- if cell.metadata.get('slide_end', False) -%}
|
31 |
+
</section>
|
32 |
+
{%- endif -%}
|
33 |
+
{%- endblock any_cell -%}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/reveal/cellslidedata.j2
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{%- macro cellslidedata(cell) -%}
|
2 |
+
{% if cell.metadata.slideshow | length > 0 -%}
|
3 |
+
{% if cell.metadata.slideshow.data | length > 0 -%}
|
4 |
+
{% for key in (cell.metadata.slideshow.data) -%}
|
5 |
+
{{- (' data_' ~ key)|replace("_", "-") -}}="{{- cell.metadata.slideshow.data[key]|escape_html -}}"
|
6 |
+
{%- endfor -%}
|
7 |
+
{%- endif %}
|
8 |
+
{%- endif %}
|
9 |
+
{%- endmacro %}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/reveal/conf.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_template": "lab",
|
3 |
+
"mimetypes": {
|
4 |
+
"text/html": true
|
5 |
+
},
|
6 |
+
"preprocessors": {
|
7 |
+
"100-pygments": {
|
8 |
+
"type": "nbconvert.preprocessors.CSSHTMLHeaderPreprocessor",
|
9 |
+
"enabled": true
|
10 |
+
},
|
11 |
+
"500-reveal": {
|
12 |
+
"type": "nbconvert.exporters.slides._RevealMetadataPreprocessor",
|
13 |
+
"enabled": true
|
14 |
+
}
|
15 |
+
}
|
16 |
+
}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/script/script.j2
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{%- extends 'null.j2' -%}
|
2 |
+
|
3 |
+
{% block input %}
|
4 |
+
{{ cell.source }}
|
5 |
+
{% endblock input %}
|
emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/nbconvert/templates/webpdf/index.pdf.j2
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{%- extends 'lab/index.html.j2' -%}
|