-
Notifications
You must be signed in to change notification settings - Fork 301
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
Interrupt kernel doesn't report status when failed to interrupt and kernel crashed #3757
Comments
The SessionManager.runningChanged signal might fire when this problem occurs. |
|
Hmm. Having a problem fixing this. Jupyter is not interrupting anything: |
rchiodo
referenced
this issue
in microsoft/vscode-python
Dec 10, 2018
For #3511 Also did some work around making sure cancel behaves correctly. Cancelling a connection happens on exporting a file and running all cells. There was a bug where the cancel token from one request was being reused in another.
Should be fixed now in our insiders build |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
#%% [markdown]
## This is markdown.
#%%
Let's load and review some data
import pandas as pd # pandas is a dataframe library
df = pd.read_csv("./data/pima-data.csv") # load Pima data
df.head(5)
#%% Let's plot the correlation between data columns
import matplotlib.pyplot as plt # matplotlib.pyplot plots data
import matplotlib.style as style
style.use('dark_background')
def draw_corr(df, size = 11):
corr = df.corr() # data frame correlation function
fig, ax = plt.subplots(figsize=(11, 11))
ax.matshow(corr) # color code the rectangles by correlation value
plt.xticks(range(len(corr.columns)), corr.columns) # draw x tick marks
plt.yticks(range(len(corr.columns)), corr.columns) # draw y tick marks
draw_corr(df)
What happened was that the kernel wasn't interrupt-able at the time and it crashed and restarted itself, but VS Code doesn't report that status. And if trying to run more cells at this point, the execution order shows [-2].
The text was updated successfully, but these errors were encountered: