profile
viewpoint
Graham Wheeler gramster Microsoft United States https://www.linkedin.com/in/grahamwheeler Engineering Manager, Python & AI Tools, Microsoft Cloud & AI

gramster/Pascal 3

A Pascal compiler and p-code virtual machine

gramster/gc3 2

Gram's Commander 3 - a dual-pane file manager

gramster/Pascal2C 2

A Pascal-to-C convertor

gramster/comictagger 1

A cross-platform GUI/CLI app for writing metadata to digital comics (fork)

gramster/MIDITool 1

A very old MIDI sequencer I wrote in 1991

gramster/PEW 1

A Protocol Engineering Workbench - IDE, compiler, VM, interpreter, debugger for Estelle (Extended State Transition Language). This is old code; it probably compiles and runs command line tools on Unix, but the editor/IDE was written for MS-DOS.

gramster/backgammon 0

A Backgammon program I wrote in MS-DOS days

gramster/Cal 0

A command-line calendar reminder app

issue commentmicrosoft/pylance-release

Statements failed in pylance but passed in mypy again!!!!!

I've updated pylance and the previous bug in #861 is already fixed, this is a new one

TheNightmareX

comment created time in 3 minutes

issue commentmicrosoft/vscode-jupyter

Cannot use interactive window as it shows (Python 3.8.7 64-bit requires ipykernel to be installed)

Well when trying first command i get can't open file c:\Users\ABC.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles \pyvsc-run-isolated.py': [Errno 2] No such file or directory when running second i get The system cannot find the path specified.

RajatM24

comment created time in 4 minutes

issue commentmicrosoft/pylance-release

Statements failed in pylance but passed in mypy again!!!!!

This is a duplicate of https://github.com/microsoft/pylance-release/issues/861. A fix is already in place and will be included in next week's pylance release.

TheNightmareX

comment created time in 5 minutes

issue openedmicrosoft/pylance-release

Statements failed in pylance but passed in mypy again!!!!!

<!-- Read the guidelines for filing an issue first.

https://github.com/microsoft/pylance-release/blob/master/TROUBLESHOOTING.md#filing-an-issue -->

Environment data

<!-- To find your version, you can either:

  • Open the VS Code extensions panel. Locate Pylance from the list of installed extensions. The version appears next to the name.

  • Select "View: Toggle Output" from the command palette (Ctrl+Shift+P on Windows/Linux, Command+Shift+P on macOS), then select "Python Language Server" in the dropdown on the right. Look for the line Pylance Language Server version X in the console. -->

  • Language Server version: 2021.1.1

  • OS and version: Windows 10 Work Station 1909

  • Python version: Python 3.9.0 64-bit

Expected behaviour

Actual behaviour

from typing import TypedDict


class MyDict(TypedDict):
    k: int


# ok
mydict: MyDict = {'k': 1}


class BaseClass:
    # ok
    mydict: MyDict = {'k': 1}


class SubClass(BaseClass):
    # failed!!!!!
    mydict = {'k': 1}
    """
    "mydict" overrides symbol of same name in class "BaseClass"
      "dict[str, int]" is incompatible with "MyDict"PylancereportIncompatibleVariableOverride
    test.py(13, 5): Overridden symbol
    """

Logs

<!-- Enable trace logging by adding "python.analysis.logLevel": "Trace" to your settings.json configuration file.

Adding this will cause a large amount of info to be printed to the Python output panel. This should not be left long term, as the performance impact of the logging is significant. -->

Code Snippet / Additional information

<!-- Note: If you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ . -->

created time in 10 minutes

push eventdotnet/arcade

Christopher Costa

commit sha 563a2d4a563a45dc29697d5a57334420cdf71111

give up, remove test

view details

push time in 34 minutes

pull request commentAzure/azure-powershell

[Az.RecoveryServices.Backup] modifying policy validation limits as per backup service

@msJinLei : can you pls review

hiaga

comment created time in 43 minutes

PR opened Azure/azure-powershell

[Az.RecoveryServices.Backup] modifying policy validation limits as per backup service

<!-- DO NOT DELETE THIS TEMPLATE -->

Description

modifying policy validation limits as per backup service

Checklist

  • [Yes] I have read the Submitting Changes section of CONTRIBUTING.md
  • [Yes] The title of the PR is clear and informative
  • [N/A] The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • [Yes] The PR does not introduce breaking changes
  • [N/A] If applicable, the changes made in the PR have proper test coverage
  • [N/A ] For public API changes to cmdlets:
    • [N/A ] a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
      • {Please put the link here}
    • [N/A ] the markdown help files have been regenerated using the commands listed here
+11 -6

0 comment

2 changed files

pr created time in 44 minutes

issue commentmicrosoft/vscode-jupyter

Cannot use interactive window as it shows (Python 3.8.7 64-bit requires ipykernel to be installed)

