From faf8af2076b6041f81f31449d8792b4053a02801 Mon Sep 17 00:00:00 2001 From: Vidar Tonaas Fauske Date: Thu, 22 Jun 2017 17:11:01 +0200 Subject: [PATCH] Move embed py module to ipywidgets root Note: This should be a pure move, except changes to relative imports. --- docs/source/embedding.md | 2 +- ipywidgets/{widgets => }/embed.py | 5 ++--- ipywidgets/tests/__init__.py | 0 ipywidgets/{widgets => }/tests/test_embed.py | 0 4 files changed, 3 insertions(+), 4 deletions(-) rename ipywidgets/{widgets => }/embed.py (99%) create mode 100644 ipywidgets/tests/__init__.py rename ipywidgets/{widgets => }/tests/test_embed.py (100%) diff --git a/docs/source/embedding.md b/docs/source/embedding.md index ed36ad5864..a301ec4343 100644 --- a/docs/source/embedding.md +++ b/docs/source/embedding.md @@ -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:: diff --git a/ipywidgets/widgets/embed.py b/ipywidgets/embed.py similarity index 99% rename from ipywidgets/widgets/embed.py rename to ipywidgets/embed.py index 0ef2f63258..27b23694d8 100644 --- a/ipywidgets/widgets/embed.py +++ b/ipywidgets/embed.py @@ -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""" diff --git a/ipywidgets/tests/__init__.py b/ipywidgets/tests/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ipywidgets/widgets/tests/test_embed.py b/ipywidgets/tests/test_embed.py similarity index 100% rename from ipywidgets/widgets/tests/test_embed.py rename to ipywidgets/tests/test_embed.py