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

Magic commands as comments not working #7481

Closed
TarjinderSingh opened this issue Sep 10, 2021 · 2 comments · Fixed by #7485
Closed

Magic commands as comments not working #7481

TarjinderSingh opened this issue Sep 10, 2021 · 2 comments · Fixed by #7485
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug interactive-window Impacts interactive window

Comments

@TarjinderSingh
Copy link

When using "jupyter.magicCommandsAsComments": true, I use to be able to have:

# %%
#!%%time
print('hi')

run the Python magic timeit interactively. However, it not longer does that, and just executes the chunk as a normal command.

When I go to the interactive Jupyter interface and put in:

%%time
print('hi')

I get the standard output of:

hi
CPU times: user 37 µs, sys: 13 µs, total: 50 µs
Wall time: 45.1 µs

Has something changed?

Environment data

  • VS Code version: 1.60.0
  • Jupyter Extension version (available under the Extensions sidebar): v2021.8.2041215044
  • Python Extension version (available under the Extensions sidebar): v2021.9.1218897484
  • OS (Windows | Mac | Linux distro) and version: Mac OS 11.5.2
  • Jupyter server running: Local

Expected behaviour

XXX

Actual behaviour

XXX

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. XXX

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

XXX

@TarjinderSingh TarjinderSingh added the bug Issue identified by VS Code Team member as probable bug label Sep 10, 2021
@TarjinderSingh
Copy link
Author

I reverted the Python and Jupyter extensions (Python: v2021.6.944021595; and Jupyter: v2021.8.1013163132), and it works again. Something appears to be changed between those versions and the current versions for both.

@joyceerhl
Copy link
Contributor

Thanks for reporting a bug @TarjinderSingh. Fix should be in tomorrow's Insiders build and the upcoming Stable release.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug interactive-window Impacts interactive window
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants