Start the session if you try and run code#159
Conversation
|
I wonder whether that's always the behavior you want. What if you intentionally stopped the Matlab process? One option is to raise an informative error instead of this one, and force users to call |
|
I think the warning is a good compromise, what do you think @isbadawi? |
|
I'm not sure I see the value in auto-starting it -- explicit is better than implicit, etc. I'd prefer to just see an exception. But I don't really feel strongly either way. Maybe just play with the API to make this less of a pain point? You could add a function that returns an already started session, since you often create and start a session at the same time anyway, or make (Reminds me of a similar problem with |
Start the session if you try and run code
Prior to this change, trying to run
m.version()without callingm.start()gave this unhelpful message:Also allows you to use
m = Matlab().start()