@@ -1307,11 +1307,11 @@ function optFinishSuccessfulExecution() {
13071307
13081308
13091309// TODO: cut reliance on the nasty rawInputLst global
1310- function executePythonCode ( pythonSourceCode ,
1311- backendScript , backendOptionsObj ,
1312- frontendOptionsObj ,
1313- outputDiv ,
1314- handleSuccessFunc , handleUncaughtExceptionFunc ) {
1310+ function executeCodeAndCreateViz ( codeToExec ,
1311+ backendScript , backendOptionsObj ,
1312+ frontendOptionsObj ,
1313+ outputDiv ,
1314+ handleSuccessFunc , handleUncaughtExceptionFunc ) {
13151315
13161316 function execCallback ( dataFromBackend ) {
13171317 var trace = dataFromBackend . trace ;
@@ -1497,7 +1497,7 @@ function executePythonCode(pythonSourceCode,
14971497 backendScript === ruby_backend_script ) {
14981498 // hack! should just be a dummy script for logging only
14991499 $ . get ( backendScript ,
1500- { user_script : pythonSourceCode ,
1500+ { user_script : codeToExec ,
15011501 options_json : JSON . stringify ( backendOptionsObj ) ,
15021502 user_uuid : supports_html5_storage ( ) ? localStorage . getItem ( 'opt_uuid' ) : undefined ,
15031503 // if we don't have any deltas, then don't bother sending deltaObj:
@@ -1512,14 +1512,14 @@ function executePythonCode(pythonSourceCode,
15121512 // The name of the callback parameter, as specified by the YQL service
15131513 jsonp : "callback" ,
15141514 dataType : "jsonp" ,
1515- data : { user_script : pythonSourceCode ,
1515+ data : { user_script : codeToExec ,
15161516 options_json : JSON . stringify ( backendOptionsObj ) } ,
15171517 success : execCallback ,
15181518 } ) ;
15191519 } else {
15201520 // Python 2 or 3
15211521 $ . get ( backendScript ,
1522- { user_script : pythonSourceCode ,
1522+ { user_script : codeToExec ,
15231523 raw_input_json : rawInputLst . length > 0 ? JSON . stringify ( rawInputLst ) : '' ,
15241524 options_json : JSON . stringify ( backendOptionsObj ) ,
15251525 user_uuid : supports_html5_storage ( ) ? localStorage . getItem ( 'opt_uuid' ) : undefined ,
0 commit comments