cite2c icon indicating copy to clipboard operation
cite2c copied to clipboard

New icons don't appear in Jupyter notebook

Open michaelaye opened this issue 7 years ago • 8 comments

While my python 3.6 fully updated conda environment was active, I did:

  • pip install cite2c
  • python -m cite2c.install

After launching a new notebook server, and opening a notebook, I was expecting to see the new icons meantioned in the README, but they are not there.

FYI, I am using the nbextension configurator with a couple of other extensions that create new icons in the notebook toolbar, i'm just thinking if you used absolute icon positions, maybe they are overwritten by some of my other extensions? Otherwise I don't see any errors.

michaelaye avatar Apr 30 '17 22:04 michaelaye

Update: I also tried GH master, with no change.

michaelaye avatar Apr 30 '17 23:04 michaelaye

I just have the same problem.

ZhangZhiHu avatar Oct 28 '17 22:10 ZhangZhiHu

Are there any errors in the browser's Javascript console when the icons fail to show up?

takluyver avatar Oct 31 '17 10:10 takluyver

In nbconfigurator, I have the following message:

cite2c/main
This nbextension is enabled in the notebook json config, but doesn't provide a yaml file to tell us how to configure it. You can still enable or disable it from here, though.

section: notebook
require path: cite2c/main
compatibility: ?.x

What should the missing yaml file contain?

djinnome avatar Jan 24 '18 23:01 djinnome

Update: I have upgraded jupyter notebook to the latest version, and now the icons appear, and it gives me an option to search zotero for a reference. However, even though I have the Zotero app running on my machine, it does not seem to be able to find any references in my Zotero folder, and there still doesn't seem to be a yaml file that tells nbextensions how to configure it.

djinnome avatar Feb 21 '18 17:02 djinnome

tried it again with current version of pip and most recent everything from conda-forge with Python 3.6. Got these errors in the Javascript console: screenshot 2018-02-21 10 38 00

Now I'm wondering if there isn't a clash with the toc2 extension, because it wants to set the same icon?

michaelaye avatar Feb 21 '18 17:02 michaelaye

Don't know whether this is still ongoing... but I saw, that next to the toc2 extension, the Exercise extension uses the fa-mortar-board, too. To avoid a potential clash, I changed the toolbar icons in my locally installed version. I changed the icons to image by replacing the font-awesome descriptions in main.js:

Jupyter.actions.register({  
    icon: 'fa-bookmark',
    help: 'Insert a citation',
    ...});
Jupyter.actions.register({  
    icon: 'fa-book',
    help: 'Insert bibliography',
    .... });

This helped.

Japhiolite avatar Feb 18 '20 13:02 Japhiolite

Don't know whether this is still ongoing... but I saw, that next to the toc2 extension, the Exercise extension uses the fa-mortar-board, too. To avoid a potential clash, I changed the toolbar icons in my locally installed version. I changed the icons to image by replacing the font-awesome descriptions in main.js:

Jupyter.actions.register({  
    icon: 'fa-bookmark',
    help: 'Insert a citation',
    ...});
Jupyter.actions.register({  
    icon: 'fa-book',
    help: 'Insert bibliography',
    .... });

This helped.

I got the same question. And after I disabled the Toc(2) plug-in in the nbextension, it turned to be normal. Maybe changng the icon locally like this would also help.

crliu95 avatar Mar 21 '22 08:03 crliu95