Giter VIP home page Giter VIP logo

Comments (3)

andmalc avatar andmalc commented on July 3, 2024

I possibly have the same issue:
Added IPython.load_extensions('toc'); to ~/.ipython/<profile name>/static/custom/custom.js and restarted the server but no TOC button.

EDIT: I see what it is from the source nbtoc.py usage:
run %load_ext nbtoc (or add above with 'nbtoc' to custom.js) then %nbtob.

The TOC now displays OK.

from ipython_extensions.

tilboerner avatar tilboerner commented on July 3, 2024

To elaborate on what @andmalc said:

The TOC extension does not work as described in the README. When I load a notebook, I get this error in my browser console:

TypeError: IPython is undefined (toc.js:119)

However, downloading extensions/nbtoc.* from this repository to ~/.ipython/<profile name>/extensions/ and then executing the following in the notebook:

%load_ext nbtoc
%nbtoc

works for me. I'm running IPython 2.3.1.

from ipython_extensions.

minrk avatar minrk commented on July 3, 2024

I added to the README that the extensions should be loaded inside the app_initialized.NotebookApp handler. These extensions are only supported on latest master, and aren't supported on 2.x. They may still work, though.

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.