Skip to content

Conversation

@jkrumbiegel
Copy link
Collaborator

Fixes #192

const stable_execution_task_channel_out = Channel()
const stable_execution_task_channel_in = Channel() do chan
for expr in chan
result = Core.eval(Main, expr)

Choose a reason for hiding this comment

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

I think QuartoNotebookWorker has its own error handling, but you may want to catch errors from this call to prevent future put!(stable_execution_task_channel_in, ...) to fail after an exception.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hm yes I might have to think about what to do in this case, but for normal notebook usage, barring bugs in QuartoNotebookRunner, the error handling inside the passed expressions should be sufficient (as indicated by the test suite passing). Of course it would be nicer if in case of bugs, the behavior was still somewhat robust

@codecov
Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.67%. Comparing base (84cb855) to head (ae3a300).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
+ Coverage   51.56%   51.67%   +0.11%     
==========================================
  Files          30       30              
  Lines        1280     1283       +3     
==========================================
+ Hits          660      663       +3     
  Misses        620      620              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MichaelHatherly MichaelHatherly merged commit 4efa39a into main Oct 15, 2024
10 checks passed
@MichaelHatherly MichaelHatherly deleted the jk/deterministic-random branch October 15, 2024 07:55
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.

Seeded RNGs only work reproducibly within a cell

5 participants