Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ define([
a.attr({
'target' : '_blank',
'title' : 'Opens in a new window',
'href' : menu_item_spec['external-link'],
});
$('<i class="fa fa-external-link menu-icon pull-right"/>').appendTo(a);
$('<span/>').html(menu_item_spec.name).appendTo(a);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ remind you to put informative labels in your plots. If you don't
want, e.g., a title on your plot, just remove that line.


Installation
------------
To install this extension alone (without the [main collection of nbextensions](https://github.com/ipython-contrib/jupyter_contrib_nbextensions)), run the following from the command line:

```bash
git clone git://github.com/moble/jupyter_boilerplate
jupyter nbextension install jupyter_boilerplate
jupyter nbextension enable jupyter_boilerplate/main
```

You can then disable the extension if you want with
```bash
jupyter nbextension disable jupyter_boilerplate/main
```


Basic menu customization
------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ define([
'name' : 'Conditional list comprehension',
'snippet' : ['[x**2 for x in range(-10, 11) if (x%3)==0]',],
},
{
'name' : 'Conditional alternative list comprehension',
'snippet' : ['[x**2 if (x%3)==0 else x**3 for x in range(-10, 11)]',],
},
{
'name' : 'Reversed list',
'snippet' : ['reversed(l)'],
Expand Down