Skip to content

Commit b649a07

Browse files
authored
Merge pull request #6418 from jtpio/cell-toolbar
Add cell toolbar extension
2 parents 9cde2b6 + 1fb9f7b commit b649a07

File tree

8 files changed

+65
-18
lines changed

8 files changed

+65
-18
lines changed

app/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ async function main() {
172172
}
173173
case 'notebooks': {
174174
baseMods = baseMods.concat([
175+
require('@jupyterlab/cell-toolbar-extension'),
175176
require('@jupyterlab/notebook-extension').default.filter(({ id }) =>
176177
['@jupyterlab/notebook-extension:completer'].includes(id)
177178
),

app/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"@jupyterlab/application-extension": "~4.0.0-alpha.9",
2626
"@jupyterlab/apputils": "~4.0.0-alpha.9",
2727
"@jupyterlab/apputils-extension": "~4.0.0-alpha.9",
28+
"@jupyterlab/cell-toolbar": "~4.0.0-alpha.7",
29+
"@jupyterlab/cell-toolbar-extension": "~4.0.0-alpha.7",
2830
"@jupyterlab/celltags": "~4.0.0-alpha.9",
2931
"@jupyterlab/codeeditor": "~4.0.0-alpha.9",
3032
"@jupyterlab/codemirror-extension": "~4.0.0-alpha.9",
@@ -106,6 +108,7 @@
106108
"@jupyter-notebook/ui-components": "^7.0.0-alpha.3",
107109
"@jupyterlab/application-extension": "^4.0.0-alpha.9",
108110
"@jupyterlab/apputils-extension": "^4.0.0-alpha.9",
111+
"@jupyterlab/cell-toolbar-extension": "^4.0.0-alpha.7",
109112
"@jupyterlab/celltags": "^4.0.0-alpha.9",
110113
"@jupyterlab/codemirror-extension": "^4.0.0-alpha.9",
111114
"@jupyterlab/completer-extension": "^4.0.0-alpha.9",
@@ -167,6 +170,7 @@
167170
"@jupyter-notebook/tree-extension",
168171
"@jupyterlab/application-extension",
169172
"@jupyterlab/apputils-extension",
173+
"@jupyterlab/cell-toolbar-extension",
170174
"@jupyterlab/codemirror-extension",
171175
"@jupyterlab/completer-extension",
172176
"@jupyterlab/console-extension",
@@ -192,6 +196,7 @@
192196
"singletonPackages": [
193197
"@jupyterlab/application",
194198
"@jupyterlab/apputils",
199+
"@jupyterlab/cell-toolbar",
195200
"@jupyterlab/celltags",
196201
"@jupyterlab/codeeditor",
197202
"@jupyterlab/completer",

packages/notebook-extension/style/base.css

+13
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ body[data-notebook='notebooks'] .jp-Notebook.jp-mod-scrollPastEnd::after {
4646
min-height: var(--jp-notebook-padding);
4747
}
4848

49+
/* Cell toolbar adjustements */
50+
51+
body[data-notebook='notebooks'] .jp-cell-toolbar {
52+
background: unset;
53+
top: unset;
54+
}
55+
56+
@media only screen and (max-width: 760px) {
57+
body[data-notebook='notebooks'] .jp-cell-toolbar {
58+
top: 5px;
59+
}
60+
}
61+
4962
/* ---- */
5063

5164
.jp-NotebookKernelLogo {
Loading
Loading
Loading
Loading

yarn.lock

+46-18
Original file line numberDiff line numberDiff line change
@@ -1260,10 +1260,10 @@
12601260
"@jridgewell/sourcemap-codec" "^1.4.10"
12611261

12621262
"@jupyter-notebook/application-extension@file:packages/application-extension":
1263-
version "7.0.0-alpha.2"
1263+
version "7.0.0-alpha.3"
12641264
dependencies:
1265-
"@jupyter-notebook/application" "^7.0.0-alpha.2"
1266-
"@jupyter-notebook/ui-components" "^7.0.0-alpha.2"
1265+
"@jupyter-notebook/application" "^7.0.0-alpha.3"
1266+
"@jupyter-notebook/ui-components" "^7.0.0-alpha.3"
12671267
"@jupyterlab/application" "^4.0.0-alpha.9"
12681268
"@jupyterlab/apputils" "^4.0.0-alpha.9"
12691269
"@jupyterlab/celltags" "^4.0.0-alpha.9"
@@ -1281,7 +1281,7 @@
12811281
"@lumino/widgets" "^1.31.1"
12821282

12831283
"@jupyter-notebook/application@file:packages/application":
1284-
version "7.0.0-alpha.2"
1284+
version "7.0.0-alpha.3"
12851285
dependencies:
12861286
"@jupyterlab/application" "^4.0.0-alpha.9"
12871287
"@jupyterlab/coreutils" "^6.0.0-alpha.9"
@@ -1296,15 +1296,15 @@
12961296
"@lumino/widgets" "^1.31.1"
12971297

12981298
"@jupyter-notebook/console-extension@file:packages/console-extension":
1299-
version "7.0.0-alpha.2"
1299+
version "7.0.0-alpha.3"
13001300
dependencies:
13011301
"@jupyterlab/application" "^4.0.0-alpha.9"
13021302
"@jupyterlab/console" "^4.0.0-alpha.9"
13031303
"@jupyterlab/coreutils" "^6.0.0-alpha.9"
13041304
"@lumino/algorithm" "^1.9.1"
13051305

13061306
"@jupyter-notebook/docmanager-extension@file:packages/docmanager-extension":
1307-
version "7.0.0-alpha.2"
1307+
version "7.0.0-alpha.3"
13081308
dependencies:
13091309
"@jupyterlab/application" "^4.0.0-alpha.9"
13101310
"@jupyterlab/coreutils" "^6.0.0-alpha.9"
@@ -1314,26 +1314,26 @@
13141314
"@lumino/algorithm" "^1.9.1"
13151315

13161316
"@jupyter-notebook/documentsearch-extension@file:packages/documentsearch-extension":
1317-
version "7.0.0-alpha.2"
1317+
version "7.0.0-alpha.3"
13181318
dependencies:
1319-
"@jupyter-notebook/application" "^7.0.0-alpha.2"
1319+
"@jupyter-notebook/application" "^7.0.0-alpha.3"
13201320
"@jupyterlab/application" "^4.0.0-alpha.9"
13211321
"@jupyterlab/documentsearch" "^4.0.0-alpha.9"
13221322
"@lumino/widgets" "^1.31.1"
13231323

13241324
"@jupyter-notebook/help-extension@file:packages/help-extension":
1325-
version "7.0.0-alpha.2"
1325+
version "7.0.0-alpha.3"
13261326
dependencies:
1327-
"@jupyter-notebook/ui-components" "^7.0.0-alpha.2"
1327+
"@jupyter-notebook/ui-components" "^7.0.0-alpha.3"
13281328
"@jupyterlab/application" "^4.0.0-alpha.9"
13291329
"@jupyterlab/apputils" "^4.0.0-alpha.9"
13301330
"@jupyterlab/mainmenu" "^4.0.0-alpha.9"
13311331
"@jupyterlab/translation" "^4.0.0-alpha.9"
13321332

13331333
"@jupyter-notebook/lab-extension@file:packages/lab-extension":
1334-
version "7.0.0-alpha.2"
1334+
version "7.0.0-alpha.3"
13351335
dependencies:
1336-
"@jupyter-notebook/application" "^7.0.0-alpha.2"
1336+
"@jupyter-notebook/application" "^7.0.0-alpha.3"
13371337
"@jupyterlab/application" "^4.0.0-alpha.9"
13381338
"@jupyterlab/apputils" "^4.0.0-alpha.9"
13391339
"@jupyterlab/coreutils" "^6.0.0-alpha.9"
@@ -1344,9 +1344,9 @@
13441344
"@lumino/disposable" "^1.10.1"
13451345

13461346
"@jupyter-notebook/notebook-extension@file:packages/notebook-extension":
1347-
version "7.0.0-alpha.2"
1347+
version "7.0.0-alpha.3"
13481348
dependencies:
1349-
"@jupyter-notebook/application" "^7.0.0-alpha.2"
1349+
"@jupyter-notebook/application" "^7.0.0-alpha.3"
13501350
"@jupyterlab/application" "^4.0.0-alpha.9"
13511351
"@jupyterlab/apputils" "^4.0.0-alpha.9"
13521352
"@jupyterlab/cells" "^4.0.0-alpha.9"
@@ -1358,17 +1358,17 @@
13581358
"@lumino/widgets" "^1.31.1"
13591359

13601360
"@jupyter-notebook/terminal-extension@file:packages/terminal-extension":
1361-
version "7.0.0-alpha.2"
1361+
version "7.0.0-alpha.3"
13621362
dependencies:
13631363
"@jupyterlab/application" "^4.0.0-alpha.9"
13641364
"@jupyterlab/coreutils" "^6.0.0-alpha.9"
13651365
"@jupyterlab/terminal" "^4.0.0-alpha.9"
13661366
"@lumino/algorithm" "^1.9.1"
13671367

13681368
"@jupyter-notebook/tree-extension@file:packages/tree-extension":
1369-
version "7.0.0-alpha.2"
1369+
version "7.0.0-alpha.3"
13701370
dependencies:
1371-
"@jupyter-notebook/application" "^7.0.0-alpha.2"
1371+
"@jupyter-notebook/application" "^7.0.0-alpha.3"
13721372
"@jupyterlab/application" "^4.0.0-alpha.9"
13731373
"@jupyterlab/apputils" "^4.0.0-alpha.9"
13741374
"@jupyterlab/coreutils" "^6.0.0-alpha.9"
@@ -1385,7 +1385,7 @@
13851385
"@lumino/widgets" "^1.31.1"
13861386

13871387
"@jupyter-notebook/ui-components@file:packages/ui-components":
1388-
version "7.0.0-alpha.2"
1388+
version "7.0.0-alpha.3"
13891389
dependencies:
13901390
"@jupyterlab/ui-components" "^4.0.0-alpha.24"
13911391
react "^17.0.1"
@@ -1563,6 +1563,34 @@
15631563
typescript "~4.6.3"
15641564
verdaccio "^5.2.2"
15651565

1566+
"@jupyterlab/cell-toolbar-extension@^4.0.0-alpha.7":
1567+
version "4.0.0-alpha.7"
1568+
resolved "https://registry.yarnpkg.com/@jupyterlab/cell-toolbar-extension/-/cell-toolbar-extension-4.0.0-alpha.7.tgz#76c17ed048f8c04ed8504d465ed75ea169722cb1"
1569+
integrity sha512-WTq6b/GLP+qB933XYzQjdrtx+rr0p0EAQrhqH8WT9zOVPAWujS7SgSI+GEKGSSjxb5g+y/Q7PKz6UclkzG+dhw==
1570+
dependencies:
1571+
"@jupyterlab/application" "^4.0.0-alpha.9"
1572+
"@jupyterlab/apputils" "^4.0.0-alpha.9"
1573+
"@jupyterlab/cell-toolbar" "^4.0.0-alpha.7"
1574+
"@jupyterlab/settingregistry" "^4.0.0-alpha.9"
1575+
"@jupyterlab/translation" "^4.0.0-alpha.9"
1576+
1577+
"@jupyterlab/cell-toolbar@^4.0.0-alpha.7":
1578+
version "4.0.0-alpha.7"
1579+
resolved "https://registry.yarnpkg.com/@jupyterlab/cell-toolbar/-/cell-toolbar-4.0.0-alpha.7.tgz#20e2b8a1e0ddd0dc5c6c57d00303460c46f30fc6"
1580+
integrity sha512-2+//4+uD27QLBlQKQlEAbeAhREZvi1itTZvafmU9/EZATlEABC+14ew1NgcfX4NT8RV0281AIkejY2bmsn3SUw==
1581+
dependencies:
1582+
"@jupyterlab/apputils" "^4.0.0-alpha.9"
1583+
"@jupyterlab/cells" "^4.0.0-alpha.9"
1584+
"@jupyterlab/docregistry" "^4.0.0-alpha.9"
1585+
"@jupyterlab/notebook" "^4.0.0-alpha.9"
1586+
"@jupyterlab/observables" "^5.0.0-alpha.9"
1587+
"@jupyterlab/ui-components" "^4.0.0-alpha.24"
1588+
"@lumino/algorithm" "^1.9.1"
1589+
"@lumino/commands" "^1.20.0"
1590+
"@lumino/disposable" "^1.10.1"
1591+
"@lumino/signaling" "^1.10.1"
1592+
"@lumino/widgets" "^1.31.1"
1593+
15661594
"@jupyterlab/cells@^4.0.0-alpha.9":
15671595
version "4.0.0-alpha.9"
15681596
resolved "https://registry.yarnpkg.com/@jupyterlab/cells/-/cells-4.0.0-alpha.9.tgz#7ff7318443094cd9c102955b32c2e39dad192a8f"

0 commit comments

Comments
 (0)