tiburon-security / jupyterlab_scheduler

Jupyter Lab Plugin for scheduling recurring execution of files within the UI using Cron
MIT License
24 stars 18 forks source link

/bin/sh: 1: papermill: not found #2

Closed x0152 closed 4 years ago

x0152 commented 4 years ago

Hi! I've created job papermill /home/<jupyter-user>/test.ipynb /dev/null When it called i will got error: /bin/sh: 1: papermill: not found but if i will execute the code in terminal then it are working Under what user is the job executed?

x0152 commented 4 years ago

I've found solution https://github.com/tiburon-security/jupyterlab_scheduler/pull/3

jovanni-hernandez commented 4 years ago

Sorry haven't had a chance to look at your prs this week because of work - I assume your pr didn't actually fix the issue so you reopened?

To answer your earlier question, it just runs in the user environment / context of whatever account started jupyterlab. For example, in docker jupyterlab is started under a custom account called "jovyan"

Without having had a chance to dig into the code, I assume potential issues could be:

x0152 commented 4 years ago

I've tried run command echo '$PATH'. I got output: /bin/:/usr/bin/ but papermill is located /usr/local/bin I also tried to made links papermill in directory /usr/bin/, but job failed with error beacose ipython couldn't found libraries that i used in notebook. It fix allows run command like it was executed by user.

x0152 commented 4 years ago

Sorry haven't had a chance to look at your prs this week because of work - I assume your pr didn't actually fix the issue so you reopened? I think is better holding issue opened until you accept pull request or we will fix this in other way

jovanni-hernandez commented 4 years ago

Merged PR - thank you!