Skip to content

Commit b25809a

Browse files
committed
Namespace session import in plotly.py.
1 parent 193f613 commit b25809a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

plotly/plotly/plotly.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
import six.moves
2525
from requests.compat import json as _json
2626

27-
from plotly import exceptions, tools, utils, files
27+
from plotly import exceptions, files, session, tools, utils
2828
from plotly.api import v1, v2
2929
from plotly.plotly import chunked_requests
30-
from plotly.session import (sign_in, update_session_plot_options,
31-
get_session_plot_options)
3230
from plotly.grid_objs import Grid, Column
3331

3432
# This is imported like this for backwards compat. Careful if changing.
@@ -50,8 +48,8 @@
5048

5149

5250
# don't break backwards compatibility
53-
sign_in = sign_in
54-
update_plot_options = update_session_plot_options
51+
sign_in = session.sign_in
52+
update_plot_options = session.update_session_plot_options
5553

5654

5755
def _plot_option_logic(plot_options_from_call_signature):
@@ -66,7 +64,7 @@ def _plot_option_logic(plot_options_from_call_signature):
6664
"""
6765
default_plot_options = copy.deepcopy(DEFAULT_PLOT_OPTIONS)
6866
file_options = tools.get_config_file()
69-
session_options = get_session_plot_options()
67+
session_options = session.get_session_plot_options()
7068
plot_options_from_call_signature = copy.deepcopy(plot_options_from_call_signature)
7169

7270
# Validate options and fill in defaults w world_readable and sharing

0 commit comments

Comments
 (0)