profile
viewpoint

microsoft/vscode-tools-for-ai 238

Azure Machine Learning for Visual Studio Code, previously called Visual Studio Code Tools for AI, is an extension to easily build, train, and deploy machine learning models to the cloud or the edge with Azure Machine Learning service.

microsoft/python-program-analysis 19

A Typescript library for parsing Python 3 and doing basic program analysis, like forming control-flow graphs and def-use chains.

greazer/COVID-19 0

Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE

greazer/covid-19-data 0

An ongoing repository of data on coronavirus cases and deaths in the U.S.

greazer/curl 0

Curl is a tool and libcurl is a library for transferring data with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TFTP, SCP, SFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3, RTSP and RTMP. libcurl offers a myriad of powerful features

greazer/DirectX-Graphics-Samples 0

This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.

greazer/FliggerLogger 0

Arduino project to help me diagnose my light flicker problems

greazer/pipelines-javascript 0

Sample NodeJS app for Azure Pipelines docs

IanMatthewHuff/vscode-python 0

Python extension for Visual Studio Code

push eventmicrosoft/vscode-gather

Jim Griesmer

commit sha 5f3852405d079f6ffe2c3dc1707deaadd8c6dd2a

Update README.md

view details

push time in 2 days

PR opened microsoft/vscode-gather

Reviewers
Some suggestions...
+18 -5

0 comment

1 changed file

pr created time in 2 days

create barnchmicrosoft/vscode-gather

branch : greazer-patch-1

created branch time in 2 days

issue commentmicrosoft/vscode-python

Expansion of cell output windows

Please upvote if the workaround David supplied above doesn't work well for you.

bpops

comment created time in 2 days

issue closedmicrosoft/vscode-python

Add Vim feature for Jupyter Notebook

Feature: Notebook Editor, Interactive Window, Python Editor cells

Description

Vim support for Jupyter Notebook

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

closed time in 2 days

Matin-Moezi

issue commentmicrosoft/vscode-python

Add Vim feature for Jupyter Notebook

Thanks for your feedback. This issue will likely be addressed once VS Code adds native support for editing notebooks. Please see https://github.com/microsoft/vscode/issues/91987.

Matin-Moezi

comment created time in 2 days

issue closedmicrosoft/vscode-python

drag to save plot using white facecolor instead of transparent

2020.6.91350 (30 June 2020)

Description

Drag to save a plot onto my desktop will result a plot with None facecolor unlike saving a plot having a default white facecolor. The transparent facecolor makes plot axis really hard to read under dark mode.

demo

Meanwhile, I wish you guys could make the plot file names dynamic instead of "download.png", which you have to change every time when you wanna drag to save more than one plot.

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

closed time in 2 days

StevenLi-DS

issue commentmicrosoft/vscode-python

drag to save plot using white facecolor instead of transparent

Thanks for the feedback! However, we don't have plans on adding this functionality at this time. You can change your code to choose a different background color. We're not controlling how the png is generated.

StevenLi-DS

comment created time in 2 days

issue openedmicrosoft/vscode-python

When exporting to PDF, remove SVG's.

SVG's do not export to pdf by default. We should remove them before exporting. That should allow PNG's to be shown instead.

created time in 2 days

issue closedmicrosoft/vscode-python

Jupyter server sets incorrect session path, type and notebook name

Bug: Jupyter server sets incorrect session path, type and notebook name

The session data generated for servers started from VSCode heavily differs from those started from the command line and essential information like notebook name is missing. Although a name is given and the file is saved, the sessions just name them Untitled*.ipynb and the actual name gets lost.

Steps to cause the bug to occur

  1. Create a notebook and save it or open an existing jupyter notebook (e.g. test.ipynb)
  2. Run all cells
  3. To view vscode behavior, add and run the following cell
from notebook import notebookapp
from pprint import pprint
import urllib, json
for s in notebookapp.list_running_servers():
    pprint(json.load(urllib.request.urlopen(s['url']+'api/sessions?token=' + s['token'])))

Actual behavior

Realize that all sessions started from within VSCode have the following information set (showing only the diffs to the expected):

{
  'path': 'Untitled.ipynb', # successive notebooks are called Untitled2.ipynb, etc.
  'name': '<some hash>',
  'type': ''
}

Expected behavior

Attributes should be set according to sessions run from the command line via jupyter-notebook and fetched with

curl http://localhost:8888/api/sessions?token=<your token>

i.e.

