AKuederle / plotly_unbrand

A small package to remove the branding from plotly plots
MIT License
14 stars 0 forks source link

Q: Does unbranding work for dynamically plotted figure objects? #1

Open fkromer opened 4 years ago

fkromer commented 4 years ago

Does unbranding work when plotting plots in JupyterLab and Jupyter Notebook notebooks with e.g.

import plotly.graph_objects as go

fig = go.Figure(...)
fig.show()

or

fig = go.Figure(...)
fig

on the fly?

AKuederle commented 4 years ago

I haven't tested this usecase, but I would assume no.

Could you test it?

On Tue, Nov 19, 2019, 15:03 Florian Kromer notifications@github.com wrote:

Does unbranding work when plotting plots in JupyterLab and Jupyter Notebook notebooks with e.g.

import plotly.graph_objects as go

fig = go.Figure(...) fig.show()

or

fig = go.Figure(...) fig

on the fly?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AKuederle/plotly_unbrand/issues/1?email_source=notifications&email_token=ACSHBO6QQJ3MCV4IXR4BL4TQUPW27A5CNFSM4JPD2BD2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2LKEAA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSHBO6Q44PSYVFGIRFZEVLQUPW27ANCNFSM4JPD2BDQ .

fkromer commented 4 years ago

In case I find the time to do so I'll let you know.

fkromer commented 4 years ago

That's another issue but probably worth to be mentioned. When I execute

from plotly_unbrand import unbrand
unbrand()

I get a module deprecation exception:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-a7ea1bfd1a30> in <module>
----> 1 from plotly_unbrand import unbrand
      2 unbrand()

c:\users\florian\.virtualenvs\data-processing-a_m7qh6p\lib\site-packages\plotly_unbrand\__init__.py in <module>
----> 1 import plotly.plotly
      2 import plotly.offline
      3 
      4 from functools import wraps
      5 

c:\users\florian\.virtualenvs\data-processing-a_m7qh6p\lib\site-packages\plotly\plotly\__init__.py in <module>
      2 from _plotly_future_ import _chart_studio_error
      3 
----> 4 _chart_studio_error("plotly")

c:\users\florian\.virtualenvs\data-processing-a_m7qh6p\lib\site-packages\_plotly_future_\__init__.py in _chart_studio_error(submodule)
     47 chart_studio.{submodule} module instead.
     48 """.format(
---> 49             submodule=submodule
     50         )
     51     )

ImportError: 
The plotly.plotly module is deprecated,
please install the chart-studio package and use the
chart_studio.plotly module instead.