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

%%time is sometimes not working #2603

Closed
rchiodo opened this issue Dec 5, 2019 · 5 comments
Closed

%%time is sometimes not working #2603

rchiodo opened this issue Dec 5, 2019 · 5 comments

Comments

@rchiodo
Copy link
Contributor

rchiodo commented Dec 5, 2019

Related to https://github.com/microsoft/vscode-python/issues/6900#issuecomment-562090043

Sometimes %%time doesn't work.

I can repro with the following code:

import time
%%time
print('bar')
@rchiodo
Copy link
Contributor Author

rchiodo commented Dec 5, 2019

@aragong you thought it might be your python environment? Can you try a different one?

@rchiodo
Copy link
Contributor Author

rchiodo commented Dec 5, 2019

Or perhaps you have 'python.dataScience.runStartupCommands' set. That might interfere with what runs.

@aragong
Copy link

aragong commented Dec 6, 2019

I will try:
1- do the same with a new empty python3 environment.
2- back vscode settings to default. How can I restore vscode to defaults settings (without delete extensions? is it possible?)

@rchiodo
Copy link
Contributor Author

rchiodo commented Dec 6, 2019

For number 2, you could try installing the insider's version of VS code. It will have completely different settings but can still install our same python extension.

@greazer
Copy link
Member

greazer commented Feb 12, 2020

Issues labeled with "Info needed" are closed if we do not receive more information from the issue author in 2 weeks. If you are the issue author and you still are running into this problem, please reactivate with additional information.

@greazer greazer closed this as completed Feb 12, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 21, 2020
@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 7, 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