-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Correctly display native REPL execution status #23797
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not convinced the test for failure is the right approach.
Users can print anything to the output. that shoudln't be used as a way to determine success/failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change REPL server message to return execution status.
except KeyboardInterrupt: | ||
print(traceback.format_exc()) | ||
return False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a different status right? Interrupted, does not really fall into pass/fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
]); | ||
exec.end(false); | ||
// TODO: Properly update via NotebookCellOutputItem.error later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you point me to the bug you filed for this on Jupyter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap of course: microsoft/vscode-jupyter#15855
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the issue here, .NET, Julia, R and others are using VS COde Notebook API today, hence not sure how/why the existing API is not sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is the right approach, if there are failures, then you need to use error
output, not text.
Not sure text output has been used here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added some question, response in microsoft/vscode-jupyter#15855
I did take a look at Julia repo and see they are using .error on their error output as we desired too.
@DonJayamanne Do you also know a way to use julia in interactive window? I cant locate some sort of dropdown/command to launch interactive window with julia kernel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
julia-vscode/julia-vscode#2713 (comment) seems to be the most closest I can find as launching with some? drawbacks.
Resolves: #23739