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

Multiline cell magics with %% prefix fail #3672

Closed
Najsztub opened this issue Jan 20, 2019 · 0 comments
Closed

Multiline cell magics with %% prefix fail #3672

Najsztub opened this issue Jan 20, 2019 · 0 comments
Assignees

Comments

@Najsztub
Copy link

Environment data

  • VS Code version: 1.30.2
  • Extension version (available under the Extensions sidebar): 2018.12.1
  • OS and version: Linux x64 4.20.1-1-MANJARO
  • Python version: 3.7.12
  • Type of virtual environment used: virtualenv

Expected behaviour

I can normally execute single line % magic commands in the Python Interactive window.
I would like to do the same using cell magic with %% prefix in my cell.

przechwycenie obrazu ekranu_2019-01-20_13-38-33

Actual behaviour

In VSCode I get a SyntaxError.

przechwycenie obrazu ekranu_2019-01-20_13-26-16

Steps to reproduce:

Try to execute a cell with %% magic:

#%%
%%timeit 
L = [n ** 2 for n in range(100)]
@Najsztub Najsztub changed the title Enable multiline cell magics with %% prefix Multiline cell magics with %% prefix fail Jan 20, 2019
@IanMatthewHuff IanMatthewHuff self-assigned this Jan 24, 2019
@greazer greazer closed this as completed Jan 30, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 27, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants