diff --git a/news/2 Fixes/15621.md b/news/2 Fixes/15621.md new file mode 100644 index 000000000000..cdfa015047e6 --- /dev/null +++ b/news/2 Fixes/15621.md @@ -0,0 +1 @@ +Fix link to create a new Jupyter notebook in Python start page. diff --git a/package.nls.json b/package.nls.json index bde0ae694f77..78e1222d1571 100644 --- a/package.nls.json +++ b/package.nls.json @@ -213,7 +213,7 @@ "StartPage.getStarted": "Python - Get Started", "StartPage.pythonExtensionTitle": "Python Extension", "StartPage.createJupyterNotebook": "Create a Jupyter Notebook", - "StartPage.notebookDescription": "- Run \"\" in the Command Palette (
Shift + Command + P
)
- Explore our
sample notebook
to learn about notebook features", + "StartPage.notebookDescription": "- Run \"\" in the Command Palette (
Shift + Command + P
)
- Explore our
sample notebook
to learn about notebook features", "StartPage.createAPythonFile": "Create a Python File", "StartPage.pythonFileDescription": "- Create a
new file
with a .py extension", "StartPage.openInteractiveWindow": "Use the Interactive Window to develop Python Scripts", diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 14b9701851f8..a645a0ae600c 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -206,7 +206,7 @@ "StartPage.getStarted": "Python - 开始", "StartPage.pythonExtensionTitle": "Python 扩展", "StartPage.createJupyterNotebook": "创建 Jupyter 笔记本", - "StartPage.notebookDescription": "- 在命令面板 (
Shift + Command + P
) 中运行 \"\"
- 探索
示例笔记本
来了解笔记本的功能", + "StartPage.notebookDescription": "- 在命令面板 (
Shift + Command + P
) 中运行 \"\"
- 探索
示例笔记本
来了解笔记本的功能", "StartPage.createAPythonFile": "创建 Python 文件", "StartPage.pythonFileDescription": "- 创建以 .py 为扩展名的
新文件
", "StartPage.openInteractiveWindow": "使用交互式窗口开发 Python 脚本", diff --git a/pythonFiles/Notebooks intro.ipynb b/pythonFiles/Notebooks intro.ipynb index bc191344a4d9..850d7f5a86f9 100644 --- a/pythonFiles/Notebooks intro.ipynb +++ b/pythonFiles/Notebooks intro.ipynb @@ -12,7 +12,7 @@ "metadata": {}, "source": [ "1. Open the command palette with the shortcut: `Ctrl/Command` + `Shift` + `P`\r\n", - "2. Search for the command `Create New Blank Jupyter Notebook`" + "2. Search for the command `Create New Blank Notebook`" ] }, { diff --git a/src/client/common/startPage/startPage.ts b/src/client/common/startPage/startPage.ts index 789f6ab53316..dae649bfc59b 100644 --- a/src/client/common/startPage/startPage.ts +++ b/src/client/common/startPage/startPage.ts @@ -172,10 +172,7 @@ export class StartPage extends WebviewPanelHost sendTelemetryEvent(Telemetry.StartPageOpenCommandPaletteWithOpenNBSelected); this.setTelemetryFlags(); - await this.commandManager.executeCommand( - 'workbench.action.quickOpen', - '>Create New Blank Jupyter Notebook', - ); + await this.commandManager.executeCommand('workbench.action.quickOpen', '>Create New Blank Notebook'); break; case StartPageMessages.OpenSampleNotebook: sendTelemetryEvent(Telemetry.StartPageOpenSampleNotebook); diff --git a/src/client/common/utils/localize.ts b/src/client/common/utils/localize.ts index bb71d4477f01..83603fb95228 100644 --- a/src/client/common/utils/localize.ts +++ b/src/client/common/utils/localize.ts @@ -411,7 +411,7 @@ export namespace StartPage { export const createJupyterNotebook = localize('StartPage.createJupyterNotebook', 'Create a Jupyter Notebook'); export const notebookDescription = localize( 'StartPage.notebookDescription', - '- Run "" in the Command Palette (
Shift + Command + P
)
- Explore our to learn about notebook features', + '- Run "" in the Command Palette (
Shift + Command + P
)
- Explore our to learn about notebook features', ); export const createAPythonFile = localize('StartPage.createAPythonFile', 'Create a Python File'); export const pythonFileDescription = localize( diff --git a/src/startPage-ui/startPage/startPage.tsx b/src/startPage-ui/startPage/startPage.tsx index 7c7f23837357..9ad362231e53 100644 --- a/src/startPage-ui/startPage/startPage.tsx +++ b/src/startPage-ui/startPage/startPage.tsx @@ -185,7 +185,7 @@ export class StartPage extends React.Component implements IMess dangerouslySetInnerHTML={{ __html: getLocString( 'StartPage.notebookDescription', - '- Run "" in the Command Palette (
Shift + Command + P
)
- Explore our to learn about notebook features', + '- Run "" in the Command Palette (
Shift + Command + P
)
- Explore our to learn about notebook features', ).format('openCommandPaletteWithSelection()', 'openSampleNotebook()'), }} />