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

set file in kernel when we change kernel in the interactive window #4324

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

DavidKutu
Copy link

For #4164

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).

in the interactive window
@DavidKutu DavidKutu requested a review from a team as a code owner January 7, 2021 21:40
})
.then(async () => {
// Reset our file in the kernel.
const fileInKernel = this.fileInKernel;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would actually be better to do this in the 'kernelChangedHandler' function. That would handle the case where this function isn't called (like if the command is executed from the palette).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of this, we have a lot of other code where we initialize the kernel once started/restarted (setting cwd, matplot lib options, jedi options, & more )
I'd prefer this was done in the same place where we do the other stuff.

})
.then(async () => {
// Reset our file in the kernel.
const fileInKernel = this.fileInKernel;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of this, we have a lot of other code where we initialize the kernel once started/restarted (setting cwd, matplot lib options, jedi options, & more )
I'd prefer this was done in the same place where we do the other stuff.

@DavidKutu DavidKutu merged commit 7e3cf05 into main Jan 7, 2021
@DavidKutu DavidKutu deleted the david/setFileWhenSwitchingKernel branch January 7, 2021 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants