coin-or / pulp

A python Linear Programming API
http://coin-or.github.io/pulp/
Other
2.04k stars 381 forks source link

Re-enabling SCIP inside Jupyter Notebooks (regression) #673

Open mdealencar opened 1 year ago

mdealencar commented 1 year ago

Commit https://github.com/coin-or/pulp/commit/0c2b9418136406c7c54054f4ccbf0ec90b9787c4 removed the changes made by commit https://github.com/coin-or/pulp/commit/a587e8e69d6629b3a55b2559a08179f019085253 that addressed the issues (now closed) #427 and #428. The result is that the current master branch is producing the same error as described in that issue:

File ~\programs\miniconda\envs\work\lib\site-packages\ipykernel\iostream.py:356, in OutStream.fileno(self)
    354 else:
    355     msg = "fileno"
--> 356     raise io.UnsupportedOperation(msg)

UnsupportedOperation: fileno

What operating system are you using?

I'm using python version:

I installed PuLP via:

Did you also

pchtsp commented 11 months ago

Thanks. And sorry to hear about the regression: it's hard to test for jupyter notebooks since we do not have unit tests for that.

  1. Do you know if there's a way to add a test to be sure that a regression doesn't happen again?/ more broadly add a jupyter notebook test?
  2. Would you be able to add a new PR that adds back the changes?