Skip to content

Commit

Permalink
Revert "Do not print logo in notebooks"
Browse files Browse the repository at this point in the history
This reverts commit 882f1b7.
  • Loading branch information
vladsavelyev committed Apr 17, 2024
1 parent 534dd89 commit 7ca0401
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
4 changes: 4 additions & 0 deletions multiqc/multiqc.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,11 @@ def _init_config(
"""
report.init()

# Set up logging
log.init_log(logger, quiet=quiet, verbose=verbose, no_ansi=no_ansi)
log.rich_console.print(
f"\n [dark_orange]///[/] [bold][link=https://multiqc.info]MultiQC[/link][/] :mag: [dim]| v{config.version}\n"
)
logger.debug(f"This is MultiQC v{config.version}")
logger.debug(f"Using temporary directory: {report.tmp_dir}")

Expand Down
15 changes: 0 additions & 15 deletions multiqc/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@
rich_console: rich.console.Console


def is_running_in_notebook():
try:
from IPython import get_ipython

if "IPKernelApp" in get_ipython().config:
return True
except (ImportError, AttributeError):
pass
return False


def init_log(logger, quiet: bool, verbose: int, no_ansi: bool = False):
"""
Initializes logging.
Expand All @@ -51,10 +40,6 @@ def init_log(logger, quiet: bool, verbose: int, no_ansi: bool = False):
force_terminal=util_functions.force_term_colors(),
color_system=None if no_ansi else "auto",
)
if not is_running_in_notebook():
rich_console.print(
f"\n [dark_orange]///[/] [bold][link=https://multiqc.info]MultiQC[/link][/] :mag: [dim]| v{config.version}\n"
)

# File for logging
global log_tmp_dir, log_tmp_fn
Expand Down

0 comments on commit 7ca0401

Please sign in to comment.