question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

difficulty to read logs with Jupyter (VSCode Dark theme) and new logging

See original GitHub issue

Description

I’m working on VSCode, and I custom my vscode with the Dark+ color theme. When I use interactive python to work it’s really diffcult to read logs because of colors. I need to select them to be able to read them correctly. I notice that the colors are slightly different in interactive python and in terminal.

Context

Steps to Reproduce

  1. use Vscode and Dark+ color theme
  2. install kedro 0.18.2
  3. some code like :
from pathlib import Path
from kedro.framework.session import KedroSession
from kedro.framework.startup import bootstrap_project
my_path = Path(__file__).resolve().parent.parent 
metadata = bootstrap_project(my_path)
session = KedroSession.create(metadata.package_name, project_path=my_path)
local_context = session.load_context()
my_data= local_context.catalog.load("my_partitioned_data")

you will have : image

my_data.items()

you will have : image

Expected Result

I would like to have readable logs.

Actual Result

logs are difficulty to read.

Your Environment

  • Kedro version used (pip show kedro or kedro -V): 0.18.2
  • Python version used (python -V): 3.9.13
  • Operating system and version: linux and VSCode with Dark+ theme

thank you for your help 😃

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
datajoelycommented, Jul 28, 2022

@noklam maybe let’s group this under the similar databricks issue?

0reactions
noklamcommented, Aug 16, 2022

I’ll add my own experience, I just install jupyterthemes for Jupyter Notebook and it doesn’t work well with the dark theme. Ideally rich is smart enough to handle most of the situations, but it’s also inevitable it will crash with plugins. I can imagine it will interfere with dark-themes browser plugin as well. In that case, we should have an easy way to disable the rich REPL .

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Log can be difficult to read or interpret · Issue #9650 - GitHub
Unfortunately, this log can be extremely difficult to read and understand ... Default the Jupyter > Logging: Level setting to something less ...
Read more >
How to get jupyter notebook theme in vscode - Stack Overflow
1- Go to your Jupyter extension => Extension settings => and check "Ignore Vscode Theme" . 2- Click on File => preference =>...
Read more >
September 2022 (version 1.72) - Visual Studio Code
Learn what is new in the Visual Studio Code September 2022 Release (1.72)
Read more >
User and Workspace Settings - Visual Studio Code
json file. You can open the settings. json file with the Preferences: Open Settings (JSON) command in the Command Palette (Ctrl+Shift+P). Once the...
Read more >
October 2022 - Visual Studio Code
Learn what is new in the Visual Studio Code October 2022 Release (1.73) ... You can also set log level per extension from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found