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

New icons don't appear in Jupyter notebook #33

Open
michaelaye opened this issue Apr 30, 2017 · 8 comments
Open

New icons don't appear in Jupyter notebook #33

michaelaye opened this issue Apr 30, 2017 · 8 comments

Comments

@michaelaye
Copy link

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
Copy link
Author

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

@ZhangZhiHu
Copy link

I just have the same problem.

@takluyver
Copy link
Owner

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

@djinnome
Copy link

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
Copy link

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.

@michaelaye
Copy link
Author

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?

@Japhiolite
Copy link

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.

@crliu95
Copy link

crliu95 commented Mar 21, 2022

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.

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

No branches or pull requests

6 participants