Show More
@@ -1,7 +1,7 | |||||
1 | /* |
|
1 | /* | |
2 | Placeholder for custom user CSS |
|
2 | Placeholder for custom user CSS | |
3 |
|
3 | |||
4 |
mainly to be overridden in profile/static/ |
|
4 | mainly to be overridden in profile/static/user/custom.css | |
5 |
|
5 | |||
6 | This will always be an empty file in IPython |
|
6 | This will always be an empty file in IPython | |
7 | */ No newline at end of file |
|
7 | */ |
@@ -1,47 +1,47 | |||||
1 | // leave at least 2 line with only a star on it below, or doc generation fails |
|
1 | // leave at least 2 line with only a star on it below, or doc generation fails | |
2 | /** |
|
2 | /** | |
3 | * |
|
3 | * | |
4 | * |
|
4 | * | |
5 | * Placeholder for custom user javascript |
|
5 | * Placeholder for custom user javascript | |
6 | * mainly to be overridden in profile/static/js/custom.js |
|
6 | * mainly to be overridden in profile/static/user/js/custom.js | |
7 | * This will always be an empty file in IPython |
|
7 | * This will always be an empty file in IPython | |
8 | * |
|
8 | * | |
9 | * User could add any javascript in the `profile/static/js/custom.js` file |
|
9 | * User could add any javascript in the `profile/static/user/js/custom.js` file | |
10 | * (and should create it if it does not exist). |
|
10 | * (and should create it if it does not exist). | |
11 | * It will be executed by the ipython notebook at load time. |
|
11 | * It will be executed by the ipython notebook at load time. | |
12 | * |
|
12 | * | |
13 | * Same thing with `profile/static/css/custom.css` to inject custom css into the notebook. |
|
13 | * Same thing with `profile/static/user/css/custom.css` to inject custom css into the notebook. | |
14 | * |
|
14 | * | |
15 | * Example : |
|
15 | * Example : | |
16 | * |
|
16 | * | |
17 | * Create a custom button in toolbar that execute `%qtconsole` in kernel |
|
17 | * Create a custom button in toolbar that execute `%qtconsole` in kernel | |
18 | * and hence open a qtconsole attached to the same kernel as the current notebook |
|
18 | * and hence open a qtconsole attached to the same kernel as the current notebook | |
19 | * |
|
19 | * | |
20 | * $([IPython.events]).on('notebook_loaded.Notebook', function(){ |
|
20 | * $([IPython.events]).on('notebook_loaded.Notebook', function(){ | |
21 | * IPython.toolbar.add_buttons_group([ |
|
21 | * IPython.toolbar.add_buttons_group([ | |
22 | * { |
|
22 | * { | |
23 | * 'label' : 'run qtconsole', |
|
23 | * 'label' : 'run qtconsole', | |
24 | * 'icon' : 'ui-icon-calculator', // select your icon from http://jqueryui.com/themeroller/ |
|
24 | * 'icon' : 'ui-icon-calculator', // select your icon from http://jqueryui.com/themeroller/ | |
25 | * 'callback': function(){IPython.notebook.kernel.execute('%qtconsole')} |
|
25 | * 'callback': function(){IPython.notebook.kernel.execute('%qtconsole')} | |
26 | * } |
|
26 | * } | |
27 | * // add more button here if needed. |
|
27 | * // add more button here if needed. | |
28 | * ]); |
|
28 | * ]); | |
29 | * }); |
|
29 | * }); | |
30 | * |
|
30 | * | |
31 | * Example : |
|
31 | * Example : | |
32 | * |
|
32 | * | |
33 | * Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );` |
|
33 | * Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );` | |
34 | * to load custom script into the notebook. |
|
34 | * to load custom script into the notebook. | |
35 | * |
|
35 | * | |
36 | * // to load the metadata ui extension example. |
|
36 | * // to load the metadata ui extension example. | |
37 | * $.getScript('/static/js/celltoolbarpresets/example.js'); |
|
37 | * $.getScript('/static/notebooks/js/celltoolbarpresets/example.js'); | |
38 | * // or |
|
38 | * // or | |
39 | * // to load the metadata ui extension to control slideshow mode / reveal js for nbconvert |
|
39 | * // to load the metadata ui extension to control slideshow mode / reveal js for nbconvert | |
40 | * $.getScript('/static/js/celltoolbarpresets/slideshow.js'); |
|
40 | * $.getScript('/static/notebooks/js/celltoolbarpresets/slideshow.js'); | |
41 | * |
|
41 | * | |
42 | * |
|
42 | * | |
43 | * @module IPython |
|
43 | * @module IPython | |
44 | * @namespace IPython |
|
44 | * @namespace IPython | |
45 | * @class customjs |
|
45 | * @class customjs | |
46 | * @static |
|
46 | * @static | |
47 | */ |
|
47 | */ |
@@ -1,71 +1,71 | |||||
1 |
|
1 | |||
2 |
|
2 | |||
3 | <!DOCTYPE HTML> |
|
3 | <!DOCTYPE HTML> | |
4 | {% macro static_url(name) -%} |
|
4 | {% macro static_url(name) -%} | |
5 | {{ base_project_url }}static/{{ name }} |
|
5 | {{ base_project_url }}static/{{ name }} | |
6 | {%- endmacro %} |
|
6 | {%- endmacro %} | |
7 | <html> |
|
7 | <html> | |
8 |
|
8 | |||
9 | <head> |
|
9 | <head> | |
10 | <meta charset="utf-8"> |
|
10 | <meta charset="utf-8"> | |
11 |
|
11 | |||
12 | <title>{% block title %}IPython Notebook{% endblock %}</title> |
|
12 | <title>{% block title %}IPython Notebook{% endblock %}</title> | |
13 | <link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}"> |
|
13 | <link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}"> | |
14 | <meta http-equiv="X-UA-Compatible" content="chrome=1"> |
|
14 | <meta http-equiv="X-UA-Compatible" content="chrome=1"> | |
15 | <link rel="stylesheet" href="{{static_url("jquery/css/themes/base/jquery-ui.min.css") }}" type="text/css" /> |
|
15 | <link rel="stylesheet" href="{{static_url("jquery/css/themes/base/jquery-ui.min.css") }}" type="text/css" /> | |
16 | <link rel="stylesheet" href="{{static_url("base/css/boilerplate.css") }}" type="text/css" /> |
|
16 | <link rel="stylesheet" href="{{static_url("base/css/boilerplate.css") }}" type="text/css" /> | |
17 | {% block stylesheet %} |
|
17 | {% block stylesheet %} | |
18 | {% block lesscss %} |
|
18 | {% block lesscss %} | |
19 | {% endblock lesscss%} |
|
19 | {% endblock lesscss%} | |
20 | {% endblock %} |
|
20 | {% endblock %} | |
21 |
|
|
21 | <link rel="stylesheet" href="{{ static_url("user/css/custom.css") }}" type="text/css" /> | |
22 |
|
22 | |||
23 |
|
23 | |||
24 | {% block meta %} |
|
24 | {% block meta %} | |
25 | {% endblock %} |
|
25 | {% endblock %} | |
26 |
|
26 | |||
27 | </head> |
|
27 | </head> | |
28 |
|
28 | |||
29 | <body {% block params %}{% endblock %}> |
|
29 | <body {% block params %}{% endblock %}> | |
30 |
|
30 | |||
31 | <div id="header"> |
|
31 | <div id="header"> | |
32 | <span id="ipython_notebook"><div><a href="{{base_project_url}}" alt='dashboard'><img src='{{static_url("base/images/ipynblogo.png") }}' alt='IPython Notebook'/></a></div></span> |
|
32 | <span id="ipython_notebook"><div><a href="{{base_project_url}}" alt='dashboard'><img src='{{static_url("base/images/ipynblogo.png") }}' alt='IPython Notebook'/></a></div></span> | |
33 |
|
33 | |||
34 | {% block login_widget %} |
|
34 | {% block login_widget %} | |
35 |
|
35 | |||
36 | <span id="login_widget"> |
|
36 | <span id="login_widget"> | |
37 | {% if logged_in %} |
|
37 | {% if logged_in %} | |
38 | <button id="logout">Logout</button> |
|
38 | <button id="logout">Logout</button> | |
39 | {% elif login_available and not logged_in %} |
|
39 | {% elif login_available and not logged_in %} | |
40 | <button id="login">Login</button> |
|
40 | <button id="login">Login</button> | |
41 | {% endif %} |
|
41 | {% endif %} | |
42 | </span> |
|
42 | </span> | |
43 |
|
43 | |||
44 | {% endblock %} |
|
44 | {% endblock %} | |
45 |
|
45 | |||
46 | {% block header %} |
|
46 | {% block header %} | |
47 | {% endblock %} |
|
47 | {% endblock %} | |
48 | </div> |
|
48 | </div> | |
49 |
|
49 | |||
50 | <div id="site"> |
|
50 | <div id="site"> | |
51 | {% block site %} |
|
51 | {% block site %} | |
52 | {% endblock %} |
|
52 | {% endblock %} | |
53 | </div> |
|
53 | </div> | |
54 |
|
54 | |||
55 | <script src="{{static_url("jquery/js/jquery-1.7.1.min.js") }}" type="text/javascript" charset="utf-8"></script> |
|
55 | <script src="{{static_url("jquery/js/jquery-1.7.1.min.js") }}" type="text/javascript" charset="utf-8"></script> | |
56 | <script src="{{static_url("jquery/js/jquery-ui.min.js") }}" type="text/javascript" charset="utf-8"></script> |
|
56 | <script src="{{static_url("jquery/js/jquery-ui.min.js") }}" type="text/javascript" charset="utf-8"></script> | |
57 | <script src="{{static_url("base/js/namespace.js") }}" type="text/javascript" charset="utf-8"></script> |
|
57 | <script src="{{static_url("base/js/namespace.js") }}" type="text/javascript" charset="utf-8"></script> | |
58 | <script src="{{static_url("base/js/page.js") }}" type="text/javascript" charset="utf-8"></script> |
|
58 | <script src="{{static_url("base/js/page.js") }}" type="text/javascript" charset="utf-8"></script> | |
59 | <script src="{{static_url("auth/js/loginwidget.js") }}" type="text/javascript" charset="utf-8"></script> |
|
59 | <script src="{{static_url("auth/js/loginwidget.js") }}" type="text/javascript" charset="utf-8"></script> | |
60 |
|
60 | |||
61 | {% block script %} |
|
61 | {% block script %} | |
62 | {% if use_less %} |
|
62 | {% if use_less %} | |
63 | <script src="{{ static_url("components/less.js/dist/less-1.3.3.min.js") }}" charset="utf-8"></script> |
|
63 | <script src="{{ static_url("components/less.js/dist/less-1.3.3.min.js") }}" charset="utf-8"></script> | |
64 | {% endif %} |
|
64 | {% endif %} | |
65 | {% endblock %} |
|
65 | {% endblock %} | |
66 |
|
66 | |||
67 |
|
|
67 | <script src="{{static_url("user/js/custom.js") }}" type="text/javascript" charset="utf-8"></script> | |
68 |
|
68 | |||
69 | </body> |
|
69 | </body> | |
70 |
|
70 | |||
71 | </html> |
|
71 | </html> |
General Comments 0
You need to be logged in to leave comments.
Login now