Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions news/2 Fixes/15621.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix link to create a new Jupyter notebook in Python start page.
2 changes: 1 addition & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"StartPage.getStarted": "Python - Get Started",
"StartPage.pythonExtensionTitle": "Python Extension",
"StartPage.createJupyterNotebook": "Create a Jupyter Notebook",
"StartPage.notebookDescription": "- Run \"<div class=\"link italics\" role=\"button\" onclick={0}>Create New Blank Jupyter Notebook</div>\" in the Command Palette (<div class=\"italics\">Shift + Command + P</div>)<br />- Explore our <div class=\"link\" role=\"button\" onclick={1}>sample notebook</div> to learn about notebook features",
"StartPage.notebookDescription": "- Run \"<div class=\"link italics\" role=\"button\" onclick={0}>Create New Blank Notebook</div>\" in the Command Palette (<div class=\"italics\">Shift + Command + P</div>)<br />- Explore our <div class=\"link\" role=\"button\" onclick={1}>sample notebook</div> to learn about notebook features",
"StartPage.createAPythonFile": "Create a Python File",
"StartPage.pythonFileDescription": "- Create a <div class=\"link\" role=\"button\" onclick={0}>new file</div> with a .py extension",
"StartPage.openInteractiveWindow": "Use the Interactive Window to develop Python Scripts",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
"StartPage.getStarted": "Python - 开始",
"StartPage.pythonExtensionTitle": "Python 扩展",
"StartPage.createJupyterNotebook": "创建 Jupyter 笔记本",
"StartPage.notebookDescription": "- 在命令面板 (<div class=\"italics\">Shift + Command + P</div>) 中运行 \"<div class=\"link italics\" role=\"button\" onclick={0}>创建新的 Jupyter 笔记本</div>\" <br />- 探索 <div class=\"link\" role=\"button\" onclick={1}>示例笔记本</div> 来了解笔记本的功能",
"StartPage.notebookDescription": "- 在命令面板 (<div class=\"italics\">Shift + Command + P</div>) 中运行 \"<div class=\"link italics\" role=\"button\" onclick={0}>创建新的 笔记本</div>\" <br />- 探索 <div class=\"link\" role=\"button\" onclick={1}>示例笔记本</div> 来了解笔记本的功能",
"StartPage.createAPythonFile": "创建 Python 文件",
"StartPage.pythonFileDescription": "- 创建以 .py 为扩展名的<div class=\"link\" role=\"button\" onclick={0}>新文件</div>",
"StartPage.openInteractiveWindow": "使用交互式窗口开发 Python 脚本",
Expand Down
2 changes: 1 addition & 1 deletion pythonFiles/Notebooks intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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`"
]
},
{
Expand Down
5 changes: 1 addition & 4 deletions src/client/common/startPage/startPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ export class StartPage extends WebviewPanelHost<IStartPageMapping>
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);
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/utils/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export namespace StartPage {
export const createJupyterNotebook = localize('StartPage.createJupyterNotebook', 'Create a Jupyter Notebook');
export const notebookDescription = localize(
'StartPage.notebookDescription',
'- Run "<div class="link italics" role="button" onclick={0}>Create New Blank Jupyter Notebook</div>" in the Command Palette (<div class="italics">Shift + Command + P</div>)<br />- Explore our <div class="link" role="button" onclick={1}>sample notebook</div> to learn about notebook features',
'- Run "<div class="link italics" role="button" onclick={0}>Create New Blank Notebook</div>" in the Command Palette (<div class="italics">Shift + Command + P</div>)<br />- Explore our <div class="link" role="button" onclick={1}>sample notebook</div> to learn about notebook features',
);
export const createAPythonFile = localize('StartPage.createAPythonFile', 'Create a Python File');
export const pythonFileDescription = localize(
Expand Down
2 changes: 1 addition & 1 deletion src/startPage-ui/startPage/startPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class StartPage extends React.Component<IStartPageProps> implements IMess
dangerouslySetInnerHTML={{
__html: getLocString(
'StartPage.notebookDescription',
'- Run "<div class="link italics" role="button" onclick={0}>Create New Blank Jupyter Notebook</div>" in the Command Palette (<div class="italics">Shift + Command + P</div>)<br />- Explore our <div class="link" role="button" onclick={1}>sample notebook</div> to learn about notebook features',
'- Run "<div class="link italics" role="button" onclick={0}>Create New Blank Notebook</div>" in the Command Palette (<div class="italics">Shift + Command + P</div>)<br />- Explore our <div class="link" role="button" onclick={1}>sample notebook</div> to learn about notebook features',
).format('openCommandPaletteWithSelection()', 'openSampleNotebook()'),
}}
/>
Expand Down