File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ def _matlab(self):
90
90
self ._validated_plot_settings ["size" ] = tuple (
91
91
self ._matlab .get (0. , "defaultfigureposition" )[0 ][2 :])
92
92
self .handle_plot_settings ()
93
+ return self .__matlab
93
94
94
95
def do_execute_direct (self , code ):
95
96
if pipes :
@@ -249,13 +250,14 @@ def do_shutdown(self, restart):
249
250
def _execute_async (self , code ):
250
251
try :
251
252
with pipes (stdout = _PseudoStream (partial (self .Print , end = "" )),
252
- stderr = _PseudoStream (partial (self .Error , end = "" ))):
253
+ stderr = _PseudoStream (partial (self .Error , end = "" ))):
253
254
kwargs = { 'nargout' : 0 , 'async' : True }
254
255
future = self ._matlab .eval (code , ** kwargs )
255
256
future .result ()
256
257
except (SyntaxError , MatlabExecutionError , KeyboardInterrupt ) as exc :
257
- stdout = exc .args [0 ]
258
- return ExceptionWrapper ("Error" , - 1 , stdout )
258
+ pass
259
+ #stdout = exc.args[0]
260
+ #return ExceptionWrapper("Error", -1, stdout)
259
261
260
262
def _execute_sync (self , code ):
261
263
out = StringIO ()
You can’t perform that action at this time.
0 commit comments