Issue
How can I print my environment yaml to an output cell in a Jupyter notebook without creating the actual file?
Desired output:
Solution
If you don't have an environment file you can call the conda command in the jupyter notebook and run it using the shell with:
! conda env export --from-history
The --from-history
option will ensure your output is just the packages you've installed via conda. The full specification can be retrieved with:
! conda env export
Answered By - Sparrow0hawk
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.