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

InlineGUI depends on notebook package #1028

Open
arvoelke opened this issue Jul 8, 2020 · 0 comments
Open

InlineGUI depends on notebook package #1028

arvoelke opened this issue Jul 8, 2020 · 0 comments

Comments

@arvoelke
Copy link
Contributor

arvoelke commented Jul 8, 2020

Describe the bug

Importing InlineGUI within a jupyter notebook can trigger a ModuleNotFoundError due to missing notebook package.

To reproduce

Steps to reproduce the behavior:

  1. Install jupyter
  2. Launch jupyter
  3. In a separate environment, install nengo-gui and ipykernel
  4. Add the nengo-gui environment as a jupyter ipykernel, e.g., python -m ipykernel install --user --name nengo-gui --display-name "Nengo-GUI" if nengo-gui is the name of the environment containing NengoGUI.
  5. In jupyter, select the nengo-gui kernel, and run:
import nengo
model = nengo.Network()

from nengo_gui.ipython import InlineGUI
InlineGUI(model)

Expected behavior

I expected no error. Perhaps pip install nengo-gui[optional] should pull in the notebook. Or there should be instructions for using InlineGUI somewhere.

Screenshots

N/A

Versions

  • OS: N/A
  • Browser: N/A
  • Nengo GUI: 0.4.6
  • Other: N/A

Additional context

Using conda on a relatively fresh environment with conda install jupyter, and then adding the kernel to jupyter.

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

No branches or pull requests

1 participant