Skip to content

Commit

Permalink
start page experiment and fixes (#12339)
Browse files Browse the repository at this point in the history
* move EnableStartPage enum to groups.ts

* - remove the command from the experiment
- fix the start page not loading when you go back
to a priviews version and then updating again
- update some labels in the start page
- update the sample notebook to include run by line
- the sample notebook now has a title
- updated the images from the sample notebook

* oops

* oops

* -add messages to open folder and workspace
-add telemetry to measure if the webview error happens
-give space between bullet points
-add link to enable experiments to the sample notebook
-get the release notes from a different file
-fix bullet points in the sample notebook
-sample notebook now opens with a counter in the title

* fix a unit test

* final changes

* final final changes

* final^3 changes

* removed run by line from the sample notebook
  • Loading branch information
David Kutugata authored Jun 15, 2020
1 parent b5332bc commit ba9298c
Show file tree
Hide file tree
Showing 30 changed files with 385 additions and 549 deletions.
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 @@ -1159,8 +1159,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
16 changes: 9 additions & 7 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@
"DataScience.exportDialogFailed": "Failed to export notebook. {0}",
"DataScience.exportOpenQuestion": "Open in browser",
"DataScience.exportOpenQuestion1": "Open in editor",
"DataScience.notebookExportAs" : "Convert and save to a python script",
"DataScience.exportAsQuickPickPlaceholder" : "Export As...",
"DataScience.exportPythonQuickPickLabel" : "Python Script",
"DataScience.notebookExportAs": "Convert and save to a python script",
"DataScience.exportAsQuickPickPlaceholder": "Export As...",
"DataScience.exportPythonQuickPickLabel": "Python Script",
"DataScience.collapseInputTooltip": "Collapse input block",
"DataScience.collapseVariableExplorerTooltip": "Hide variables active in jupyter kernel",
"DataScience.collapseVariableExplorerLabel": "Variables",
Expand Down Expand Up @@ -501,16 +501,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
Loading

0 comments on commit ba9298c

Please sign in to comment.