title: How to execute Python code generated by Blockly right in the browser?
body: <p>I was following the example <a href="https://developers.google.com/blockly/installation/code-generators" rel="nofollow">Blockly Code Generators</a> and was able to generate Python codes.  But when I run the Python code, I get an error. It seems the error is 'eval(code)' below, what should I do if I want to execute the Python code right inside the browser?  Thanks for any help!</p>
  
  <pre><code>Blockly.JavaScript.addReservedWords('code');
  var code = Blockly.JavaScript.workspaceToCode(workspace);
  try {
    eval(code);
  } catch (e) {
    alert(e);
  }
  </code></pre>
  
  <p><a href="http://postimg.org/image/t4j6l6y2p/" rel="nofollow">here is the snapshot</a> Unfortunately i dont have enough points to post the image here</p>