¿O si hay funcionalidades de desplazamiento integradas, para editar la configuración de desplazamiento?
Intenté esto pero no funcionó --
def test_exception(self, etype, value, tb, tb_offset=None): try: announce = Announce(etype, value) if announce.print: announce.title() announce.tips() announce.resources() announce.feedback() announce.scroll(self, etype, value, tb, tb_offset) #self.showtraceback((etype, value, tb), tb_offset=tb_offset) except: self.showtraceback((etype, value, tb), tb_offset=tb_offset) def scroll(self, etype, value, tb, tb_offset=None): b=widgets.HTML( value=self.showtraceback((etype, value, tb), tb_offset=tb_offset), placeholder='Some HTML', description='Some HTML', disabled=True ) a = HBox([b], layout=Layout(height='20px', overflow_y='10px')) display(a)Intente ir a cell > current outputs > toggle scrolling en la interfaz de usuario de Jupyter para habilitar la salida de desplazamiento para una celda.
Si no ve suficiente información de seguimiento, siempre puede imprimirla directamente:
import traceback try: raise Exception('thing') except: TraceBackString = traceback.format_exc() print(TraceBackString)produce:
Traceback (most recent call last): File "yourfilehere", line 19, in <module> raise Exception('thing') Exception: thing