I have an external python function that I want to run inside a Jupyter Notebook. It performs, among other things, the osmethod setpgrp:
os.setpgrp()
When I run the function, it causes the following error:
OSError: [Errno 1] Operation not allowed
The code works fine (no errors or warnings) when I call the method from a regular python .pyscript or directly from the console. The problem only occurs in a Jupyter laptop.
I got the same error when I run the following code directly in the notebook:
import os
os.setpgrp()
I changed the permission and ownership of all related files, started Jupyter with sudo, but did not change anything.
OS: Lubuntu 16.04
Do you have any ideas what might cause this error?