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

Use LF instead of CRLF, when run against kernel #7659

Merged
merged 2 commits into from
Sep 24, 2021
Merged

Use LF instead of CRLF, when run against kernel #7659

merged 2 commits into from
Sep 24, 2021

Conversation

DonJayamanne
Copy link
Contributor

@DonJayamanne DonJayamanne commented Sep 24, 2021

For #4576

I need to test this on a windows machine, will start on getting the windows pc up.

@@ -498,7 +498,7 @@ export class JupyterNotebookBase implements INotebook {
? this.session.requestExecute(
{
// Remove the cell marker if we have one.
code: cellMatcher.stripFirstMarker(code),
code: cellMatcher.stripFirstMarker(code.replace(/\r\n/g, '\n')),
Copy link
Member

Choose a reason for hiding this comment

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

These usages look like the only three usages of session.requestExecute. So should this replace instead go into BaseJupyterSession.requestExecute? That would put it in only one place, and prevent someone else from adding a new usage of requestExecute that re-creates this issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't want to refactor the code, ideally we should have just one.
When the old Jupyter layer goes away we'll automatically have just one.
The other two will be in kernel stuff & i'd like to remove the executeSilently to go through kernel as well (but don't want to introduce a refactoring now)

Hopefully we'll get to some of that in debt week.

@DonJayamanne DonJayamanne merged commit a8aeaac into main Sep 24, 2021
@DavidKutu DavidKutu mentioned this pull request Sep 24, 2021
9 tasks
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