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