Skip to content
New issue

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

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

Already on GitHub? # to your account

[ToC2] dose not work. #1127

Closed
senkohei opened this issue Oct 18, 2017 · 16 comments
Closed

[ToC2] dose not work. #1127

senkohei opened this issue Oct 18, 2017 · 16 comments

Comments

@senkohei
Copy link

Even if ToC 2 of Configurable NBextensions is checked and set to enable, no icon appears in notebook's toolbar.

Please let me know if you know the cause and the solution.

Environment:
Windows 10 (64bit)
Python3.6.1 Anaconda3 4.4.0 (64-bit)

@jcb91
Copy link
Member

jcb91 commented Oct 18, 2017

what notebook version are you running?
I have found an issue with notebook < 5.2.0, which prevents toolbar buttons being created if we're specifying id & action, related to #1123

@senkohei
Copy link
Author

I put version information.

jupyter (1.0.0)
jupyter-client (5.1.0)
jupyter-console (5.2.0)
jupyter-contrib-core (0.3.3)
jupyter-contrib-nbextensions (0.3.2)
jupyter-core (4.3.0)
jupyter-highlight-selected-word (0.0.11)
jupyter-latex-envs (1.3.8.4)
jupyter-nbextensions-configurator (0.2.8)

@jcb91
Copy link
Member

jcb91 commented Oct 18, 2017

ok, I'm after the output of

jupyter notebook --version

@jcb91
Copy link
Member

jcb91 commented Oct 18, 2017

anyway, see #1128 for a potential fix

@senkohei
Copy link
Author

senkohei commented Oct 18, 2017

ok.

My output is 5.0.0.

@jcb91
Copy link
Member

jcb91 commented Oct 18, 2017

thanks. I'm reasonably sure that you're seeing one of the bugs I managed to introduce in #1123 😞

@senkohei
Copy link
Author

senkohei commented Oct 18, 2017

ok.

I will wait for #1128 to be merged.
What should I do after merged ?

@jcb91
Copy link
Member

jcb91 commented Oct 18, 2017

Right, #1128 is merged, so you can now reinstall from the repo master, apply the fix manually, or wait for a new pip/conda release...

@senkohei
Copy link
Author

Thanks.
I tried to apply the fix manually.
It succeeded.

The toolbar icon of ToC2 came out.
I appreciate it!

@vikramsjn
Copy link

vikramsjn commented Oct 20, 2017

Hi,
I just installed nbextensions using this command but toc2 is not working - toolbar missing, and command reference command not working
how can I fix this?

I had used this command to install

conda install -c conda-forge jupyter_contrib_nbextensions

This is the info about my istallation/setup

You are using Jupyter notebook.

The version of the notebook server is 5.0.0 and is running on:
Python 2.7.13 |Continuum Analytics, Inc.| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)]

Current Kernel Information:

Python 2.7.13 |Continuum Analytics, Inc.| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)]

@jcb91
Copy link
Member

jcb91 commented Oct 20, 2017

@vikramsjn, unfortunately I'm still waiting on Travis to build the PR for the 0.3.3 conda-forge package so for now the conda-forge package is still the buggy one. My previous suggestion still stands, to reinstall from the repo master, or now that 0.3.3 (which has the relevant fix) is on pypi, you can upgrade using pip

pip install --upgrade jupyter_contrib_nbextensions

for now, until the conda package gets an upgraded release

@vikramsjn
Copy link

vikramsjn commented Oct 20, 2017

@jcb91
I do not have much experience with pip and conda

So Is it ok to use this pip command when I installed nbextensions using conda ?
pip install --upgrade jupyter_contrib_nbextensions

@jcb91
Copy link
Member

jcb91 commented Oct 21, 2017

@vikramsjn yes, this is perfectly safe to do over the top of a conda install, but I forgot earlier that two steps are needed. To apply over the top of a conda install, use (with the relevant conda environment active)

pip install --upgrade jupyter_contrib_nbextensions
jupyter contrib nbextension install --sys-prefix

You may wish to add a --symlink flag to the second command (if you're not on Windows, which doesn't support symlinks). In the conda package, this second command is done automatically. Once the newer conda package becomes available, you should be able to go back to that (over the pip) just by doing

conda upgrade jupyter_contrib_nbextensions

@vikramsjn
Copy link

@jcb91
I did your prescribed steps - and now toc2 is working alright.
Thanks a lot, and for also the detailed steps

@jcb91
Copy link
Member

jcb91 commented Oct 21, 2017

@vikramsjn you're welcome, glad to hear you got it fixed ok :)
I've just merged the pr to update the conda repo, so builds for 0.3.3 should hopefully get uploaded to the conda-forge channel soon once the various CI systems build them. As mentioned previously, you should be able to go back to using the conda package (as opposed to the pypi/pip one) using

conda upgrade jupyter_contrib_nbextensions

But there isn't really any great need to for the moment, since you've now got 0.3.3 installed anyway :)

@jcb91
Copy link
Member

jcb91 commented Nov 15, 2017

closing this as fixed by the latest (0.3.3) version

@jcb91 jcb91 closed this as completed Nov 15, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants