title: How to use jupyter_client to get the execute result?
body: <p>I'd like to use jupyter_client to execute some python code and get result. Here's my sample code. But I could not get the output <code>hello world</code>, Could anyone help me ? Thanks</p>
  
  <pre><code>import jupyter_client
  kernel_manager, kernel_client = jupyter_client.manager.start_new_kernel(kernel_name='python3')
  kernel_client.execute("print('hello world')")
  kernel_client.get_shell_msg() 
  </code></pre>