Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port start page to release #12365

Merged
merged 2 commits into from
Jun 16, 2020
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
3 changes: 3 additions & 0 deletions StartPageReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Added a start page for the extension. Launched in experimental mode such that it opens to new users or when there is a new release. It can be disabled with the setting 'Python: Show Start Page' and it can be opened at any time with the command 'Python: Open Start Page'.
Removed `python.jediEnabled` setting in favor of `python.languageServer`. Instead of `"python.jediEnabled": true` please use `"python.languageServer": "Jedi"`.
Made the variable explorer in the Notebook editor resizable.
Binary file modified images/dataviewer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/kernelchange.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/plotviewer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/remoteserver.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/runbyline.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/savetopythonfile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/variableexplorer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,7 @@
{
"command": "python.startPage.open",
"title": "%python.command.python.startPage.open.title%",
"category": "Python",
"when": "python.datascience.startpageenabled"
"category": "Python"
},
{
"command": "python.datascience.runtoline",
Expand Down
10 changes: 6 additions & 4 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -495,16 +495,18 @@
"StartPage.getStarted": "Python - Get Started",
"StartPage.pythonExtensionTitle": "Python Extension",
"StartPage.createJupyterNotebook": "Create a Jupyter Notebook",
"StartPage.notebookDescription": "- Use \"<div class=\"italics\">Shift + Command + P</div> \" to open the <div class=\"link\" role=\"button\" onclick={0}>Command Palette</div><br />- Type \"<div class=\"link italics\" role=\"button\" onclick={1}>Create New Blank Jupyter Notebook</div> \"<br />- Explore our <div class=\"link\" role=\"button\" onclick={2}>sample notebook</div> to learn about notebook features",
"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.createAPythonFile": "Create a Python File",
"StartPage.pythonFileDescription": "- Create a new file and use the .py extension<br />- <div class=\"link\" role=\"button\" onclick={0}>Open a file or workspace</div> to continue work",
"StartPage.openInteractiveWindow": "Open the Interactive Window",
"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",
"StartPage.interactiveWindowDesc": "- You can create cells on a Python file by typing \"#%%\" <br /> - Use \"<div class=\"italics\">Shift + Enter</div> \" to run a cell, the output will be shown in the interactive window",
"StartPage.releaseNotes": "Take a look at our <a class=\"link\" href={0}>Release Notes</a> to learn more about the latest features",
"StartPage.tutorialAndDoc": "Explore more features in our <a class=\"link\" href={0}>Tutorials</a> or check <a class=\"link\" href={1}>Documentation</a> for tips and troubleshooting.",
"StartPage.dontShowAgain": "Don't show this page again",
"StartPage.helloWorld": "Hello world",
"StartPage.sampleNotebook": "Welcome_To_VSCode_Notebooks.ipynb",
"StartPage.sampleNotebook": "Notebooks intro",
"StartPage.openFolder": "Open a Folder or Workspace",
"StartPage.folderDesc": "- Open a <div class=\"link\" role=\"button\" onclick={0}>Folder</div><br /> - Open a <div class=\"link\" role=\"button\" onclick={1}>Workspace</div>",
"DataScience.libraryRequiredToLaunchJupyterKernelNotInstalledInterpreter": "{0} requires {1} to be installed.",
"DataScience.runByLine": "Run by line (F10)",
"DataScience.stopRunByLine": "Stop",
Expand Down
203 changes: 203 additions & 0 deletions pythonFiles/Notebooks intro.ipynb

Large diffs are not rendered by default.

192 changes: 0 additions & 192 deletions pythonFiles/Welcome_To_VSCode_Notebooks.ipynb

This file was deleted.

2 changes: 2 additions & 0 deletions src/client/common/application/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export interface ICommandNameArgumentTypeMapping extends ICommandNameWithoutArgu
['vscode.openWith']: [Uri, string];
['workbench.action.quickOpen']: [string];
['workbench.extensions.installExtension']: [Uri | 'ms-python.python'];
['workbench.action.files.openFolder']: [];
['workbench.action.openWorkspace']: [];
['setContext']: [string, boolean];
['python.reloadVSCode']: [string];
['revealLine']: [{ lineNumber: number; at: 'top' | 'center' | 'bottom' }];
Expand Down
5 changes: 5 additions & 0 deletions src/client/common/experiments/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,8 @@ export enum CustomEditorSupport {
control = 'CustomEditorSupport - control',
experiment = 'CustomEditorSupport - experiment'
}

// Experiment to turn on the start page
export enum EnableStartPage {
experiment = 'EnableStartPage'
}
Loading