Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
4c1c8887
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4c1c8887
编写于
1月 06, 2020
作者:
R
rebornix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Refresh layout at next frame
上级
a1683f54
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
36 addition
and
3 deletion
+36
-3
extensions/notebook-test/src/notebookProvider.ts
extensions/notebook-test/src/notebookProvider.ts
+31
-0
src/vs/workbench/contrib/notebook/browser/notebookEditor.ts
src/vs/workbench/contrib/notebook/browser/notebookEditor.ts
+5
-3
未找到文件。
extensions/notebook-test/src/notebookProvider.ts
浏览文件 @
4c1c8887
...
...
@@ -63,6 +63,37 @@ export class NotebookProvider implements vscode.NotebookProvider {
}
]
),
new
Cell
(
[
'
%matplotlib inline
\n
'
,
'
from matplotlib import pyplot as plt
\n
'
,
'
import pandas as pd
\n
'
,
'
\n
'
,
'
s = pd.Series([1,2,3], index=[
\'
a
\'
,
\'
b
\'
,
\'
c
\'
])
\n
'
,
'
\n
'
,
'
s.plot.bar(figsize=(20,10))
\n
'
,
'
plt.xlabel(
\'
Foo
\'
)
\n
'
,
'
plt.ylabel(
\'
Bar
\'
)
\n
'
,
'
plt.title(
\'
Hello World
\'
);
\n
'
],
'
code
'
,
[
{
'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JJqurxSa5a80wA7Nx/SvLBqvqD1etnJ/kPa5wH1kY8gt3jxtU11e9K8t6q+nKS69c8EwBHqaquTdJJTkvy51X1v1avH5zkunXOBsDOdfcbq+qqJHfcRuKfdrczSTkpuecR7EJV9Y+S3DfJn3T3t9c9DwBHVlUPPtz+7vY/BACAuyXxCAAAAIDRKeseAAAAAIDdSzwCAAAAYOSG2QAAx6iqvpPk2k2bfqq7P7emcQAAFuGeRwAAx6iqbuvue697DgCAJblsDQDgLlRVp1fVf6mqa6vqL6vqRw+3HQBgt3PZGgDAsbtXVV2zev7Z7v4nSV6YpLv7h6rqYUn+rKoeOm3v7m+uaXYAgKMiHgEAHLtvdPejtmx7UpL/nCTdfV1VXZ/koYfZ/rHjOC8AwI65bA0AAACAkXgEAHDXujzJTyfJ6nK1fUk+fZjtAAC7mngEAHDX+u0kp1TVtUneluT53f2tw2wHANjVqrvXPQMAAAAAu5QzjwAAAAAYiUcAAAAAjMQjAAAAAEbiEQAAAAAj8QgAAACAkXgEAAAAwEg8AgAAAGAkHgEAAAAw+n/VkovyVxfTbAAAAABJRU5ErkJggg==
\n
'
],
'
text/plain
'
:
[
'
<Figure size 1440x720 with 1 Axes>
'
]
},
'
metadata
'
:
{
'
needs_background
'
:
'
light
'
},
'
output_type
'
:
'
display_data
'
}
],
),
new
Cell
(
[
'
import time, sys
\n
'
,
...
...
src/vs/workbench/contrib/notebook/browser/notebookEditor.ts
浏览文件 @
4c1c8887
...
...
@@ -237,18 +237,20 @@ export class NotebookEditor extends BaseEditor implements NotebookHandler {
}
layoutElement
(
cell
:
ViewCell
,
height
:
number
)
{
setTimeout
(()
=>
{
DOM
.
scheduleAtNextAnimationFrame
(()
=>
{
// list.splice -> renderElement -> resize -> layoutElement
// above flow will actually break how list view renders it self as it messes up with the internal state
// instead we run the layout update in next tick
//. @TODO @rebornix, it should be batched.
let
index
=
this
.
model
!
.
getNotebook
().
cells
.
indexOf
(
cell
.
cell
);
this
.
list
?.
updateDynamicHeight
(
index
,
cell
,
height
);
}
,
0
);
});
}
updateViewCells
()
{
this
.
list
?.
rerender
();
DOM
.
scheduleAtNextAnimationFrame
(()
=>
{
this
.
list
?.
rerender
();
});
}
insertEmptyNotebookCell
(
cell
:
ViewCell
,
type
:
'
code
'
|
'
markdown
'
,
direction
:
'
above
'
|
'
below
'
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录