Comments (3)
I've tried to modify the toc.js to add at the top the waitSeconds property
require.config({
waitSeconds: 120,
});
define(["require", "jquery", "base/js/namespace"], function (require, $, IPython) {
"use strict";
var make_link = function (h) {
var a = $("<a/>");
a.attr("href", '#' + h.attr('id'));
// get the text *excluding* the link text, whatever it may be
etc
But this isn't working, I'm clearly not doing it right. Any idea?
from ipython_extensions.
I figured out how to change it for all modules, not sure if there's a way to overwrite waitSeconds just for the toc.js
Anyways, you have to change it in require.js itself, if you're using Anaconda it's in Anaconda\Lib\site-packages\IPython\html\static\components\requirejs\require.js
then locate waitSeconds
and change the value to something greater than 7
from ipython_extensions.
@jmarrec Thanks, I was having the same problem with IPython-notebook-extensions, and setting waitSeconds = 0
in IPython's require.js
file fixed it. (On Linux, require.js
is in the anaconda3/lib/python3.4/site-packages/IPython/html/static/components/requirejs/
folder).
Maybe it's worth submitting a bug report to IPython?
from ipython_extensions.
Related Issues (20)
- TOC doesnt load? HOT 26
- Gist button: problem grabbing notebook JSON code HOT 3
- ToC does not update on cell execution HOT 2
- ToC magic does not work in IPython 3.0 HOT 3
- TypeError: IPython is undefined toc.js:136:8 HOT 3
- Two install instructions for ToC HOT 1
- contribute the nbextensions (at least toc) to ipython-contrib/IPython-notebook-extensions HOT 6
- Jupyter notebook 4 hangs with TOC extension HOT 8
- How can I contribute to the table of content extension?
- feature request: show/hide table of contents with a shortcut HOT 1
- Typo in TOC install commands
- Duplicates entries after each save/refresh HOT 1
- floating TOC is too small
- string including "] will cause In[*] problem
- Question: Will some of the extensions, like ToC, gist work w/ custom kernels? HOT 2
- install renumber-button via URL?
- Error on install HOT 1
- making margin width configurable
- Headings for TOC no more supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipython_extensions.