Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I found a workaround that works for now.

First save as html

some_plots = parametric_plot3d([(cos(u) * sin(v))^3, (sin(u) * sin(v))^3, (cos(v)^3)], (u,0,pi), (v,0,2*pi), alpha=.6, mesh=True, frame=False)
some_plots.save('some_plots.html')

and then display using IFrame, choosing the width and height as desired.

from IPython.display import IFrame
url = './some_plots.html'
IFrame(url, width=950, height=750)

I found a workaround that works for now.

First save as html

some_plots = parametric_plot3d([(cos(u) * sin(v))^3, (sin(u) * sin(v))^3, (cos(v)^3)], (u,0,pi), (v,0,2*pi), alpha=.6, mesh=True, frame=False)
some_plots.save('some_plots.html')

and then display using IFrame, choosing the width and height as desired.

from IPython.display import IFrame
url = './some_plots.html'
IFrame(url, width=950, height=750)

I found a workaround for now.

First save as html

var('u v')    
some_plots = parametric_plot3d([(cos(u) * sin(v))^3, (sin(u) * sin(v))^3, (cos(v)^3)], (u,0,pi), (v,0,2*pi), alpha=.6, mesh=True, frame=False)
 some_plots.save('some_plots.html')

and then display using IFrame, choosing the width and height as desired.

from IPython.display import IFrame
url = './some_plots.html'
IFrame(url, width=950, height=750)

I found a workaround for now.

First save as html

var('u v')    
some_plots = parametric_plot3d([(cos(u) * sin(v))^3, (sin(u) * sin(v))^3, (cos(v)^3)], (u,0,pi), (v,0,2*pi), alpha=.6, mesh=True, frame=False)
 some_plots.save('some_plots.html')

and then display using IFrame, choosing the width and height as desired.

from IPython.display import IFrame
url = './some_plots.html'
IFrame(url, width=950, height=750)