-
Notifications
You must be signed in to change notification settings - Fork 19
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
conda execute a Jupyter notebook #3
Comments
Original thread came from https://twitter.com/mrocklin/status/655100657016242176 It seems nbconvert is already in this space, the only way I would want
Rather than bake any of this in,
Of course, to do this, conda-execute does need to read the metadata from the notebook format. |
I think that it would be valuable to have conda setting up environments based on notebook metadata. One way to do this might be a custom kernelspec manager which could look at metadata when a notebook is opened and construct a suitable environment at that time. I think we've talked to @ahmadia about a similar idea w/r/t hashdist. |
Hi folks. We've been trying to figure out how to do this from the conda side as well. As @takluyver mentioned, one option is to attach the conda environment directly to the notebook metadata. See the discussion here: conda-archive/conda-env#111 and the feature here: http://conda.pydata.org/docs/commands/env/conda-env-attach.html From there, you need a corresponding launch action. One option is conda launch from @ijstokes - https://github.com/conda/conda-launch cc: @chdoig @damianavila @pwang @malev I'm happy to discuss here a bit more about what the various options are and what we like/dislike about each. |
Of course, anything we do for conda should be similarly applicable to HashDist. Thanks for the mention @takluyver. |
For Running the notebook app in the env seem unnecessary as IIUC, you want to run the notebook kernel in the env,
This will already be taken care of if you use |
This made sense when the kernel spec was changing rapidly and you wanted the app version to match the kernel version. I agree that this is not a hard requirement for using environments. |
One potential approach:
Ping @minrk / @takluyver for your wisdom. Are there any patterns I can follow? This is essentially an extension of https://github.com/takluyver/nbopen but with the addition of ensuring there is an appropriate kernel running.
The text was updated successfully, but these errors were encountered: