'Silently execute a kernel method and save its reply
The methods passed here **don\'t** involve getting the value
of a variable but instead replies that can be handled by
ast.literal_eval.
To get a value see `get_value`
Parameters
code : string
Code that contains the kernel method as part of its
string
See Also
handle_exec_method : Method that deals with the reply
Note
This is based on the _silent_exec_callback method of
RichJupyterWidget. Therefore this is licensed BSD'

def silent_exec_method(self, code):

    local_uuid = to_text_string(uuid.uuid1())
    code = to_text_string(code)
    if (self.kernel_client is None):
        return
    msg_id = self.kernel_client.execute('', silent=True, user_expressions={local_uuid: code})
    self._kernel_methods[local_uuid] = code
    self._request_info['execute'][msg_id] = self._ExecutionRequest(msg_id, 'silent_exec_method')
