JuliaGizmos / Interact.jl

Interactive widgets to play with your Julia code
Other
523 stars 77 forks source link

Pkg.build ambiguous error #152

Closed tawheeler closed 7 years ago

tawheeler commented 7 years ago

I have the following versions:

IPython 5.1.0 jupyter-client 4.4.0 jupyter-core 4.2.1 Python 2.7.12 | Anaconda 2.3.0 (64-bit)

I ran Pkg.build("Interact") because it hangs in the jnotebook. This results in:

INFO: Enabling widgetsnbextension
usage: ipython [-h] [--profile TERMINALIPYTHONAPP.PROFILE]
               [-c TERMINALIPYTHONAPP.CODE_TO_RUN]
               [--logappend TERMINALINTERACTIVESHELL.LOGAPPEND]
               [--autocall TERMINALINTERACTIVESHELL.AUTOCALL]
               [--ipython-dir TERMINALIPYTHONAPP.IPYTHON_DIR]
               [--gui TERMINALIPYTHONAPP.GUI]
               [--pylab [TERMINALIPYTHONAPP.PYLAB]]
               [-m TERMINALIPYTHONAPP.MODULE_TO_RUN]
               [--ext TERMINALIPYTHONAPP.EXTRA_EXTENSION]
               [--cache-size TERMINALINTERACTIVESHELL.CACHE_SIZE]
               [--log-level TERMINALIPYTHONAPP.LOG_LEVEL]
               [--colors TERMINALINTERACTIVESHELL.COLORS]
               [--matplotlib [TERMINALIPYTHONAPP.MATPLOTLIB]]
               [--logfile TERMINALINTERACTIVESHELL.LOGFILE]
               [--config TERMINALIPYTHONAPP.EXTRA_CONFIG_FILE]
               [--profile-dir PROFILEDIR.LOCATION] [--no-autoindent]
               [--deep-reload] [--classic] [--term-title] [--no-confirm-exit]
               [--autoindent] [--no-term-title] [--pprint] [--color-info]
               [--init] [--pydb] [--no-color-info] [--autoedit-syntax]
               [--confirm-exit] [--no-autoedit-syntax] [--quick] [--banner]
               [--automagic] [--no-automagic] [--nosep] [-i] [--quiet]
               [--no-deep-reload] [--no-pdb] [--debug] [--pdb] [--no-pprint]
               [--no-banner]
ipython: error: ambiguous option: --py could match --pylab, --pydb
WARNING: Could not enable widgetsnbextension
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named ipywidgets
WARNING: Could not determine ipywidgets version

Seems like an option is now ambiguous.

I tried running pip install ipywidgets but that did not solve the problem.

I tried messing with the --py in the line:

run(`$(IJulia.jupyter) nbextension enable --py widgetsnbextension`)

but both --pylab and --pydb did not work.

Checking out master does not work either.

tawheeler commented 7 years ago

Running pip install ipywidgets==5.0.0 partially solved the issue. It no longer hangs in the notebook but I do not get any widgets.

tawheeler commented 7 years ago

Fixed by forcing IJulia to install in its own env.

ENV["JUPYTER"] = ""
Pkg.build("IJulia")
Pkg.build("Interact")