-
Notifications
You must be signed in to change notification settings - Fork 7
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
local (especially Jupyter Notebook) dev / debug? #45
Comments
They are intended to be developed locally, but running them in a Jupyter notebook is perhaps nontrivial since Parsl requires to wrap the whole execution inside a context manager, and psiflow therefore also adopts that structure. def main():
# stuff
pass
if __name__ == '__main__':
with psiflow.load():
main() From your error, it looks like the |
Sorry, yes, that was an oversight on my part. And ok, that makes sense re: Parsl. Is there any way to pass the contents of an equivalent YAML file to the main psiflow object in a Jupyter Notebook? Also, even with the
And this is with the following config file, note gpu explicitly marked as false. I believe the assertion expects gpu to always be set to True?
|
Yes, you can just pass the contents of the YAML file as a dictionary to the import psiflow
if __name__ == '__main__':
config_dict = {
'retries': 0,
'ModelEvaluation': {
'gpu': False,
'use_threadpool': True,
'max_simulation_time': 0.4,
},
'ModelTraining': {
'gpu': True,
'use_threadpool': True,
},
}
with psiflow.load(config_dict):
print('test') At the moment, users are forced to also specify Does it raise any errors when you use the above config in your Jupyter environment? I'll talk to the people at Parsl to ask what the recommended way is for users to execute workflows in notebooks. We should put effort in making this more straightforward. |
Hi, I'm very interested in using Psiflow to set up MD experiments but I'm trying to get it running on my local machine before plugging it into e.g. the HPC cluster I have access to. However, I have a lot of issues doing this. For example, when I try to run the H2 static/dynamic example, I get:
And when I try to run the basic geometry example, I get:
Are Psiflow scripts not intended to be developed locally? Is there any guide on how to get it working in a Jupyter notebook? I am running Python 3.10.15, a fresh Conda virtual env and installed Psiflow via pip.
The text was updated successfully, but these errors were encountered: