Giter VIP home page Giter VIP logo

Comments (8)

simplygood avatar simplygood commented on July 22, 2024

It would be also nice if the TOC has a button to reload TOC. Would it be hard to implement?

from ipython_extensions.

minrk avatar minrk commented on July 22, 2024

extension is now pure-js, and can render on load

from ipython_extensions.

jankatins avatar jankatins commented on July 22, 2024

An "how to enable" would be nice: a simple require(["nbextensions/nbtoc"]); in <profile>/custome/custom.js (the file was loaded with the change, checked with inspect element... But nbtoc was not loaded...

Or do I have to update ipython to a newer version?

from ipython_extensions.

minrk avatar minrk commented on July 22, 2024

It's in the readme. And yes, these js-only extensions rely on changes in IPython master.

from ipython_extensions.

jankatins avatar jankatins commented on July 22, 2024

Ah, was too fast with this question and didn't reload the front page. Anyway: is there any way to clone the repo into one dir and load both the python parts and the js parts from this checkout? Currently this repo is checkout out into .ipython\extensions\ipython_extensions and and I couldn't find the nbtoc.js file via ipython_extensions/nbextensions/nbtoc. I now copied both nbtoc files into the default profile static dir and it worked...

from ipython_extensions.

minrk avatar minrk commented on July 22, 2024

This is how I use it:

ln -s /path/to/ipython_extensions/extensions ~/.ipython/extensions
ln -s /path/to/ipython_extensions/nbextensions ~/.ipython/nbextensions

from ipython_extensions.

jankatins avatar jankatins commented on July 22, 2024

Cool, that works even under windows (after renaming the old directories and using a admin cmd...):

mklink /d ipython_extensions\extensions extensions
mklink /d ipython_extensions\nbextensions nbextensions

@minrk: The readme still says "or clone into .ipython/extension": do you want a PR with this new information?

from ipython_extensions.

minrk avatar minrk commented on July 22, 2024

@JanSchulz readme updated

from ipython_extensions.

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.