def is_in_jupyter():
<EOL>try:<EOL><INDENT>shell = get_ipython().__class__.__name__<EOL>if shell == "<STR_LIT>":<EOL><INDENT>return True  <EOL><DEDENT><DEDENT>except NameError:<EOL><INDENT>return False  <EOL><DEDENT>return False<EOL>
Check if user is running spaCy from a Jupyter notebook by detecting the
    IPython kernel. Mainly used for the displaCy visualizer.
    RETURNS (bool): True if in Jupyter, False if not.