vscode Jupyter笔记本中的Page down和Page up不起作用,

kiz8lqtg  于 5个月前  发布在  Vscode
关注(0)|答案(4)|浏览(55)

Issue Type: Bug
Page down and page up in Jupyter windows doesn't work. If no cell is in edit mode, either it does nothing or jumps haphazardly between cells. Other times, it tries to scroll a ways and then seems to choke on a plot, then backs up to where it was. If a cell is in edit mode, with a text cursor in it, then no scrolling happens. I am on an Apple laptop where the page down and page up functions are accomplished with Function-downarrow and Function-uparrow.
Also, the scroll-to-top and scroll-to-bottom, Command-uparrow and Command-downarrow, do not work if a cell is in edit mode.
VS Code version: Code 1.63.0 ( 7db1a2b , 2021-12-07T05:15:48.091Z)
OS version: Darwin x64 15.6.0
Restricted Mode: No
System Info
| Item | Value |
| ------------ | ------------ |
| CPUs | Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz (2 x 2400) |
| GPU Status | 2d_canvas: unavailable_softwaregpu_compositing: disabled_softwaremetal: disabled_offmultiple_raster_threads: disabled_offoop_rasterization: disabled_offopengl: disabled_offrasterization: disabled_softwareskia_renderer: disabled_off_okvideo_decode: disabled_softwarewebgl: unavailable_softwarewebgl2: unavailable_software |
| Load (avg) | 3, 3, 3 |
| Memory (System) | 8.00GB (0.02GB free) |
| Process Argv | |
| Screen Reader | no |
| VM | 0% |Extensions (40)
| Extension | Author (truncated) | Version |
| ------------ | ------------ | ------------ |
| ada | Ada | 23.0.1 |
| Bookmarks | ale | 13.2.2 |
| pascal | ale | 9.4.0 |
| pascal-formatter | ale | 2.6.0 |
| project-manager | ale | 12.4.0 |
| octave-hacking | apj | 0.2.12 |
| vscode-svgviewer | css | 2.0.0 |
| vcard | cst | 1.0.1 |
| vscode-mac-color-picker | dae | 1.0.2 |
| textpad-icon-theme | dam | 1.19.21 |
| vscode-markdownlint | Dav | 0.45.0 |
| ada-snippets | Ent | 0.3.0 |
| gc-excelviewer | Gra | 4.0.45 |
| vscode-back-forward-button | gri | 0.1.6 |
| vscode-lyx | gyt | 0.0.4 |
| latex-workshop | Jam | 8.23.0 |
| svn-scm | joh | 2.15.2 |
| language-julia | jul | 1.5.8 |
| keen-neutral-icon-theme | kee | 1.0.8 |
| octave | lea | 0.1.1 |
| eps-preview | mkv | 0.3.0 |
| python | ms- | 2021.12.1559732655 |
| jupyter | ms- | 2021.11.1001550889 |
| jupyter-keymap | ms- | 1.0.0 |
| jupyter-renderers | ms- | 1.0.4 |
| cpptools | ms- | 1.7.1 |
| cpptools-extension-pack | ms- | 1.1.0 |
| postscript | mxs | 1.0.1 |
| vscode-json-editor | nic | 0.3.0 |
| vsc-octave-debugger | pau | 0.4.23 |
| bib | phr | 0.3.0 |
| ipf | qms | 1.0.1 |
| vscode-data-preview | Ran | 2.3.0 |
| markdown-preview-enhanced | shd | 0.6.1 |
| octave | toa | 0.0.3 |
| pdf | tom | 1.2.0 |
| debug | web | 0.25.1 |
| txt-syntax | xsh | 0.2.0 |
| markdown-all-in-one | yzh | 3.4.0 |
| json | Zai | 2.0.2 |
(3 theme extensions excluded)
A/B Experiments

vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythontb:30283811
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vscop804:30404766
vs360:30404995
vsrem710cf:30416617
py55gd98:30411514
vscexrecpromp3t1:30407762
3npbholx

3npbholx1#

感谢您的反馈,这里有两个问题。一个是允许pagedown/up/cmd+up/down在焦点在单元格编辑器内或不在时工作。这可以通过调整when子句来实现。例如,我们可以将以下键绑定添加到您的键绑定文件中,以实现一致的page down体验

{
	"command": "list.focusPageDown",
	"key": "pagedown",
	"when": "editorTextFocus && inputFocus && notebookEditorFocused"
}

另一个问题是page down可以上下跳动。这是由于我们不知道单元格的高度,直到渲染完成,这是我们需要改进的地方。

yh2wf1be

yh2wf1be2#

我也发现这是一个大问题,当我滚动鼠标滚轮时,我得到了RSI。向下翻页似乎卡在一个单元格里,然后它就不再工作了。花了很长时间我才意识到"退出"会将键盘焦点从单元格中移除,然后向下翻页又可以正常工作了——但这存在一定的可发现性问题...

snvhrwxg

snvhrwxg3#

即使你退出并聚焦单元格,页面上下不会滚动页面。相反,它会移动单元格焦点上下。当单元格和输出足够大以填充屏幕时,这真的很烦人,你甚至无法浏览输出。鼠标滚动和手动拖动滚动条都可以正常工作。你已经可以使用箭头或j/k绑定浏览单元格。在不改变单元格焦点的情况下实现页面上下滚动应该不难。

7kqas0il

7kqas0il4#

确认,在Jupyter笔记本中滚动功能相当不稳定。

相关问题