title: How to set %xmode Verbose on Jupyter notebook at launch?
body: <p>I want to set <code>%xmode Verbose</code> to get error messages in greater detail, but since I always need it, I rather want to set it at launch.</p>
  <p>So I tried adding it on at the bottom of my <code>jupyter_notebook_config.py</code>, but then when I launch it again, it got the following error:</p>
  <blockquote>
  <p>Exception while loading config file /Users/me/jupyter/jupyter_notebook_config.py</p>
  <p>SyntaxError: invalid syntax</p>
  </blockquote>
  <p>However, I also added <code>import os, sys, random, asyncio, argparse</code> at the bottom of the file, which did not lead to the error. So I feel the magic command does not work at the config file.</p>
  <p>So is there any way to enable Verbose debug mode at default in Jupyter notebook?</p>
  <hr />
  <h3>Clarification</h3>
  <p>This question is about Jupyter notebook (open via <code>jupyter notebook</code>), not IPython (open via <code>ipython</code>). I found the <code>%xmode</code> command works in IPython config file (which I have actually used) and want to enable it on Jupyter notebook as well, which is my point.</p>