Skip to content

Commit

Permalink
Default to true for store_history if not in silent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens authored and kojix2 committed Jan 14, 2024
1 parent 9682aca commit 9bbdd61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/iruby/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ def send_status(status)
# @private
def execute_request(msg)
code = msg[:content]['code']
store_history = msg[:content]['store_history']
silent = msg[:content]['silent']
# https://jupyter-client.readthedocs.io/en/stable/messaging.html#execute
store_history = silent ? false : msg[:content].fetch('store_history', true)

@execution_count += 1 if store_history

Expand Down

0 comments on commit 9bbdd61

Please sign in to comment.