Skip to content

Commit

Permalink
allow suspensions
Browse files Browse the repository at this point in the history
  • Loading branch information
albertjan authored Apr 25, 2018
1 parent 38cdf8e commit ad52eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matplotlib/pyplot/__init__.js
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ var $builtinmodule = function(name) {

// import numpy
var CLASS_NDARRAY = "numpy.ndarray"; // maybe make identifier accessible in numpy module
return Sk.misceval.chain(Sk.importModule("numpy"), function(np) {
return Sk.misceval.chain(Sk.importModule("numpy", false, true), function(np) {
var ndarray_f = np['$d'].array.func_code;
var getitem_f = np['$d'][CLASS_NDARRAY]['__getitem__'].func_code;
var ndarray = Sk.misceval.callsim(np['$d'].array.func_code, new Sk.builtin.list([1,2,3,4]));
Expand Down

0 comments on commit ad52eb3

Please sign in to comment.