#NEWLINE# def disable_ipython( self ) : #NEWLINE# #INDENT# '\n        Disable plotting in the iPython notebook.\n\n        After disabling, lightning plots will be produced in your lightning server,\n        but will not appear in the notebook.\n        ' #NEWLINE# from IPython.core.getipython import get_ipython #NEWLINE# self . ipython_enabled = False #NEWLINE# ip = get_ipython ( ) #NEWLINE# formatter = formatter . display_formatter . formatters [ 'text/html' ] #NEWLINE# formatter . type_printers . pop ( Visualization , None ) #NEWLINE# formatter . type_printers . pop ( VisualizationLocal , None )