{
  'path': 'test.ipynb',
  'name': '',
  'type': 'notebook',
  'notebook': {
    'path': 'test.ipynb',
    'name': ''
  }

Your Jupyter and/or Python environment

  • Jupyter server running: Local
  • Extension version: 2020.6.90262
  • VS Code version: 1.46.1
  • Setting python.jediEnabled: I don't have this setting
  • Setting python.languageServer: Jedi
  • Python and/or Anaconda version: 3.7.3
  • OS: Mac
  • Virtual environment: pyenv virtualenv

closed time in 2 days

kassi

issue commentmicrosoft/vscode-python

Jupyter server sets incorrect session path, type and notebook name

Thanks for the feedback! However, we don't have plans on adding this functionality at this time.

kassi

comment created time in 2 days

issue closedmicrosoft/vscode-python

Cannot open nbformat 2 or 3 notebooks

Bug: Notebook Editor

Note: this is reopening #7731 which is locked.

Steps to cause the bug to occur

Try opening a Jupyter notebook in NBFormat v2 or v3.

Actual behavior

File is closed immediately and an error notification is shown:

test2.ipynb is not a valid notebook file. Check the file for correct json.

Expected behavior

Either open the file in the notebook editor (preferred) or offer the option of opening the file as JSON. As is, there is no way to open this file in VSCode at all if the Python extension is installed.

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: N/A
  • Extension version: 2020.6.90262
  • VS Code version: 1.45.1
  • Setting python.jediEnabled: false
  • Setting python.languageServer: Jedi
  • Python and/or Anaconda version: 3.6.10
  • OS: Linux (Debian):
  • Virtual environment: conda

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

closed time in 2 days

kynan

issue commentmicrosoft/vscode-python

Cannot open nbformat 2 or 3 notebooks

Thanks for the feedback! However, we don't have plans on adding this functionality at this time.

kynan

comment created time in 2 days

issue commentmicrosoft/vscode-python

python language server process is not ended after using Ctrl+Q

@gokturksm, in your repro, you indicate that the first time you try to execute your code in the interactive window it's blank. Do you repro that every time? This is likely a different bug and one that we've been chasing a repro for for a while.

gokturksm

comment created time in 2 days

issue commentmicrosoft/vscode-python

Conda/Jupyter issue error: "StdErr from ShellExec, 'Analysis'..."

@BiancaAU1, sorry you're having so much trouble. Looks like you and David have tried a couple things that seemed reasonable. I have a couple other suggestions.

  1. Be sure to install VS Code if it's still uninstalled.
  2. Start the Anaconda prompt you've been having trouble with.
  3. type 'set path<enter>' and send the results. This will show you the path that your command prompt is actually using. Seems like it's not what we think it is.

You can verify if code can be found in the path from that same command prompt by running: 'where code<enter>'

Assuming that indeed code is not on the Anaconda prompt path, this likely means the error you get about "'Analysis' not being recognized..." is key. I'm not sure what 'Analysis' its talking about but because it can't be found, the path for that command prompt isn't getting set correctly.

What build of miniconda are you installing? If you're willing, it would be interesting to try installing the full version of Anaconda to see if it's command prompt works correctly.

BiancaAU1

comment created time in 4 days

issue openedmicrosoft/vscode-python

PM signoff for trusted notebook

created time in 5 days

issue openedmicrosoft/vscode-python

PM Signoff Export to HTML/PDF/py

created time in 5 days

pull request commentmicrosoft/vscode-python

Issue 12414 python interactive cell editing shortcuts

@earthastronaut Thanks for doing this! We will take a look and let you know next steps!

earthastronaut

comment created time in 5 days

issue commentmicrosoft/vscode-python

Spike swallowing debug messages for DS

This surely will come up later when and if we ever need it (if it hasn't already been handled)

jmew

comment created time in 5 days

issue closedmicrosoft/vscode-python

DS: Support debugging native Jupyter editor cells

https://microsoft.sharepoint.com/:w:/t/python/EVzOz9w_F-pMnYqNGdCNDO4B2x4K8Es8HlRprIRUKYONfQ?e=3dgCzw

closed time in 5 days

greazer

issue commentmicrosoft/vscode-python

DS: Support debugging native Jupyter editor cells

This will be addressed once VS Code adds native support for editing notebooks. See https://github.com/microsoft/vscode/issues/91987.

greazer

comment created time in 5 days

issue commentmicrosoft/vscode-python

Additional telemetry for start page

I think we should already have the command-palette telemetry. We should be getting that by default for any and all commands.

jmew

comment created time in 5 days

issue commentmicrosoft/vscode-python

Make Interactive Windown Output Like the Visual Debugger Tab

Hi @AeneasZhu, we have been mulling over additional changes to the debugging experience for the interactive window and this suggestion is on our radar again. However, I'd like some clarification. In your suggestion, are you specifically talking mainly text based output to appear in the popup window when you hover? In other words, if you hover over a variable that contains a float you see the actual value of that variable. If you hover over a pandas dataframe you see the rows and columns of data in the df?
OR Are you also wanting to see other visualizations such as plots when you hover over a "figure" variable from plotly or matplotlib?

I believe you're mainly talking about just text based output. Please let us know.

AeneasZhu

comment created time in 5 days

push eventgreazer/covid-19-data

greazer

commit sha b0adf58dc252a1e9838884df8bec39dbd3c59a0e

Fixup to ensure all graphs are shown

view details

push time in 6 days

push eventgreazer/covid-19-data

greazer

commit sha c0752cfcc4eb2bdb2a3fc89b8e1cf577be69872e

more

view details

greazer

commit sha a3278b9c7dd4721e63ca80c6ee5564d348fd4d14

Save off at least one version of the notebook

view details

NYTimes Covid-19 Data Bot

commit sha 29dd87e879e95d7681b9aa308f83c0bb88971dc1

Updated live/us.csv

view details

NYTimes Covid-19 Data Bot

commit sha 35efa32511928226e1be6ad7c6606b9d6ad2ec5c

Updated live/us-states.csv

view details

NYTimes Covid-19 Data Bot

commit sha 413f47883dde2b05036e8b6551b8f14f4b1de732

Updated live/us-counties.csv

view details

NYTimes Covid-19 Data Bot

commit sha 0a76b190bd78ac1058256fcaae929e8f680d53a0

Updated live/us.csv

view details

NYTimes Covid-19 Data Bot

commit sha 145b9433ad43e8527cb8201e5f0286629e282cf8

Updated live/us-states.csv

view details

NYTimes Covid-19 Data Bot

commit sha 8deb8f17b8533c4a5ea1246f9aafaa366f9ed0c1

Updated live/us-counties.csv

view details

NYTimes Covid-19 Data Bot

commit sha 39f1e94ffec92ac5a14421fef4cb49aca8cd3ac8

Updated live/us.csv

view details

NYTimes Covid-19 Data Bot

commit sha 673d9d4dbc740a6700c3995567ee309e4a3c48a8

Updated live/us-states.csv

view details

NYTimes Covid-19 Data Bot

commit sha 43fa1c5efa0235574f3eecab2bad35841796e082

Updated live/us-counties.csv

view details

Albert Sun

commit sha 968c741c4092e5db9c44ad0d65aa9242b1ef561c

New data for 6/11.

view details

NYTimes Covid-19 Data Bot

commit sha 819495486baca829fb43503d55e7f8791bdfe971

Updated live/us.csv

view details

NYTimes Covid-19 Data Bot

commit sha 7161eedd94a7250b70e8d062b24e802dc7466797

Updated live/us-states.csv

view details

NYTimes Covid-19 Data Bot

commit sha 514e1a5fa38b24d13a5a371d6fe78e31f9dc2323

Updated live/us-counties.csv

view details

NYTimes Covid-19 Data Bot

commit sha 88553fcedc76f6acf4e89037226ef929b40ff7af

Updated live/us.csv

view details

NYTimes Covid-19 Data Bot

commit sha 2b52ce668b31632d1e8872992c4f94639cf489ee

Updated live/us-states.csv

view details

NYTimes Covid-19 Data Bot

commit sha 7a8c83672b5d3955d9ae86f5405057dd304acd41

Updated live/us-counties.csv

view details

NYTimes Covid-19 Data Bot

commit sha 1774460a6f74c9cc8265c4fd8c991e466c45c96d

Updated live/us.csv

view details

NYTimes Covid-19 Data Bot

commit sha 19e769a1215c1f3d325a87bcc7732f14a03fd0db

Updated live/us-states.csv

view details

push time in 6 days

issue commentmicrosoft/vscode-python

Notebooks and interactive window don't start. t.Subscriber is not a constructor.

Hey cripcate, sorry for the trouble! Thanks for the console output, it does provide a hint as to what might be going wrong for you. Can I assume that notebooks/interactive was working for you before the last release, or maybe even earlier this week? The reason I ask is because we recently made changes to how we start python kernels in the background and we are slowly rolling it out. It appears you have been randomly selected to be part of this rollout and now you're seeing this problem. We are very interested in getting to the bottom of this problem, so we would appreciate as much information as we can get from you while we investigate.

But in the meantime, you can opt out of using the new kernel startup by adding this to your user settings:

    "python.experiments.optOutFrom": [
        "LocalZMQKernel - experiment"
    ]

cc/@IanMatthewHuff

cripcate

comment created time in 8 days

issue openedmicrosoft/vscode-python

June 2020 Point Release

created time in 9 days

issue closedmicrosoft/vscode-python

Dataviewer cannot handle MultiIndex

Issue Type: <b>Bug</b>

The dataviewer tab cannot show the index of a dataframe with a multiindex properly. While in the interactive python tab it is rendered as it is in Jupyter, in the dataviewer tab it shows hashes for the index, making it quite useless.

idx = pd.MultiIndex.from_product(
    [['bar', 'foo'], ['one', 'two']], names=['first', 'second']
)
df = pd.DataFrame(np.random.randn(4, 2), index=_idx)

The above is rendered in the dataviewer tab as:

vscode-python

I expect to see it rendered something like:

vscode-python

as it does for the interactive python tab.

Extension version: 2019.6.24221 VS Code version: Code - Insiders 1.37.0-insider (8fa811108f0f0524c473020ef57b6620f6c201e1, 2019-07-12T09:18:33.949Z) OS version: Linux x64 5.1.17-300.fc30.x86_64 Remote OS version: Linux x64 5.1.18-300.fc30.x86_64

<details> <summary>System Info</summary>

Item Value
CPUs AMD Ryzen 5 2400G with Radeon Vega Graphics (8 x 2908)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: disabled_software<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: disabled_software<br>skia_deferred_display_list: disabled_off<br>skia_renderer: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: unavailable_off<br>viz_display_compositor: disabled_off<br>webgl: enabled<br>webgl2: enabled
Load (avg) 2, 1, 1
Memory (System) 29.45GB (0.63GB free)
Process Argv --unity-launch
Screen Reader no
VM 0%
Item Value
Remote SSH: <remote>
OS Linux x64 5.1.18-300.fc30.x86_64
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 2169)
Memory (System) 7.68GB (4.77GB free)
VM 0%

</details> <!-- generated by issue reporter -->

closed time in 9 days

suvayu

issue commentmicrosoft/vscode-python

Dataviewer cannot handle MultiIndex

Dupe of #11024

suvayu

comment created time in 9 days

issue closedmicrosoft/vscode-python

DataViewer is empty when you have a dataframe with just column headers

If you have a dataframe with just columns, and open it up in the dataviewer, the page is just blank.

Expected: show only the column headers

image

Low priority

closed time in 9 days

jmew

issue closedmicrosoft/vscode-python

When a variable in the variable explorer is updated, update open dataviewers

If you have a dataframe open in the data viewer, and modify the dataframe in the notebook, the changes dont get propagated to the data viewer unless you close and open it again

closed time in 9 days

jmew

issue closedmicrosoft/vscode-python

Copy text from Data Viewer cells

Description

it would be super-nice to be able to copy text of the selected cells

closed time in 9 days

veonua

issue commentmicrosoft/vscode-python

Copy text from Data Viewer cells

Dupe of #5275

veonua

comment created time in 9 days

issue closedmicrosoft/vscode-python

If the JSON for the notebook has invalid format and cannot be parsed, VSCode won't allow me to open file to edit it

Bug: Notebook Editor, Interactive Window, Editor cells

<!----------------------------------------------------------------------------------------------- PLEASE READ If this issue doesn't relate to Jupyter Notebooks, Python Interactive Window features or other notebook or "cell"-based features of the Python extension, please use the main Python bug template instead of this one. Thank you! ------------------------------------------------------------------------------------------------->

Steps to cause the bug to occur

  1. I had a merge conflict which caused JSON formatting to be incorrect and it could not be parsed.

Actual behavior

VSCode tries to open .ipynb file as a interactive Notebook, but when it can't, it closes the file

Expected behavior

I would have expected it to open the file as a raw JSON ipynb file so I can fix the merge conflict or edit the document in general. Turning on "interactive notebook mode" should be an option to validate.

<!----------------------------------------------------------------------------------------------- Animated GIFs can be effective means to describe a bug. Consider using a tool like https://github.com/phw/peek or https://www.screentogif.com/ to create one. ------------------------------------------------------------------------------------------------->

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local
  • Extension version: v2020.6.90262
  • VS Code version: 1.47 Insider
  • Setting python.jediEnabled: false
  • Setting python.languageServer: Microsoft
  • Python and/or Anaconda version: 3.8.1
  • OS: Windows
  • Virtual environment: virtualenv

Developer Tools Console Output

<!----------------------------------------------------------------------------------------------- Copy/paste the output in the "Console" tab in the "Developer Tools" panel (Help > Toggle Developer Tools). For better details, run the "Enable source map support for extension debugging" command in VS Code at least once beforehand. ------------------------------------------------------------------------------------------------->

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

closed time in 9 days

paledger

issue commentmicrosoft/vscode-python

If the JSON for the notebook has invalid format and cannot be parsed, VSCode won't allow me to open file to edit it

Thanks for your feedback. This issue will likely be addressed once VS Code adds native support for editing notebooks. Please see https://github.com/microsoft/vscode/issues/91987.

paledger

comment created time in 9 days

issue closedmicrosoft/vscode-python

No docs on using native notebooks

Hi. I'm using vscode insiders and from the looks of it the native notebook support for ipnbs has been added in the extensions, but there's no documentation on how to enable it.

closed time in 9 days

Matelasse

issue commentmicrosoft/vscode-python

No docs on using native notebooks

@Matelasse, we will be publishing instructions in the near future on the python blog.

Matelasse

comment created time in 9 days

issue closedmicrosoft/vscode-python

Jupyter Notebook editor not opening

Issue Type: <b>Bug</b>

Not sure what changed but after using Jupyter Notebook for some time in VS code the notebook editor stopped opening. I'm not sure how to reproduce this issue but now I can't use notebooks in VS Code.

I confirmed it is is not working locally or on a remote session.

Extension version: 2020.6.89148 VS Code version: Code - Insiders 1.47.0-insider (0913b1aa43191d8af0ccb4a133d9a8d7c1a81d69, 2020-06-23T09:03:35.861Z) OS version: Windows_NT x64 10.0.17134 Remote OS version: Linux x64 3.10.0-327.3.1.el7.x86_64

<details> <summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>opengl: enabled_on<br>protected_video_decode: enabled<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>webgl: enabled<br>webgl2: enabled
Load (avg) undefined
Memory (System) 15.88GB (9.38GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote SSH: talon3
OS Linux x64 3.10.0-327.3.1.el7.x86_64
CPUs Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz (28 x 2399)
Memory (System) 62.81GB (6.81GB free)
VM 0%

</details> <!-- generated by issue reporter -->

closed time in 9 days

constant5

issue closedmicrosoft/vscode-python

Python interactive window not working!

Issue Type: <b>Bug</b>

Python interactive stopped working just after updating to the current insider build. Disabled all other extensions except for python, updated python extension, reset all python extension settings to default, restarted my computer, etc. Nothing seems to be working. Its stuck at "Executing Cell" status and the "Python Interactive" window frame is completely blank.

Steps to reproduce:

  1. Open any .py file with "#%%" for marking cells.
  2. Execute any cell.

image

image

VS Code version: Code - Insiders 1.47.0-insider (0913b1aa43191d8af0ccb4a133d9a8d7c1a81d69, 2020-06-23T09:03:35.861Z) OS version: Windows_NT x64 10.0.18363

<details> <summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 x 3696)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>opengl: enabled_on<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>webgl: enabled<br>webgl2: enabled
Load (avg) undefined
Memory (System) 63.84GB (55.76GB free)
Process Argv D:\OneDrive - NTNU\0.3. Codes & Workspaces\4. SSW DTU\SLy-CalmW
Screen Reader no
VM 0%

</details><details><summary>Extensions (1)</summary>

Extension Author (truncated) Version
python ms- 2020.7.89046-dev

</details> <!-- generated by issue reporter -->

closed time in 9 days

PrateekArya

issue commentmicrosoft/vscode-python

Python interactive window not working!

We believe this has been resolved.

PrateekArya

comment created time in 9 days

issue commentmicrosoft/vscode-python

Remote connections should be cleaned up on notebook dispose

Before doing this, think about the ramifications. In triage we were thinking there may be a reason we wanted to keep this behavior.

rchiodo

comment created time in 9 days

issue commentmicrosoft/vscode-python

How to add "run selection/line in python interactive" to Shortcut run

@SissiYuan, we believe you are asking for a toolbar button on the editor toolbar to run a selection or line in the interactive window. Please verify this.

SissiYuan

comment created time in 9 days

issue closedmicrosoft/vscode-python

Unable to connect to JupyterLab

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. I am trying to connect to an already opened (on a remote machine inside docker container) JupyterLab. I am able to connect to it in the browser and it works perfectly fine. To do so, I am using Python: Specify Jupyter server URI command, just as described here.

Actual behavior

After inserting an URL (again, that is working in my browser as a regular tab), I am getting the following error:

Command 'Python: Specify local or remote Jupyter server for connections' resulted in an error (Unable to write to Workspace Settings because no workspace is opened. Please open a workspace first and try again.)

Expected behavior

Connecting to a JupyterLab

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Remote
  • VS Code version: 1.45
  • OS: Windows

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

closed time in 9 days

SergeyTsimfer

issue commentmicrosoft/vscode-python

Unable to connect to JupyterLab

Thanks for the feedback! However, we don't have plans on adding this functionality at this time.

SergeyTsimfer

comment created time in 9 days

issue closedmicrosoft/vscode-python

jupyter automatic indentation does not work after vscode update to 1.45.1

Jupyter automatic indentation does not work after vscode update to 1.45.1.

version: 1.45.1 (user setup) commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a date: 2020-05-14T08:27:35.169Z Electron: 7.2.4 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18363

closed time in 9 days

CatNofishing

issue commentmicrosoft/vscode-python

jupyter automatic indentation does not work after vscode update to 1.45.1

Dupe of https://github.com/microsoft/vscode-python/issues/12389

CatNofishing

comment created time in 9 days

issue closedmicrosoft/vscode-python

Interactive python cellFactory inconsitency in cell definition

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

Three functions within cellFactory have similar output to divide up text into different "cells". In particular, generateCellRangesFromDocument, generateCellsFromDocument, and generateCellsFromString.

  1. run in debug mode
  2. set breakpoint in cellFactory.generateCellsFromDocument (or elsewhere)
  3. execute each of the functions against document text

used some helper functions

function getCellRange(cell: ICell): Range {
    const line = cell.line;
    const code = cell.data.source;

    let codeLines: string[] = [];
    if (typeof code === 'string') {
        codeLines = [code];
    } else {
        codeLines = code;
    }
    const start = new Position(line, 0);
    let end: Position;
    if (code.length === 0) {
        end = new Position(line, 0);
    } else {
        end = new Position(line + codeLines.length - 1, codeLines[codeLines.length - 1].length);
    }
    return new Range(start, end);
}

function formatRange(range: Range): string {
    return `${range.start.line}:${range.start.character} > ${range.end.line}:${range.end.character}`;
}

const cellRangesFromDocument_s = generateCellRangesFromDocument(document, settings).map((cellRange) => {return cellRange.range}).map(formatRange);
const cellsFromDocument_s = generateCellsFromDocument(document, settings).map(getCellRange).map(formatRange);
const cellsFromString_s = generateCellsFromString(document.getText(), settings).map(getCellRange).map(formatRange);

Actual behavior

Each function divides up the code slightly differently.

Tested with a document like this


# %%
import re
apple = 1
banana = 2
carrot = 3

# %% [markdown] extra
# hello
a = 10

# hello markdown
# * more text

# %% [markdown] extra
# # Testing
 
# Testing how markdown works
#


# %%
apple = 1
banana = 2
carrot = 3
# %%

# %%
a = 2

Each function split into cells ("{start_line}:{start_character} > {end_line}:{end_character}")

cellRangesFromDocument_s
Array(6) ["1:0 > 6:0", "7:0 > 13:0", "14:0 > 20:0", "21:0 > 24:10", "25:0 > 26:0", "27:0 > 29:0"]
cellsFromDocument_s
Array(6) ["1:0 > 6:0", "7:0 > 9:12", "14:0 > 16:0", "21:0 > 24:10", "25:0 > 26:0", "27:0 > 29:0"]
cellsFromString_s
Array(6) ["2:0 > 7:0", "8:0 > 10:12", "15:0 > 17:0", "22:0 > 25:10", "26:0 > 27:0", "28:0 > 30:0"]
  • generateCellsFromString returns Cell.line that starts after the # %% definition line. Different from generateCellsFromDocument which line refers to the definition line
  • generateCellsFromDocument uses and is similar to generateCellRangesFromDocument but defines markdown cells differently.

Expected behavior

  • Expected a singular definition of a "cell", which line it starts at and which line/character it ends at.
    • Probably use only the ICell interface but with a range instead of line.
  • It appears that generateCellRangesFromDocument has the most correct definition though there is some confusion about how to handle markdown cells with non comment lines.

Your Jupyter and/or Python environment

  • Jupyter server running: Local
  • Extension version: 2020.7.0-dev
  • VS Code version: 1.46.0
  • Setting python.jediEnabled: (default)
  • Setting python.languageServer: Jedi
  • Python and/or Anaconda version: 3.7.7
  • OS: Mac
  • Virtual environment: virtualenv

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

closed time in 9 days

earthastronaut

issue commentmicrosoft/vscode-python

Interactive python cellFactory inconsitency in cell definition

Thanks for the feedback! Sounds like this has been resolved.

earthastronaut

comment created time in 9 days

issue closedmicrosoft/vscode-python

Missing indent after colon

I'm working in jupyter notebooks, and suddenly a strange indent appeared from the left (it's the first problem), and while writing a code, when i press 'enter' after a colon, an indent doesn't work and i must do it manually with 'tab' button Снимок

