Skip to content

Fix Tutorial Notebooks to Not Shell out Python #1034

@cancan101

Description

@cancan101

Calls like: !show_weights.py convolutional_network_best.pkl Have problems when running on a remote IPython Notebook server as they do not render the images inline and instead give messages like this:

pylearn2.utils.exc.EnvironmentVariableError: 
PYLEARN2_VIEWER_COMMAND not defined. PLEASE READ THE FOLLOWING MESSAGE
CAREFULLY TO SET UP THIS ENVIRONMENT VARIABLE:
pylearn2 uses an external program to display images. Because different
systems have different image programs available, pylearn2 requires the
 user to specify what image viewer program to use.

You need to choose an image viewer program that pylearn2 should use.
Then tell pylearn2 to use that image viewer program by defining your
PYLEARN2_VIEWER_COMMAND environment variable.

You need to choose PYLEARN_VIEWER_COMMAND such that running

they also seem unnatural/ not clean. Why not import that module and call into it rather than using the command line parser, etc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions