diff --git a/lib/iruby/kernel.rb b/lib/iruby/kernel.rb index a2cd652..c1c1a91 100644 --- a/lib/iruby/kernel.rb +++ b/lib/iruby/kernel.rb @@ -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