closed time in 9 days

Grendaizo90

issue commentmicrosoft/vscode-python

Missing indent after colon

This is a dupe of #12389

Grendaizo90

comment created time in 9 days

delete branch microsoft/vscode-python

delete branch : greazer-bump-rawkernel-experiment

delete time in 9 days

push eventmicrosoft/vscode-python

Jim Griesmer

commit sha 2f5234a3bdd387d3bb26831cd63f49fce34f3a1a

Update experiments.json (#12573)

view details

push time in 9 days

PullRequestEvent

create barnchmicrosoft/vscode-python

branch : greazer-bump-rawkernel-experiment

created branch time in 9 days

push eventmicrosoft/vscode-python

Jim Griesmer

commit sha 53c3fc6231adc2dd4edd8deeca207f4943f4d044

Update experiments.json (#12524) All required steps passed.

view details

push time in 11 days

delete branch microsoft/vscode-python

delete branch : greazer-fix-rawkernel-experiment

delete time in 11 days

PR merged microsoft/vscode-python

Reviewers
Update experiments.json for raw kernel experiment skip news

Trivial fix to ensure we have min and max such that min's number is actually less than max's. :D

+2 -2

2 comments

1 changed file

greazer

pr closed time in 11 days

PR opened microsoft/vscode-python

Update experiments.json for raw kernel experiment

Trivial fix to ensure we have min and max such that min's number is actually less than max's. :D

+2 -2

0 comment

1 changed file

pr created time in 11 days

create barnchmicrosoft/vscode-python

branch : greazer-fix-rawkernel-experiment

created branch time in 11 days

issue commentmicrosoft/vscode-tools-for-ai

Evaluate reducing max-line-length in the project

I haven't written a bunch of code in AzML extension for a while, but if you default it to 80, I'll quit. You guys know I'm pretty easy going and can accept a lot of things, but 80 is ridiculously and unacceptably small. If it were me (and it's not, I realize), I would keep it on the high side... say 160. Actually if it were me, I wouldn't have a maximum line length. I find it pointless. To me, a good software engineer "knows" when a line is getting too long.

How's that for an opinion?

I'll let you guys hash it out though. 😄


From: Sergio Villalobos notifications@github.com Sent: Tuesday, June 23, 2020 12:50 PM To: microsoft/vscode-tools-for-ai vscode-tools-for-ai@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [microsoft/vscode-tools-for-ai] Evaluate reducing max-line-length in the project (#667)

Discuss with the team the preference on max-line-length.

Prettier default: 80

Commonly used values: 120, 140

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-tools-for-ai%2Fissues%2F667&data=02|01|Jim.Griesmer%40microsoft.com|1a8c72a9a26842efa65808d817aeae1c|72f988bf86f141af91ab2d7cd011db47|1|0|637285386294357375&sdata=KHIPLqncCG6ML%2F7LMZSgFJfQ2P%2FdA6UMwIUPMUwJb9Q%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACZE4IEWE77OOO4U2HRNAYTRYEBQJANCNFSM4OF7QE2Q&data=02|01|Jim.Griesmer%40microsoft.com|1a8c72a9a26842efa65808d817aeae1c|72f988bf86f141af91ab2d7cd011db47|1|0|637285386294357375&sdata=LVB%2BItt2GVZpHdYki4FplVKYZjhgDui%2BEGDxD6CtYHg%3D&reserved=0.

sevillal

comment created time in 11 days

issue commentmicrosoft/vscode-python

'type()' function not returning anything

cc/ @rchiodo @IanMatthewHuff @DonJayamanne @DavidKutu @joyceerhl

gottogethelp

comment created time in 16 days

issue commentmicrosoft/vscode-python

'type()' function not returning anything

@gottogethelp, Can you please provide a bit more detail as to exactly how your running this script? We have been unable to reproduce the problem in a VS Code notebook or using the interactive window.

gottogethelp

comment created time in 16 days

issue closedmicrosoft/vscode-python

cant use fairlearn in visual studio code

Bug: Notebook Editor, Interactive Window, Editor cells

<!----------------------------------------------------------------------------------------------- PLEASE READ If this issue doesn't relate to Jupyter Notebooks, Python Interactive Window features or other notebook or "cell"-based features of the Python extension, please use the main Python bug template instead of this one. Thank you! ------------------------------------------------------------------------------------------------->

Steps to cause the bug to occur

Actual behavior

Expected behavior

<!----------------------------------------------------------------------------------------------- Animated GIFs can be effective means to describe a bug. Consider using a tool like https://github.com/phw/peek or https://www.screentogif.com/ to create one. ------------------------------------------------------------------------------------------------->

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local | Remote | N/A
  • Extension version: 20YY.MM.#####-xxx
  • VS Code version: #.##
  • Setting python.jediEnabled: true | false
  • Setting python.languageServer: Jedi | Microsoft | None
  • Python and/or Anaconda version: #.#.#
  • OS: Windows | Mac | Linux (distro):
  • Virtual environment: conda | venv | virtualenv | N/A | ...

Developer Tools Console Output

<!----------------------------------------------------------------------------------------------- Copy/paste the output in the "Console" tab in the "Developer Tools" panel (Help > Toggle Developer Tools). For better details, run the "Enable source map support for extension debugging" command in VS Code at least once beforehand. ------------------------------------------------------------------------------------------------->

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

closed time in 16 days

willgart

issue closedmicrosoft/vscode-python

Hot exit in VSC Notebook and custom editor do not work as expected

Basically the hoteixt file gets deleted. Only applies to custom editor and VSC Notebooks.

closed time in 16 days

DonJayamanne

issue closedmicrosoft/vscode-python

Kernel not created with the name python38364bit

Bug: Notebook Editor, Interactive Window, Editor cells

<!----------------------------------------------------------------------------------------------- PLEASE READ If this issue doesn't relate to Jupyter Notebooks, Python Interactive Window features or other notebook or "cell"-based features of the Python extension, please use the main Python bug template instead of this one. Thank you! ------------------------------------------------------------------------------------------------->

Steps to cause the bug to occur

1.open python file in vscode 1.46 2.open context menu and click 'Run current file in pytthon interactive window' 3.error occured with: Kernel not created with the name python38364bitcd6122aef71d4519826b67f7226332d6, display_name Python 3.8.3 64-bit. Output is Installed kernelspec python38364bitcd6122aef71d4519826b67f7226332d6 in C:\Users\dell\AppData\Roaming\jupyter\kernels\python38364bitcd6122aef71d4519826b67f7226332d6

Actual behavior

Expected behavior

<!----------------------------------------------------------------------------------------------- Animated GIFs can be effective means to describe a bug. Consider using a tool like https://github.com/phw/peek or https://www.screentogif.com/ to create one. ------------------------------------------------------------------------------------------------->

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local | Remote | N/A
  • Extension version: 20YY.MM.#####-xxx
  • VS Code version: #.##
  • Setting python.jediEnabled: true | false
  • Setting python.languageServer: Jedi | Microsoft | None
  • Python and/or Anaconda version: #.#.#
  • OS: Windows | Mac | Linux (distro):
  • Virtual environment: conda | venv | virtualenv | N/A | ...

Developer Tools Console Output

<!----------------------------------------------------------------------------------------------- Copy/paste the output in the "Console" tab in the "Developer Tools" panel (Help > Toggle Developer Tools). For better details, run the "Enable source map support for extension debugging" command in VS Code at least once beforehand. ------------------------------------------------------------------------------------------------->

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

closed time in 16 days

acrobatman

issue commentmicrosoft/vscode-python

Kernel not created with the name python38364bit

This is a dupe of #11412

acrobatman

comment created time in 16 days

issue closedmicrosoft/vscode-python

Default hotkey to run selected code in interactive terminal sends code to python terminal

Steps to cause the bug to occur

  1. Select PY code in editor
  2. Press SHIFT-ENTER

Actual behavior

Code runs in python terminal.

Expected behavior

Code should run in the interactive window. Note if selecting from the command palette the code does run in Integrated terminal. It's just the hotkey that isn't working (Default : SHIFT+ENTER) <!----------------------------------------------------------------------------------------------- Animated GIFs can be effective means to describe a bug. Consider using a tool like https://github.com/phw/peek or https://www.screentogif.com/ to create one. bug

------------------------------------------------------------------------------------------------->

Your Jupyter and/or Python environment

Name Version Build Channel

jupyter 1.0.0 py38_7 jupyter_client 6.1.3 py_0 jupyter_console 6.1.0 py_0 jupyter_core 4.6.3 py38_0

VS Code Python 64bit 3.8.3 Version: 1.46.0 (user setup) Commit: a5d1cc28bb5da32ec67e86cc50f84c67cc690321 Date: 2020-06-10T09:03:20.462Z Electron: 7.3.1 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18363

Please provide as much info as you readily know

  • Jupyter server running: Local |
  • Extension version: v2020.5.86806
  • VS Code version: 1.46.0
  • Setting python.jediEnabled: True
  • Setting python.languageServer: Jedi
  • Python and/or Anaconda version: Python 3.8.3, Conda 4.8.3
  • OS: Windows | Mac | Linux (distro): Windows
  • Virtual environment: conda

Developer Tools Console Output

<!----------------------------------------------------------------------------------------------- console.log

------------------------------------------------------------------------------------------------->

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

closed time in 16 days

leehbi

issue commentmicrosoft/vscode-python

Default hotkey to run selected code in interactive terminal sends code to python terminal

@leehbi, let us know if this didn't work for you. :)

leehbi

comment created time in 16 days

issue commentmicrosoft/vscode-python

Cannot connect to Jupyter server on AML compute instance from within VS Code

As part of this, include anything related to:

  • Spark
  • JupyterHub
  • Facebook (if we can find further details. This should not block this bug from being completed though)
SiddhanthUnnithan

comment created time in 17 days

issue commentmicrosoft/vscode-python

Ideas for improving the Python Interactive experience (Python scripts with # %% cell definitions)

Thanks for all the great feedback! The biggest takeaway I'm getting from this is that the interactive experience could literally be a replacement for notebook development, IF it supported/emulated some of the same experiences that are possible in a notebook. In addition, @earthastronaut, your closing thought is really interesting new idea about enabling a mix of standard python script with embedded "cells". I'm generalizing your suggestion beyond just doing it for the if..main.. block, say for example if you could define a function and within that function have a concept of cells. This sounds like it could become a complicated problem, but I believe it's worth thinking about.

I'm going to turn this issue into one that is specifically designed to exist as an "idea-factory" for things we could do to make the current script cell experience more powerful and useful. From this issue, ideas that have merit for further investigation should be pulled out into separate issues.

The notebook-specific feedback here is covered by what @rchiodo said above -- those limitations will be addressed when we finally can move to the VS Code native notebook API.

Yura52

comment created time in 17 days

issue closedmicrosoft/vscode-python

Investigate using new vscode experiment service

There is a new vscode experiment service that we could consider using ipykernel if we have time. Info pasted from e-mail below.

Hi All,

I hope this will be an appropriate inaugural post to this DL.

tl;dr You can now run controlled experiments for VS Code extensions with a few lines of code.

We just wrapped up work on integrating the Live Share VS Code extension with the ExP platform and I thought I would share because this work should be easily reusable by other teams looking to run controlled experiments (it’s already being reused by IntelliCode!).

Some background on the ExP Platform: Built and maintained by the Analysis and Experimentation (A&E) team designed to enable products across Microsoft (including Bing, XBox, Office, and Visual Studio) to run and analyze large-scale and trustworthy controlled experiments. If you've run an experiment in Visual Studio, you're already familiar with it. It provides two important capabilities: · A treatment assignment service (TAS) – a service that will assign users to different experiments and experiment groups – and a web app for defining experiments to be used by the TAS. · A system for defining and generating scorecards – a set of metrics computed for all groups and segments in an experiment.

Before going into details of the integration and how to leverage it, it’s probably helpful to make things more concrete by showing the e2e of running an experiment:

· Define the experiment in control tower – name the experiment and specify different phases and the populations each phase targets. You can specify traffic filters (e.g. only target users on VS Code 1.41) and what percent of the eligible population you want placed in your experiment. Example experiment.

· Have your code check if the user is part of the experiment (more info on how to get an instance of expService below).

· Generate a scorecard and see if you moved the metrics you wanted to move, while not moving the ones you didn’t.

A few nice things: · Ensures users are correctly distributed between treatment and control, even with multiple experiments running simultaneously. · Traffic filters. E.g. we can release an experiment to users on our team, then to MSFT internal users, then to our insiders ring, then to the public. All from control tower. · Remote control. We can remotely shut-off an experiment with no code changes. This + traffic filters makes this a great setup for feature rollouts. · Scorecards -Don't need to manually run Kusto queries. Also ensures that you're looking holistically at the effects of your experiment, instead of only considering a single metric. -Baked-in statistical analysis. -Segments – metrics can be sliced to different cohorts of users.

The work of integrating with the ExP Platform consisted of: Setting up a new ExP tenant for VS Code (so experiments defined for VS Code don't land in other products and vice versa). Writing a node client library for communicating with the TAS. Writing a VS Code-specific library that consumes the previously mentioned generic library and provides VS Code implementations of some of the generic interfaces. Setting up a scorecard.

All of this can be reused by other VS Code extensions with the exception of the scorecard, although I'd be happy to provide some guidance on how to go about setting one up, as would the folks who helped me set one up (thanks @Julie Stevenson and @Amy Hartwig!).

Appendix How to consume the TAS node package: Add a reference to it. Initialize it. You need to pass in your extension name and version, the population the user is a part of (Team, Internal, Insider, or Public), an implementation of IExperimentationTelemetry (methods for sending a telemetry event and setting a shared property), and the extension context (so we can use the memento storage for your extension to cache experiment info). Call isFlightEnabledAsync (makes a call to the TAS) or isCachedFlightEnabled (reads cached experiment data, updated in the background every 30 minutes) on the experimentation service using the same flight names you specified when you set up the experiment in control tower. Based on the result, go down the treatment or control code path.

I’d love to help you leverage this work, so please reach out if you’re interested.

Best,

Dayton

closed time in 17 days

IanMatthewHuff

issue closedmicrosoft/vscode-python

LiveShare test that uses RawKernel

Make sure one of our liveshare tests uses our rawkernel implementation

closed time in 17 days

IanMatthewHuff

delete branch microsoft/vscode-python

delete branch : greazer-test

delete time in 18 days

issue commentmicrosoft/vscode-python

Variable explorer pane "flashing" - refreshing with every click when run by line enabled

They want to watch variables changing. As it works right now, the scroll position is reset and the flash is distracting if they are just checking to see if a variable is changing.

claudiaregio

comment created time in 18 days

issue commentmicrosoft/vscode-python

Variable explorer pane "flashing" - refreshing with every click when run by line enabled

In our QPs, this came up over and over again. It makes it really difficult to use Run-by-line and actually see what's happening.

claudiaregio

comment created time in 18 days

push eventmicrosoft/vscode-python

greazer

commit sha 7fb1a87972693de71aad8eac8cb1f49f37ab495e

changes

view details

push time in 18 days

create barnchmicrosoft/vscode-python

branch : greazer-test

created branch time in 18 days

Pull request review commentmicrosoft/vscode-python

start page experiment and fixes

 export class StartPage extends WebViewHost<IStartPageMapping> implements IStartP         super.onMessage(message, payload);     } -    // This gets the most recent Enhancements and date from CHANGELOG.md-    // This is public for testing-    public async handleReleaseNotesRequest(): Promise<string[]> {-        const changelog = await this.file.readFile(path.join(EXTENSION_ROOT_DIR, 'CHANGELOG.md'));-        const changelogBeginning = changelog.indexOf('### Enhancements');-        const changelogEnding = changelog.indexOf('### Fixes', changelogBeginning);-        const startOfLog = changelog.substring(changelogBeginning, changelogEnding);--        const scrappedNotes = startOfLog.splitLines();-        return scrappedNotes-            .filter((line) => line.startsWith('1.'))-            .slice(0, 5)-            .map((line) => line.substr(3));-    }-     // Public for testing     public async extensionVersionChanged(): Promise<boolean> {         const savedVersion: string | undefined = this.context.globalState.get('extensionVersion');         const version: string = this.appEnvironment.packageJson.version;+        let shouldShowStartPage: boolean;          if (savedVersion && (savedVersion === version || this.savedVersionisOlder(savedVersion, version))) {             // There has not been an update-            return false;+            shouldShowStartPage = false;+        } else {+            shouldShowStartPage = true;         }          // savedVersion being undefined means this is the first time the user activates the extension.         // if savedVersion != version, there was an update         await this.context.globalState.update('extensionVersion', version);-        return true;+        return shouldShowStartPage;+    }++    // This gets the release notes from StartPageReleaseNotes.md+    private async handleReleaseNotesRequest(): Promise<string[]> {+        const releaseNotes = await this.file.readFile(path.join(EXTENSION_ROOT_DIR, 'StartPageReleaseNotes.md'));+        return releaseNotes.splitLines();     }      private async activateBackground(): Promise<void> {         const enabled = await this.expService.inExperiment(EnableStartPage.experiment);-        const editorContext = new ContextKey(EditorContexts.StartPageEnabled, this.commandManager);-        editorContext.set(enabled).ignoreErrors();         const settings = this.configuration.getSettings(); -        if (enabled && settings.showStartPage && this.appEnvironment.extensionChannel === 'insiders') {+        if (enabled && settings.showStartPage && this.appEnvironment.extensionChannel === 'stable') {

Why are we checking the extensionChannel at all? This is now saying that insiders won't get it, right?

DavidKutu

comment created time in 19 days

issue closedmicrosoft/vscode-python

Zooming into plots doesn't increase detail level

First of all I wanted to say the notebook support is really great, intuitive and easy use!

The problem I'm experiencing is that when using matplotlib to plot graphs, I can't zoom in to see more details, even in the dedicated plots view. I'm not sure whether this is a problem with matplotlib itself or with the extension.

Steps to cause the bug to occur

  1. Copy paste the following code into a jupyter notebook cell:
from matplotlib.pyplot import plot
from numpy import random
x = arange(1000) 
y = x + random.normal(0, 0.1, len(x))
plot(x, y)
  1. Run the cell
  2. Open the plots view
  3. Zoom in

Actual behavior

The level of detail remains the same: axes do not get extra marks and the plot line doesn't become finer.

image

Expected behavior

Zooming in should make it easier to see finer details.

Your Jupyter and/or Python environment

  • Jupyter server running: Local
  • Extension version: 2020.05.86806
  • VS Code version: 1.46.0
  • Setting python.jediEnabled: false
  • Setting python.languageServer: Microsoft
  • Python and/or Anaconda version: 3.8.3
  • OS: Windows
  • Virtual environment: virtualenv

closed time in 19 days

dan1994

issue commentmicrosoft/vscode-python

Zooming into plots doesn't increase detail level

Thanks for the feedback! However, we don't have plans on adding this functionality at this time. The way the plot viewer works is to just hold an SVG file at the resolution of the of the original plot. Therefore, no additional detail will be added or removed from the plot as you zoom in or out. We are considering making changes to how the plot viewer works in future version of the extension.

dan1994

comment created time in 19 days

issue closedmicrosoft/vscode-python

Clearing cell does not work when executing cell

  • Create a cell with the following code:
import time
for i in range(100):
	time.sleep(0.1)
	print(i)
  • Execute
  • Wait for output
  • Clear cell output

Expected behavior

  • Output should start streaming from when it was cleared.
  • I.e. if after printing the number 50, we clear, then we should only see output for 51,52,53, etc...

Current behavior

  • Output is cleared and everything starts all over again.
  • I.e. clearing in this case does absolutely nothing, as we print everything again.

In Jupyter it works the way as outlined in expected behavior.

closed time in 19 days

DonJayamanne

issue commentmicrosoft/vscode-python

Clearing cell does not work when executing cell

Fixed in VS Code API version. Not solving for old implementation

DonJayamanne

comment created time in 19 days

issue closedmicrosoft/vscode-python

Variable hover fetching triggers busy kernel

Saw this with both raw and jupyter. Repros when hovering in .py file or in a notebook / interactive window. Looks like fetching the hover triggers a quick busy state in the kernel, which I don't think that we had before.

VariableBusy.gif

closed time in 19 days

IanMatthewHuff
more