santosjorge / cufflinks

Productivity Tools for Plotly + Pandas
MIT License
3.02k stars 675 forks source link

Sharing="Secret" Gives "404 Error" in Cufflinks #53

Open RichardAfolabi opened 7 years ago

RichardAfolabi commented 7 years ago

I'm using Python3 and configured Cufflinks to use cf.set_config_file(sharing="secret", offline=False).

However, when the iframe is embedded in an HTML document, I receive the error:

404 Plot twist! There's nothing here...

But the same plot directly implemented with Python without Cufflinks displays fine in HTML. The plot only displays if I'm logged in to Plotly in the same browser I'm using to view the HTML. I'm thinking this is the behaviour for sharing="private"

Is my cf.set_config_file() incomplete? image

santosjorge commented 7 years ago

Hi @RichardAfolabi , have you configured your .credentials file already? This is the first step shown here: https://plot.ly/python/getting-started/

RichardAfolabi commented 7 years ago

import plotly as py

import pandas as pd

import cufflinks as cf

cf.set_config_file(theme='white', sharing='secret', offline=False) py.tools.set_credentials_file(username='Username', api_key='Newly_Generated_API_Keys') and I confirmed the credentials with py.tools.get_credentials_file()