Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@rmshaffer
Copy link
Contributor

@rmshaffer rmshaffer commented Jun 22, 2020

This PR consumes the latest changes from Microsoft.Jupyter.Core, specifically microsoft/jupyter-core#59 and microsoft/jupyter-core#61, in order to support kernel interrupt for the %azure.execute command. For example, this means that if a user clicks the "Interrupt" button in the Jupyter Notebook interface while waiting for a job to finish executing, the cell will immediately return with a message saying that the job has not yet completed. Addresses AB#15594.

As part of this, I'm also adding the CancellationToken parameter to all of the AzureClient magic commands, since ideally in the future all of the Azure service calls will respond to kernel interrupt. And I've updated the AbstractMagic base class to derive from the new CancellableMagicSymbol, such that any of the built-in IQ# magics will be able to easily support cancellation if they choose. (But no changes to the built-in magics are included in this PR.)

To do before merging:

  • Update jupyter.csproj to consume the public Microsoft.Jupyter.Core package version when released.

@rmshaffer rmshaffer marked this pull request as ready for review June 22, 2020 15:27
Base automatically changed from rmshaffer/azure-mock-tests to feature/azure-client June 22, 2020 23:34
@rmshaffer rmshaffer merged commit 66742a9 into feature/azure-client Jun 23, 2020
@rmshaffer rmshaffer deleted the rmshaffer/kernel-interrupt branch June 23, 2020 01:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants