Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling menpowidgets.visualize_atm() from command line raises Exception #40

Open
fou-orthogrid opened this issue Dec 14, 2023 · 0 comments

Comments

@fou-orthogrid
Copy link

When following the documentation (link here ) on a classical python file, I encounter a problem when I want to visualize the active template model.

Here is the exception:

self.kernel = get_ipython().kernel
AttributeError: 'NoneType' object has no attribute 'kernel'

The solution I found simply consists in checking the get_ipython() state before accessing the kernel attribute, something like that :

self.kernel = get_ipython().kernel if get_ipython() else None

instead of the existing code (l. 5009 of the menpowidgets/options.py file, direct link solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant