-
Notifications
You must be signed in to change notification settings - Fork 295
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
Automatically load python modules by Jupyter Notebook in VS code #16168
Comments
Please could you enable logging as follows:
|
The information of log is as below:
|
Hi, I have updated the extra information, any comment from you? |
Please can you try the same in Jupyter Lab application outside VS Code against the same Python environment
import Test_import as t
result = t.Debug()
print(result)
I do not think this will work, |
This is quite strange, it works!
|
Please can you try in VS Code again. |
In VS code, same procedure works. But this is not my problem I think. What I want is to put
these code inside VS code settings, I mean I do not need to run
in notebook block individually..... I think we missed the topic. |
Hi, any comment from your side? |
Got it, thats what I missed |
Ok, hoep this can be fixed soon. You are the best. |
Environment data
Expected behaviour
I created two files, the one is called test_import.py, the code inside is as below:
And another file is called Debug01.ipynb, which is a Jupyter Notebook file. The code inside it is:
Finally, according to someone's advice on Stackoverflow, I put the code below inside ./vscode/settings.json file.
What I want to realize is that, when I run the code inside Debug01.ipynb file, I should get result 42, and then I go to test_import.py to change the return value to 43. Then I run the code inside Debug01.ipynb file, I should get result 43 rather than 42.
For running the code, I mean I only need to 'Run All' button in jupyter rather than 'Restart'.
Actual behaviour
When I change the return value in test_import.py from 42 to 43, after running the code inside Debug01.ipynb the second time, I still get 42.
Steps to reproduce:
You can create a new workspace, and create two files like what I did and then try this, you should get same reuslt.
The text was updated successfully, but these errors were encountered: