Cannot upload a Jupyter notebook to plotly

I have created an interactive calculator (pic below) in Jupyter notebook with ipython widgets. The calculator is functional on my local desktop. I have my plotly credentials in the header of the notebook. I would like to upload this calculator to plotly and embed it in a website. But I am having a hard time uploading it to plotly.

I have been successful in uploading an interactive plot with ipython widget to plotly using the same credentials.

What could I be doing wrong? I am new to plotly and I would appreciate a helping hand.

import plotly
plotly.tools.set_credentials_file(username=‘xxx’, api_key=xxxx’)

import plotly.plotly as py
import numpy as np
import plotly.graph_objs as go

from ipywidgets import widgets
from IPython.display import display, clear_output, Image
from plotly.graph_objs import *
from plotly.widgets import GraphWidget