ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.22k stars 806 forks source link

Conda Forge install issue #1473

Open grader8 opened 4 years ago

grader8 commented 4 years ago

This isn't exactly a bug but might be relevant to your install instructions. I just ran the recommended conda install -c conda-forge jupyter_contrib_nbextensions and as part of the install plan conda was going to shift itself to the conda-forge channel:

Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/gregoryrader/opt/anaconda3

  added / updated specs:
    - jupyter_contrib_nbextensions

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    certifi-2019.9.11          |           py37_0         147 KB  conda-forge
    conda-4.7.12               |           py37_0         3.0 MB  conda-forge
    jupyter_contrib_core-0.3.3 |             py_2          15 KB  conda-forge
    jupyter_contrib_nbextensions-0.5.1|           py37_0        19.5 MB  conda-forge
    jupyter_highlight_selected_word-0.2.0|        py37_1000          13 KB  conda-forge
    jupyter_latex_envs-1.4.4   |        py37_1000         746 KB  conda-forge
    jupyter_nbextensions_configurator-0.4.1|           py37_0         468 KB  conda-forge
    ------------------------------------------------------------
                                           Total:        23.8 MB

The following NEW packages will be INSTALLED:

  jupyter_contrib_c~ conda-forge/noarch::jupyter_contrib_core-0.3.3-py_2
  jupyter_contrib_n~ conda-forge/osx-64::jupyter_contrib_nbextensions-0.5.1-py37_0
  jupyter_highlight~ conda-forge/osx-64::jupyter_highlight_selected_word-0.2.0-py37_1000
  jupyter_latex_envs conda-forge/osx-64::jupyter_latex_envs-1.4.4-py37_1000
  jupyter_nbextensi~ conda-forge/osx-64::jupyter_nbextensions_configurator-0.4.1-py37_0

The following packages will be SUPERSEDED by a higher-priority channel:

  certifi                                         pkgs/main --> conda-forge
  conda                                           pkgs/main --> conda-forge

Proceed ([y]/n)? n

I've installed jupyter extensions many times before and don't remember this happening previously so I declined that plan and instead ran conda config --append channels conda-forge and tried again:

Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/gregoryrader/opt/anaconda3

  added / updated specs:
    - jupyter_contrib_nbextensions

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    jupyter_contrib_core-0.3.3 |             py_2          15 KB  conda-forge
    jupyter_contrib_nbextensions-0.5.1|           py37_0        19.5 MB  conda-forge
    jupyter_highlight_selected_word-0.2.0|        py37_1000          13 KB  conda-forge
    jupyter_latex_envs-1.4.4   |        py37_1000         746 KB  conda-forge
    jupyter_nbextensions_configurator-0.4.1|           py37_0         468 KB  conda-forge
    ------------------------------------------------------------
                                           Total:        20.7 MB

The following NEW packages will be INSTALLED:

  jupyter_contrib_c~ conda-forge/noarch::jupyter_contrib_core-0.3.3-py_2
  jupyter_contrib_n~ conda-forge/osx-64::jupyter_contrib_nbextensions-0.5.1-py37_0
  jupyter_highlight~ conda-forge/osx-64::jupyter_highlight_selected_word-0.2.0-py37_1000
  jupyter_latex_envs conda-forge/osx-64::jupyter_latex_envs-1.4.4-py37_1000
  jupyter_nbextensi~ conda-forge/osx-64::jupyter_nbextensions_configurator-0.4.1-py37_0

Proceed ([y]/n)? y

This time no need to mess with conda. It seems like overkill to push conda to a different channel when simply adding conda-forge to the config will do.

Not sure if this is really an issue so take FWIW. Just passing it along as it's a small to change to the install instruction if other people are seeing the same thing.

ribonucleic commented 3 years ago

Thanks! This also helped me when conda install was stuck solving for more than an hour. I had only the default channel in the configuration and tried conda install -v -v jupyter_contrib_nbextensions -c conda-forge, stuck for an hour solving, then I aborted. After conda config --append channels conda-forge, this simply worked: conda install -v -v jupyter_contrib_nbextensions. (-v -v is just verbose output, probably works without, just adding it to be precise)