diff --git a/config/plugins/visualizations/ipython/templates/ipython.mako b/config/plugins/visualizations/ipython/templates/ipython.mako index 6ee0ae3af0d..a7f382ef62c 100644 --- a/config/plugins/visualizations/ipython/templates/ipython.mako +++ b/config/plugins/visualizations/ipython/templates/ipython.mako @@ -145,40 +145,18 @@ if ( ${ password_auth_jsvar } ) { // If that is successful, load the notebook success: function(){ //Append an object to the body - $('body').append( - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }).append( - // And an embed to the object - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }) - ) - ); + $('body').append('' + +'' + ) }, error: function(jqxhr, status, error){ if(${ password_auth_jsvar } && !${ apache_urls_jsvar }){ $('body').append("Error, could not automatically authorize you. Your" + " password is: ${ notebook_pw }
Ask your administrator" + " to set apache_urls = True to make this go away"); - $('body').append( - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }).append( - // And an embed to the object - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }) - ) - ); + $('body').append('' + +'' + ) }else{ var error_msg = "

Error " + status + "

Could not connect to IPython Notebook: " @@ -195,20 +173,9 @@ if ( ${ password_auth_jsvar } ) { else { // Not using password auth, just embed it to avoid content-origin issues. $( document ).ready(function() { - $('body').append( - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }).append( - // And an embed to the object - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }) - ) - ); + $('body').append('' + +'' + ) }); }