Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add the show header command to the command palette#6415

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jtpio merged 1 commit intojupyter:mainfromjeewonkoo:develop
May 3, 2022
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add the show header command to the command palette
  • Loading branch information
Jeewon Koo authored andJeewon Koo committedMay 3, 2022
commit5701f9fc8c85f6bc95d88e0aa260c4e3c2d568cb
9 changes: 7 additions & 2 deletionspackages/application-extension/src/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -481,12 +481,13 @@ const title: JupyterFrontEndPlugin<void> = {
const topVisibility: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:top',
requires: [INotebookShell, ITranslator],
optional: [ISettingRegistry],
optional: [ISettingRegistry, ICommandPalette],
activate: (
app: JupyterFrontEnd<JupyterFrontEnd.IShell>,
notebookShell: INotebookShell,
translator: ITranslator,
settingRegistry: ISettingRegistry | null
settingRegistry: ISettingRegistry | null,
palette: ICommandPalette | null
) => {
const trans = translator.load('notebook');
const top = notebookShell.top;
Expand DownExpand Up@@ -527,6 +528,10 @@ const topVisibility: JupyterFrontEndPlugin<void> = {
});
}

if (palette) {
palette.addItem({ command: CommandIDs.toggleTop, category: 'View' });
}

const onChanged = (): void => {
if (settingsOverride) {
return;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp