Giter VIP home page Giter VIP logo

Comments (6)

damianavila avatar damianavila commented on July 26, 2024

Are the extension installing instructions up to date?

Probably not... you could probably install it in the old way or use the new IPython API to install the nbextension... we need to update it, labelling as enhancement...

Could this also be applied top the extensions here?

Yes, I don't see problems... although, maybe, some of them would need some configuration to be loaded in the custom.js too...

from jupyter_contrib_nbextensions.

juhasch avatar juhasch commented on July 26, 2024

Good topic.
I think we should move to $(ipython locate)/nbextensions/ and use the new api, eventually.
But this alone does not make it much easier to install and use an extension. You still have to dig into different documentation snippets (sometimes slightly outdated like ours right now) and often also modify the extension .js file to correct the path of a css file. And you need to look at the Javascript output to find out what is going wrong.

In addition to better documentation, I would like to have a script or notebook that installs all or a selected extension and activates/deactivates it in the right custom.js file. I have a notebook that is not quite ready. It searches for custom.js, creates a list of extensions and can also download latest master version from IPython-contrib.

Also, as most extensions seem to load css files now, should we use require as minrk is using in load_css() here: https://github.com/minrk/ipython_extensions/blob/master/nbextensions/toc.js ?

from jupyter_contrib_nbextensions.

damianavila avatar damianavila commented on July 26, 2024

I like the idea of a notebook that select and install the extensions...

About he css... I am using something like that here: https://github.com/ipython-contrib/IPython-notebook-extensions/blob/master/styling/zenmode/main.js#L59
Not exactly the same, but it follows the same idea... I think it can be done in multiple ways...

from jupyter_contrib_nbextensions.

juhasch avatar juhasch commented on July 26, 2024

Here is the notebook: https://gist.github.com/juhasch/d8f73f5fd32a66ce7444
Works best with codecells hidden :-)
It tries to find the active custom.js file, loads and displays all IPython.load_extensions('') entries.
Using widgets you can activate/deactivate these entries. Right now, new extensions need to be added manually.
It can also install current IPython-notebook-extensions-master from Github in the local nbextensions directory.

from jupyter_contrib_nbextensions.

juhasch avatar juhasch commented on July 26, 2024

I have updated the installation instructions in the Wiki to reflect the current state-of-the-art.

from jupyter_contrib_nbextensions.

damianavila avatar damianavila commented on July 26, 2024

Thanks @juhasch, I think we can close it until we need a new update πŸ˜‰

from jupyter_contrib_nbextensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.