Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execfile tip added #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

execfile tip added #175

wants to merge 1 commit into from

Conversation

JLammering
Copy link

it was said in the lesson but was missing in the script and I find it really useful

@chrisburr
Copy link
Member

@JLammering Thanks for the PR, I'm just checking with one of the ganga developers if this is the recommended method of doing this or if it should it be done the other way I know.

@mesmith75 Is there a preference between using execfile(my_submission_script.py) and %ganga my_submission_script.py?

@mesmith75
Copy link
Contributor

So I don't think execfile runs things in the background. It just executes the python in the file. What you really need is to teach them about the queues.

@alexpearce
Copy link
Member

I think the nice thing about executing a job creation script is that the job creation is encapsulated in a script which can be easily re-run, rather than being done interactively. So, I would re-frame the bullet point to highlight that.

I don't think having this happen in the background is relevant (not that it does with execfile or %ganga).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants