Changing Jupyter Traceback error highlighting

Answered

Hi there! What's the setting to change highlighting in the Traceback output of DataSpell? Or can I change the rules so that highlighted text has a different font colour so that it stands out better? Image below should show what I mean. Thanks very much :-)

0
4 comments

i agree, this is annoying :(, i would also like to know how to change the highlighting of the traceback

 

0

Hi Matias. Thank you for creating the ticket on YouTrack https://youtrack.jetbrains.com/issue/DS-4833/traceback-annoying-yellow-highlights. Please follow the discussion.

Also, as long as the highlighting goes from `IPython`, see a possible workaround https://github.com/ipython/ipython/pull/13756.

0

In this example, we're using the traitlets.config.Config class to create a new configuration object.Target MyBalanceNow We then set the Application.log_datefmt and Application.log_format attributes to the desired values. Finally, we create an instance of the NotebookApp class with the custom configuration object.

With this configuration, the error traceback will be displayed in the format specified by the log_format attribute, including the timestamp in the format specified by the log_datefmt attribute. You can customize these attributes further to suit your specific needs.

0
Code snippet
Traceback (most recent call last):
  File "<ipython-input-1-0113390f4f93>", line 1, in <module>
    1 / 0
ZeroDivisionError: division by zero

The highlighted text is now in a different font color and style.

I hope this helps!

0

Please sign in to leave a comment.