microsoft / vscode-jupyter Goto Github PK
View Code? Open in Web Editor NEWVS Code Jupyter extension
Home Page: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
License: MIT License
VS Code Jupyter extension
Home Page: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
License: MIT License
Open folder
Add python file
Add cells
Run cells
Close folder
Reopen
Run cells
Double cells end up being output
Are there plans to support a data explorer, or variables view where one would execute a command and have the ability to explore the variable or at least get some informations about the variable (type, min, max...etc). Similar to how Rstudio/Pycharm has.
if theres a manual solution like custom tree views via extension API i will be happy to try it.
The progress message for Starting Jupyter
must contain a spinner.
Basically we need to use VSC Api for progress messages to keep the UI for progress messages consistent.
Please use the API: IApplicationShell.withProgress
This would be better than a static message.
https://github.com/Microsoft/vscode-python/blob/master/src/client/interpreter/display/progressDisplay.ts#L45
If VSCode is not launched from an Anaconda prompt with the Scripts directory in the path then it will fail to start jupyter server.
We should be able to start Jupyter server without starting code from an Anaconda command prompt.
Output for Python
in the Output
panel (View
โOutput
, change the drop-down the upper-right of the Output
panel to Python
)
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
As sqlopsstudio displays the query result in spreadsheet format, It can be great to make table-like object (e.g, pandas.DataFrame, numpy.ndarray) rendered in similar way. AFAIK, Some IDEs already supported this feature, which makes inspecting data more efficient.
Magic commands are not valid python commands, hence magic commands in the python file end up with red squigglys (marked as invalid syntax from Language Server).
Add support for magic commands without noise in problems panel
Imagine somebody doesn't know about shift+enter auto advance
Instead they keep typing #%% and hitting run cell.
We should tell them about shift+enter or have a 'run and create new cell' entry
Currently we aren't passing the resource: Uri
value into most methods.
This would result in various parts of the extension not working correctly in a multi-root environment (current code will pick settings from first available workspace folder).
Examples:
This only applies to multi-root environments.
There is a web-based ipython console in the jupyterlab project, basically a QTConsole counterpart in browser.
It supports inline display of matplotlib plot and good pandas DataFrame rendering which is extremely important for interactive data processing related tasks.
hope to see that console embeded in VS Code.
a related issue may be (DonJayamanne/vscodeJupyter#19)
Feature requested via feedback:
if possible provide an interface to debug pandas dataframes.
Thank you very much
Python Interactive window should show a busy indicator
Preliminary spec:
/ icon spinning with "Starting Jupyter Server"
We're using prismjs to do colorization. This isn't as robust as textmate
Case in point,
On the left textmate is identifying import as keyword.control. On the right prism doesn't even have that in its grammar.
The solution would probably be:
Use https://www.npmjs.com/package/vscode-textmate to tokenize the source before we send it to react
Use our current solution to load the json files with the colors and turn them into a css
Expand this css to have colors for every token
Change the react code to turn the code into tokenized html.
Alternatively might use this:
https://www.npmjs.com/package/@uiw/react-codemirror
Then just give it the appropriate css files. That's what Jupyter uses.
VS Code version: 1.19.1
Python Extension version: 0.9.1
Python Version: 3.6.2 anaconda
OS and version: win10 version 1709 (build 17025.1000)
ctrl+enter does nothing
ctrl+enter executes "Run Selection/Line in Python Terminal" [ / python.execSelectionInTerminal ] context menu option and indexes cursor in editor to next line, i.e. like behavior with vscode R extension environment and with vs17 ide python script support.
Output from Python
output panel
Output from Console window
(Help->Developer Tools menu)
When running a cell in python:
Jupyter not being installed
interactive window
We'd probably want to capture telemetry on how many people tried this and didn't have Jupyter installed (so we can improve the getting started experience).
#%%
print("one")
#%%
print("two")
#%%
print("one")
#%%
print("two")
We need something to show jupyter is starting up
Current spec:
/ Starting Jupyter Server with spinning '/' as shown in the status bar.
We should also start jupyter server as soon as we detect code cells.
When using a python file as a makeshift Jupyter notebook (with use of the VSCode Jupyter extension), valid ipython kernel code is flagged as invalid by the Python parser. For instance, cell magics, which begin with one or two percent signs, are flagged as syntax errors
The parser should ignore valid ipython cell magic syntax; flagging these as problems just adds noise. A good solution might be to have the Python extension have its own internal Jupyter flag, which when enabled would understand that ipython cell magics are syntactically correct, but when disabled would treat the file as vanilla Python for the purpose of checking syntax.
Write e.g., %matplotlib inline
at the top of the file.
Go to code
Using keyboard to selecting the command Import Jupyter Notebook
was displaying a Save Dialog
.
Interactive Window
click the Save
iconesc
keyImport Jupyter Notebook
Enter
key on keyboardSave Dialog
Cause - Save
icon in Interactive Window
still has focus.
Create a cell as follows:
#%% Wow
import sys
print(sys.executable)
I would expect the cell in the interative window
to have a title of Wow
.
Right now it displays the cell with the comments.
Currently we have the text #%% ...
being displayed in the interactive window, only when there's text after #%%
.
Interactive Widow
to appearInteractive Window
appearedWe should either not take up this space or display the Interactive Window
with previous sessions results or other.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.