You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed nbgitpuller following the instructions in the README, and when I access an nbgitpuller URL, I just end up at a blank page. Looking at the browser console shows that xterm.js is failing to load (both the JS and the CSS). My guess is that this is related to the updated version of xterm.js included with jupyterhub/notebook v5.5.0.
I can get it to load the JS by changing index.js:4 to 'static/components/xterm.js/index.js'.
Then there is an error in the vendored _fitTerm() function due to changes in xterm.js. I changed it to:
GitSyncView.prototype._fitTerm=function(){// Vendored in from the xterm.js fit addon// Because I can't for the life of me get the addon to be// actually included here as an require.js thing.// And life is too short.varterm=this.term;if(!term.element.parentElement){returnnull;}varparentElementStyle=window.getComputedStyle(term.element.parentElement),parentElementHeight=parseInt(parentElementStyle.getPropertyValue('height')),parentElementWidth=Math.max(0,parseInt(parentElementStyle.getPropertyValue('width'))-17),elementStyle=window.getComputedStyle(term.element),elementPaddingVer=parseInt(elementStyle.getPropertyValue('padding-top'))+parseInt(elementStyle.getPropertyValue('padding-bottom')),elementPaddingHor=parseInt(elementStyle.getPropertyValue('padding-right'))+parseInt(elementStyle.getPropertyValue('padding-left')),availableHeight=parentElementHeight-elementPaddingVer,availableWidth=parentElementWidth-elementPaddingHor;rows=parseInt(availableHeight/term.renderer.dimensions.actualCellHeight);cols=parseInt(availableWidth/term.renderer.dimensions.actualCellWidth);term.resize(cols,rows);};
I don't know if these are the best fixes, but they seem to work. I haven't corrected the CSS URL, though, as I'm not quite sure where that is now.
The text was updated successfully, but these errors were encountered:
I installed nbgitpuller following the instructions in the README, and when I access an nbgitpuller URL, I just end up at a blank page. Looking at the browser console shows that xterm.js is failing to load (both the JS and the CSS). My guess is that this is related to the updated version of xterm.js included with jupyterhub/notebook v5.5.0.
I can get it to load the JS by changing index.js:4 to
'static/components/xterm.js/index.js'
.Then there is an error in the vendored
_fitTerm()
function due to changes in xterm.js. I changed it to:I don't know if these are the best fixes, but they seem to work. I haven't corrected the CSS URL, though, as I'm not quite sure where that is now.
The text was updated successfully, but these errors were encountered: