-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: Fixes to conda environment names #23851
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
Comments
this is ok |
i will take a look! |
Thanks @charlesdong1991, let me know if you need clarifications or help. |
Hi, @datapythonista , sorry, i think i do need your help, following your explanation above, i did a small modification to change pandas to pandas-dev, not sure if it's the right place to do... and appreciate a lot if you could give more clarifications |
The main changes required are:
For example, in |
I'd like to add one more location to this: "metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
+ "name": "pandas-dev"
- "name": "python3"
}, |
You should be able to fix that with a jupyter kernelspec command. Kernel names don’t have to be tied to environment names, and I think python3 is the default.
…________________________________
From: h-vetinari <[email protected]>
Sent: Thursday, November 22, 2018 10:28
To: pandas-dev/pandas
Cc: Tom Augspurger; Mention
Subject: Re: [pandas-dev/pandas] CLN: Fixes to conda environment names (#23851)
I'd like to add one more location to this: doc/source/style.ipynb
For compiling the docs, I always have to change the name of the kernel in there, to make ipython use the right one:
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
+ "name": "pandas-dev"
- "name": "python3"
},
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#23851 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABQHIqoDu8ezsDhx5buZmCRhMElxq13qks5uxtCegaJpZM4Yueaf>.
|
@TomAugspurger Yes, of course, but I don't want my |
We have some inconsistency regarding the names of the conda environment. At the moment, all environments for the CI are named
pandas
, and the environment created locally following the set up instructions (and usingenvironment.yml
) is namedpandas-dev
.Then, inside several scripts (e.g.
ci/code_checks.sh
) we do asource activate pandas
. Which means that the script works well in CI jobs, but it fails locally unless we also have apandas
environment locally.Another thing is that in the CI config we use a
CONDA_ENV
environment variable, and we ignore the conda environment names in the yaml files.What I would do is:
pandas-dev
as the environment name in all our conda yaml files-n $CONDA_ENV
as we do now)source activate
inside the scripts (use it in the steps in the CI config files when needed). This way when running scripts locally, the current environment will be used@jreback @TomAugspurger @jorisvandenbossche any objection?
The text was updated successfully, but these errors were encountered: