Skip to content

not working in google colab #268

@lucywowen

Description

@lucywowen

hi hi!

Just wanted to let you know that I can pip install hypertools in google colab, but I can't actually import the library:


ValueError Traceback (most recent call last)
/usr/local/lib/python3.12/dist-packages/hypertools/plot/backend.py in _init_backend()
579 # but the latter is not, so we must check for it manually.
--> 580 notebook_frontend = _get_jupyter_frontend()
581 if notebook_frontend == 'lab':

4 frames
ValueError: invalid literal for int() with base 10: '/usr/local/lib/python3'

During handling of the above exception, another exception occurred:

UnboundLocalError Traceback (most recent call last)
/usr/local/lib/python3.12/dist-packages/hypertools/plot/backend.py in _init_backend()
648 mpl.use(curr_backend)
649 BACKEND_MAPPING = BackendMapping(BACKEND_KEYS)
--> 650 HYPERTOOLS_BACKEND = HypertoolsBackend(working_backend).normalize()
651
652

UnboundLocalError: cannot access local variable 'working_backend' where it is not associated with a value

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