Thanks. This part of the log seems suspicious, it looks like we managed to drop a backslash in the filepath to our isolate script somehow:

~\AppData\Local\Programs\Python\Python38\python.exe c:\Users\ABC.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"

What do you get if you run these two commands:

  1. C:\Users\ABC\AppData\Local\Programs\Python\Python38\python.exe c:\Users\ABC.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"

  2. C:\AppData\Local\Programs\Python\Python38\python.exe c:\Users\ABC.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"

Thank you for your patience!

RajatM24

comment created time in an hour

push eventdotnet/arcade

Christopher Costa

commit sha fdbacee515ca3e0e8cb747dcb755d1adb37a17d3

update defining platform

view details

push time in an hour

delete branch dotnet/templates

delete branch : merges/dev15.9.x-to-dev16.0.x

delete time in an hour

create barnchdotnet/templates

branch : merges/dev15.9.x-to-dev16.0.x

created branch time in an hour

push eventdotnet/arcade

Christopher Costa

commit sha 951f376d46b5c8ea84516f6a2e8310500a0434c0

try to create another queue

view details

push time in an hour

issue openedAzure/azure-powershell

Feature Request: -Refresh parameter for Get-AzAccessToken

Description of the new feature

It is often possible to get an access token that is near the end of its life from the cache, and when using this token for other services (Microsoft Graph module for instance) since the renew token isn't present it can cause intermittent issues more likely

Proposed implementation details (optional)

Add a -Refresh parameter that will force the issuance of a fresh token, guaranteeing at least 1 hour of use

Ideally of course the implementer would detect on the expiresOn of the token and request it directly from Az, but that is not always possible.

created time in an hour

issue commentdotnet/machinelearning-modelbuilder

GPU Service not found. Falling back to CPU AutoML Service.

I've tried for about 3 hours over the last few days - It's driving me mental

Specs ML Model Builder ext - 16.3.0.2056001 ML GPU Ext - 16.3.0.2056001 VS 2019 - 16.8.4 cuda_10.0.130_411.31_win10.exe - Cuda 10 Version cuDNN v7.6.4 (September 27, 2019), for CUDA 10.0 I'm not sure it's relevant but I have mlnet CLI too

AMD Ryzen 7 64GB Ram Nvidia Geforce RTX2060 Super

I've installed and reinstalled Cuda 10 a dozen times, I've tried all options, I've tried no VS, With VS, Just Runtime. I've checked the Bin folder is in %path%

No matter the installation, no Local GPU option appears in the GUI, I figure this is likely the best place to see it easily. image

Does anyone have any better instructions, I've combined this thread with the microsoft guide... But still nothing https://docs.microsoft.com/en-us/dotnet/machine-learning/how-to-guides/install-gpu-model-builder

Any times would be great.

WozSoftware

comment created time in an hour

issue commentmicrosoft/pylance-release

Pylance doesn't match Python's behaviour wrt installed packages

@jakebailey, could you see if you can repro what Shantanu is seeing?

hauntsaninja

comment created time in 2 hours

push eventmicrosoft/vscode-python

Joyce Er

commit sha b129412d168ffc29e5dd8f7e72bc30cdf32f14e9

Show prompt, code action and lens for tensorboardX (#15210)

view details

push time in 2 hours

PR merged microsoft/vscode-python

Reviewers
Show prompt, code action and lens for tensorboardX skip news

New requirement from @jmew: tensorboardX is a package used for creating tf event files during runs e.g. from tensorboardX import SummaryWriter. Show all of our existing import detection entrypoints for tensorboardX as well as tensorboard.

Note that we will still install tensorboard and not tensorboardX for the user to launch an integrated TensorBoard session, as even with tensorboardX installed users will still require tensorboard to visualize their log data.

+55 -42

1 comment

4 changed files

joyceerhl

pr closed time in 2 hours

issue commentAzure/azure-powershell

Give Invoke-AzResourceAction powershell cmdlet a synchronous mode

@raych1 Should your team own the solution for this? Or is there an issue with a dependency you are taking on ARM?

buchs

comment created time in 2 hours

issue commentmicrosoft/pylance-release

Pylance doesn't match Python's behaviour wrt installed packages

Yeah, I'm seeing different results:

~/tmp/tmp λ vim x.sh  # copy the script from ^
~/tmp/tmp λ bash x.sh
+ mkdir -p repo/tmpproj/tmpproj
+ cat
+ cat
+ cat
+ cd repo
+ python3 -m venv env
+ source env/bin/activate
++ deactivate nondestructive
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n /usr/local/bin/bash -o -n '' ']'
++ hash -r
++ '[' -n '' ']'
++ unset VIRTUAL_ENV
++ '[' '!' nondestructive = nondestructive ']'
++ VIRTUAL_ENV=/Users/shantanu/tmp/tmp/repo/env
++ export VIRTUAL_ENV
++ _OLD_VIRTUAL_PATH=<redacted>
++ PATH=<redacted>
++ export PATH
++ '[' -n '' ']'
++ '[' -z '' ']'
++ _OLD_VIRTUAL_PS1=
++ PS1='(env) '
++ export PS1
++ '[' -n /usr/local/bin/bash -o -n '' ']'
++ hash -r
+ pip install tmpproj/
Processing ./tmpproj
Using legacy 'setup.py install' for tmpproj, since package 'wheel' is not installed.
Installing collected packages: tmpproj
    Running setup.py install for tmpproj ... done
Successfully installed tmpproj-0.0.0

~/tmp/tmp λ cd repo
~/tmp/tmp/repo λ source env/bin/activate
(env) ~/tmp/tmp/repo λ python3 --version
Python 3.9.1
(env) ~/tmp/tmp/repo λ python3 script.py
Traceback (most recent call last):
  File "/Users/shantanu/tmp/tmp/repo/script.py", line 6, in <module>
    import tmpproj.tmpproj
ModuleNotFoundError: No module named 'tmpproj.tmpproj'

(note that I edited the script in my first comment to add set -x)

hauntsaninja

comment created time in 3 hours

issue commentmicrosoft/vscode-jupyter

Make tensors viewable in data viewer

They already are. The first cell has been running for 5 minutes.

joyceerhl

comment created time in 3 hours

issue commentAzure/MachineLearningNotebooks

Retrieve best model from HyperDriveStep within pipeline

@swanderz the model_file would accept string as in the description: image

Need to confirm with HyperDrive team what exactly model_file would do. :) let me get back to you.

swanderz

comment created time in 3 hours

issue commentmicrosoft/vscode-jupyter

Make tensors viewable in data viewer

You might have better luck splitting them into two cells (one for torch and one for tensorflow). Importing each module takes a really long time.

joyceerhl

comment created time in 3 hours

issue commentmicrosoft/vscode-jupyter

Make tensors viewable in data viewer

I can't get this code to run. It just hangs when I run it.

joyceerhl

comment created time in 3 hours

issue openedmicrosoft/vscode-jupyter

Sample notebook from start page looks wrong on native notebook

Might just be vscode rendering differences, but might have to change the notebook or something as this looks rather lame, and it's a new user experience.

image.png

created time in 3 hours

PR opened dotnet/diagnostics

Misc doc updates

Issues:

https://github.com/dotnet/diagnostics/issues/1491 https://github.com/dotnet/diagnostics/issues/1089

+40 -9

0 comment

3 changed files

pr created time in 3 hours

Pull request review commentmicrosoft/vscode-jupyter

Preload font awesome for ipywidgets

+addCSS('https://use.fontawesome.com/releases/v5.8.1/css/all.css');

And I'm not sure about WSL. We can test it out. I can do a curl of say http://www.google.com from a WSL bash script.

DavidKutu

comment created time in 3 hours

issue commentmicrosoft/pylance-release

Pylance doesn't match Python's behaviour wrt installed packages

OK, I've had a chance to dig into this more. I'm able to repro the pylance errors that you're seeing.

Screen Shot 2021-01-22 at 4 55 29 PM

When I activate the virtual environment "env" and run the script ("python script.py"), I receive the following output, which matches the errors indicated by pylance:

Traceback (most recent call last):
  File "/Users/eric/Desktop/repo/script.py", line 2, in <module>
    from tmpproj import x
ImportError: cannot import name 'x' from 'tmpproj' (unknown location)

When I comment out the first import statement and replace the reveal_type with a call to print, the script completes, and the output is:

5

Based on my results, pylance is matching the behavior of the interpreter. (Incidentally, I'm using Python 3.9 on Mac OS, but I don't think that makes a difference.)

@hauntsaninja, are you seeing different results?

hauntsaninja

comment created time in 3 hours

issue closedmicrosoft/vscode-jupyter

Unable to create new blank Jupyter notebook via Notebook icon in start page

<!-- Please search existing issues to avoid creating duplicates. -->

Testing Codespace Scenario: 1791

Environment data

  • VS Code version: 1.52.0-insider (Codespace)
  • Jupyter Extension version (available under the Extensions sidebar): 2020.12.1
  • Python Extension version (available under the Extensions sidebar): 2020.11.2
  • OS (Windows | Mac | Linux distro) and version: Linux Codespace
  • Python and/or Anaconda version: 3.8.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Jupyter server running: Local

Expected behaviour

  1. Click Notebook icon in Start Page.
  2. Open blank Notebook in editor.

Actual behaviour

  1. Click Notebook icon in Start Page.
  2. Shown the following prompt:

image

closed time in 3 hours

SiddhanthUnnithan
more