New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too much padding in terminal #4288
Comments
https://github.com/xtermjs/xterm.js is now at version 3.2.0. They have monthly releases. The last update in jupyterlab seems to come from 11 months ago, v2.6.0 (according to
|
ah. I see an open PR that will upgrade xterm.js to 3.0.0. #3553. I'll try that. |
Tried https://github.com/blink1073/jupyterlab:xterm3.0, visually its a mixed bag: a) the overlapping bricks alignment problem is gone; but b) the padding is overdone, The excess padding means the lines that the terminal UI has drawn at the borders of the big boxes no longer connect with each other. The result is visually jarring: disconnected or dashed lines, instead of a continuous box border. Not horrible, but still a nit. See the next comment for what it is intended to look like. |
OK so from what I gather, the final issue is that the padding is too large and disrupts tables. Feel free to correct me if I have that wrong. #5232 recently fixed matplotlib rendering with the dark theme. Maybe something similar would have to be done in R kernels? |
Version:
Running jupyterlab docker image (repro with docker pull jaten/jupyterlab:2018march30
) i.e. this is 50892c430b16 tagged to mark the exact image from parent dockerhub image mikebirdgeneau/jupyterlab:latest / 50892c430b16 which was updated on 2018 March 28.
In trying to determine the exact version of jupyterlab that Mike installed in his docker image, I'm browsing the installed file directory, and I see
So perhaps this is v0.31.12? You can probably tell more precisely than I can by inspecting the docker image file tree.
On to the bugs:
On my mac, OSX 10.12.5, running browser Chrome 65.0.3325.181 (Official Build) (64-bit), when using the (jupyterlab's xterm.js) terminal, I see jagged edges on the outlined boxes, something seems proportionately spaced (rather than fix width font?)... (Notice this by looking down the vertical center-line of the terminal, for the right side of the 'Table' box.
https://www.dropbox.com/s/g0czb4ksewmm6yg/Screenshot%202018-03-30%2019.43.19.png?dl=0
For comparison, firefox looks fine, version 58.0.2
https://www.dropbox.com/s/2mptymdcp8xdfwq/Screenshot%202018-03-30%2019.46.28.png?dl=0
Additionally, Safari is quite bad, not passing the correct size to the terminal on initiation.
https://www.dropbox.com/s/0fxkhrfgswd55fa/Screenshot%202018-03-30%2019.47.53.png?dl=0
https://www.dropbox.com/s/erv01c713a0x312/Screenshot%202018-03-30%2019.48.21.png?dl=0
upon manual resize, this is correctable, but the jagged borders are also
visible in Safari. I'm running Safari Version 10.1.1 (12603.2.4)
https://www.dropbox.com/s/2m2u4hkwv08cgjh/Screenshot%202018-03-30%2019.49.16.png?dl=0
The application being run here is https://github.com/rivo/tview/tree/master/demos/presentation as built with go version go1.10 darwin/amd64, cross compiled to linux with
env GOOS=linux GOARCH=amd64 go build
. Press ctrl-n in thepresentation
app 7-times to get to the table demo page. Then down-arrow 2x, then enter-once to select the 'Table with borders' demo which most visually accents the annoyance.If it helps, here's a closeup (rightside) with a hover over in chrome dev tools of the character being used: 'span.xterm-normal-char' seems to be the class applied.
https://www.dropbox.com/s/3zwnthwnycajcya/Screenshot%202018-03-30%2020.30.26.png?dl=0
The text was updated successfully, but these errors were encountered: