Skip to content

Invalid display variable: Matplotlib issue with Jupyter #9

@hrishikeshvganu

Description

@hrishikeshvganu

I was getting the following error when running the mnist_demo notebook.

136 display = os.environ.get('DISPLAY')
137 if display is None or not re.search(':\d', display):
--> 138 raise RuntimeError('Invalid DISPLAY variable')
139
140 qApp = QtWidgets.QApplication([str(" ")])

RuntimeError: Invalid DISPLAY variable

The solution is to use magic:
%matplotlib inline

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions