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

Support mybinder.org via pymc3, py2 #441

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nealmcb
Copy link

@nealmcb nealmcb commented Feb 1, 2019

Work in progress to get this running under Binder (beta), the free Jupyter notebook execution environment in the cloud.

To use: just click on launch binder button in README.md (which will have to have new parameters to track the proper repo and branch during a successful PR).

Wait for it to start, then switch to a Python 2 kernel and run all cells.
But observe it timeout in cell 38 or so, as documented in the commits.

Anyone know how to get it running in Python 3?
Or make Python 2 the default kernel for the notebooks?

Note that first the Ch2 PyMC3 notebook needed this adjustment
 "Kernel/Change kernel/Python 2"

Then after a "Cell/Run All", there is an error message in the cell containing
`trace = pm.sample(40000, step=step)`:

 Multiprocess sampling (4 chains in 4 jobs)
 CompoundStep
 >Metropolis: [freq_cheating]
 >BinaryGibbsMetropolis: [truths, first_flips, second_flips]
 /srv/conda/envs/kernel/lib/python2.7/site-packages/joblib/externals/loky/process_executor.py:700: UserWarning: A worker stopped while some jobs were given to the executor. This can be caused by a too short worker timeout or by a memory leak.
   "timeout or by a memory leak.", UserWarning

Perhaps the sample parameter chould be reduced to reduce the time, or a comment could be added noting that it takes perhaps 25 minutes to run the cell?
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.

1 participant