Error with : py.iplot(fig, filename='Bezier-triangular-patch') in Plotting Bézier Triangular Patches with Python Plotly

Hello…
I had tried many times to visualize the Bezier Triangular Patch in the topic as I mentioned above and unfortunately I always failed. Many thanks for someone who can give me the solution to solve my problem.
Below, I posting the code and error displayed…

Code (as showed in the website):
fig=plot_Surface(n, b, m, ‘Bezier triangular patch of degree 4’)
py.iplot(fig, filename=‘Bezier-triangular-patch’)

Error:

ProxyError Traceback (most recent call last)
in ()
1 fig=plot_Surface(n, b, m, ‘Bezier triangular patch of degree 4’)
----> 2 py.iplot(fig, filename=‘Bezier-triangular-patch’)

/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.pyc in iplot(figure_or_data, **plot_options)
149 if ‘auto_open’ not in plot_options:
150 plot_options[‘auto_open’] = False
–> 151 url = plot(figure_or_data, **plot_options)
152
153 if isinstance(figure_or_data, dict):

/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.pyc in plot(figure_or_data, validate, **plot_options)
239
240 plot_options = _plot_option_logic(plot_options)
–> 241 res = _send_to_plotly(figure, **plot_options)
242 if res[‘error’] == ‘’:
243 if plot_options[‘auto_open’]:

/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.pyc in _send_to_plotly(figure, **plot_options)
1424
1425 r = requests.post(url, data=payload,
-> 1426 verify=get_config()[‘plotly_ssl_verification’])
1427 r.raise_for_status()
1428 r = json.loads(r.text)

/usr/lib/python2.7/dist-packages/requests/api.pyc in post(url, data, **kwargs)
86 “”"
87
—> 88 return request(‘post’, url, data=data, **kwargs)
89
90

/usr/lib/python2.7/dist-packages/requests/api.pyc in request(method, url, **kwargs)
42
43 session = sessions.Session()
—> 44 return session.request(method=method, url=url, **kwargs)
45
46

/usr/lib/python2.7/dist-packages/requests/sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert)
453 ‘allow_redirects’: allow_redirects,
454 }
–> 455 resp = self.send(prep, **send_kwargs)
456
457 return resp

/usr/lib/python2.7/dist-packages/requests/sessions.pyc in send(self, request, **kwargs)
556 start = datetime.utcnow()
557 # Send the request
–> 558 r = adapter.send(request, **kwargs)
559 # Total elapsed time of the request (approximately)
560 r.elapsed = datetime.utcnow() - start

/usr/lib/python2.7/dist-packages/requests/adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies)
379
380 except _ProxyError as e:
–> 381 raise ProxyError(e)
382
383 except (_SSLError, _HTTPError) as e:

ProxyError: Cannot connect to proxy. Socket error: [Errno 111] Connection refused.

Download the notebook from github https://github.com/empet/geom_modeling and run it again. I’ve just run it
and here is the plot: https://plot.ly/~empet/1945/bezier-triangular-patch-of-degree-4/

Thank you for your reply, it’s give me enlightenment. … Btw, actually I use Ubuntu and download Ipython Notebook from Synaptic Package Manager, and according to your reply, do you mean that I should download Jupyter Notebook from Gifthub and then replace it?

No, I didn’t say to download the web application, Jupyter Notebook, from github, but the notebook file that contains the code for triangular Bezier surfaces: http://nbviewer.jupyter.org/github/empet/geom_modeling/blob/master/Bezier-triangular-patch-in-plotly.ipynb

I’ve try to running the code, either by download all the file included using zip file or following the code in http://nbviewer.jupyter.org/github/empet/geom_modeling/blob/master/Bezier-triangular-patch-in-plotly.ipynb. Unfortunately, the errors are always appears (Nb: I put all the code exactly same except didn’t put the code for image .png file).
Below are the errors explanation.

Errors:

ProxyError Traceback (most recent call last)
in ()
1 fig=plot_Surface(n, b, m, ‘Bezier triangular patch of degree 4’)
----> 2 py.iplot(fig, filename=‘Bezier-triangular-patch’)

/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.pyc in iplot(figure_or_data, **plot_options)
149 if ‘auto_open’ not in plot_options:
150 plot_options[‘auto_open’] = False
–> 151 url = plot(figure_or_data, **plot_options)
152
153 if isinstance(figure_or_data, dict):

/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.pyc in plot(figure_or_data, validate, **plot_options)
239
240 plot_options = _plot_option_logic(plot_options)
–> 241 res = _send_to_plotly(figure, **plot_options)
242 if res[‘error’] == ‘’:
243 if plot_options[‘auto_open’]:

/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.pyc in _send_to_plotly(figure, **plot_options)
1424
1425 r = requests.post(url, data=payload,
-> 1426 verify=get_config()[‘plotly_ssl_verification’])
1427 r.raise_for_status()
1428 r = json.loads(r.text)

/usr/lib/python2.7/dist-packages/requests/api.pyc in post(url, data, **kwargs)
86 “”"
87
—> 88 return request(‘post’, url, data=data, **kwargs)
89
90

/usr/lib/python2.7/dist-packages/requests/api.pyc in request(method, url, **kwargs)
42
43 session = sessions.Session()
—> 44 return session.request(method=method, url=url, **kwargs)
45
46

/usr/lib/python2.7/dist-packages/requests/sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert)
453 ‘allow_redirects’: allow_redirects,
454 }
–> 455 resp = self.send(prep, **send_kwargs)
456
457 return resp

/usr/lib/python2.7/dist-packages/requests/sessions.pyc in send(self, request, **kwargs)
556 start = datetime.utcnow()
557 # Send the request
–> 558 r = adapter.send(request, **kwargs)
559 # Total elapsed time of the request (approximately)
560 r.elapsed = datetime.utcnow() - start

/usr/lib/python2.7/dist-packages/requests/adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies)
379
380 except _ProxyError as e:
–> 381 raise ProxyError(e)
382
383 except (_SSLError, _HTTPError) as e:

ProxyError: Cannot connect to proxy. Socket error: [Errno 111] Connection refused.