Skip to content

Commit

Permalink
Move embed py module to ipywidgets root
Browse files Browse the repository at this point in the history
Note: This should be a pure move, except changes to relative imports.
  • Loading branch information
vidartf committed Jun 22, 2017
1 parent b62cac3 commit faf8af2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/embedding.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ corresponding to the same JSON schema.
## Python interface

Embeddable code for the widgets can also be produced from the Python side.
The following functions are available in the module `ipywidgets.widgets.embed`:
The following functions are available in the module `ipywidgets.embed`:

```rst
.. embed_snippet::
Expand Down
5 changes: 2 additions & 3 deletions ipywidgets/widgets/embed.py → ipywidgets/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
"""

import json
from .widget import Widget
from .domwidget import DOMWidget
from .widget_link import Link
from .widgets import Widget, DOMWidget
from .widgets.widget_link import Link


snippet_template = u"""<script src="{embed_url}"></script>
Expand Down
Empty file added ipywidgets/tests/__init__.py
Empty file.
File renamed without changes.

0 comments on commit faf8af2

Please sign in to comment.