Skip to content

Commit

Permalink
Don't override display() for now as it interferes with solara tests
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jul 11, 2023
1 parent 0060544 commit 1c3e2d9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions glue_jupyter/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,20 @@ def app(dataxyz, datax, dataxz, data_volume, data_image):
return app


ORIGINAL_DISPLAY = None
# ORIGINAL_DISPLAY = None


def noop(*args, **kwargs):
pass
# def noop(*args, **kwargs):
# pass


def pytest_configure(config):
global ORIGINAL_DISPLAY
import IPython.display as idisp
ORIGINAL_DISPLAY = idisp.display
idisp.display = noop
# def pytest_configure(config):
# global ORIGINAL_DISPLAY
# import IPython.display as idisp
# ORIGINAL_DISPLAY = idisp.display
# idisp.display = noop


def pytest_unconfigure(config):
import IPython.display as idisp
idisp.display = ORIGINAL_DISPLAY
# def pytest_unconfigure(config):
# import IPython.display as idisp
# idisp.display = ORIGINAL_DISPLAY

0 comments on commit 1c3e2d9

Please sign in to comment.