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

JOSS Review: Errros in Working_with_ipyparallel #36

Closed
ayush9pandey opened this issue Jul 6, 2023 · 2 comments
Closed

JOSS Review: Errros in Working_with_ipyparallel #36

ayush9pandey opened this issue Jul 6, 2023 · 2 comments

Comments

@ayush9pandey
Copy link

I had to add !pip install ipyparallel to run this notebook, and then ran into this:

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
Cell In[5], line 1
----> 1 cluster = ipp.Cluster.from_file()
      2 rc = cluster.connect_client_sync()
      3 # wait to get the engines and print their id

File /srv/conda/envs/notebook/lib/python3.10/site-packages/ipyparallel/cluster/cluster.py:556, in Cluster.from_file(cls, cluster_file, profile, profile_dir, cluster_id, **kwargs)
    554 # ensure from_file preserves cluster_file, even if it moved
    555 kwargs.setdefault("cluster_file", cluster_file)
--> 556 with open(cluster_file) as f:
    557     return cls.from_dict(json.load(f), **kwargs)

FileNotFoundError: [Errno 2] No such file or directory: '/home/jovyan/.ipython/profile_default/security/cluster-.json'
@fbergmann
Copy link
Member

good call, I add description to the notebook, that after installing the ipyparallels package the cluster first has to be started.

Start the ipyparallel cluster

as otherwise the error message you had showing would come up.

@fbergmann
Copy link
Member

This has been fixed and the documentation is on readthedocs with the example.

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

No branches or pull requests

2 participants