Skip to content

Commit a9cc1d8

Browse files
committed
Rename environment.yml to conda-environment.yml
1 parent ca6e7fc commit a9cc1d8

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.github/workflows/public-analyze-code-graph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
python-version: ${{ matrix.python }}
110110
miniforge-version: ${{ matrix.miniforge }}
111111
activate-environment: codegraph
112-
environment-file: ./environment.yml
112+
environment-file: ./conda-environment.yml
113113
auto-activate-base: false
114114
show-channel-urls: true
115115
- name: (Python Setup) Conda environment info

COMMANDS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,23 +389,23 @@ Here is an example on how to use [executeJupyterNotebook.sh](./scripts/executeJu
389389
conda activate codegraph
390390
```
391391

392-
or by using the codegraph environment file [environment.yml](./environment.yml):
392+
or by using the codegraph environment file [conda-environment.yml](./conda-environment.yml):
393393

394394
```shell
395-
conda env create --file ./environment.yml
395+
conda env create --file ./conda-environment.yml
396396
conda activate codegraph
397397
```
398398

399-
- Export full environment.yml
399+
- Export full conda-environment.yml
400400

401401
```shell
402-
conda env export --name codegraph > full-codegraph-environment.yml
402+
conda env export --name codegraph > full-codegraph-conda-environment.yml
403403
```
404404

405-
- Export only explicit environment.yml
405+
- Export only explicit conda-environment.yml
406406

407407
```shell
408-
conda env export --from-history --name codegraph | grep -v "^prefix: " > explicit-codegraph-environment.yml
408+
conda env export --from-history --name codegraph | grep -v "^prefix: " > explicit-codegraph-conda-environment.yml
409409
```
410410

411411
### Executing Jupyter Notebooks with nbconvert

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ The [Code Structure Analysis Pipeline](./.github/workflows/internal-java-code-an
137137
- Start [Neo4j](https://neo4j.com) Graph Database ([analysis.sh](./scripts/analysis/analyze.sh))
138138
- Generate CSV Reports [scripts/reports](./scripts/reports) using the command line JSON parser [jq](https://jqlang.github.io/jq)
139139
- Uses [Neo4j Graph Data Science](https://neo4j.com/product/graph-data-science) for community detection, centrality, similarity, node embeddings and topological sort ([analysis.sh](./scripts/analysis/analyze.sh))
140-
- Generate [Jupyter Notebook](https://jupyter.org) reports using these libraries specified in the [environment.yml](./environment.yml):
140+
- Generate [Jupyter Notebook](https://jupyter.org) reports using these libraries specified in the [conda-environment.yml](./conda-environment.yml):
141141
- [Python](https://www.python.org)
142142
- [jupyter](https://jupyter.org)
143143
- [matplotlib](https://matplotlib.org)
File renamed without changes.

scripts/activateCondaEnvironment.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Activates the Conda (Python package manager) environment "codegraph" with all packages needed to execute the Jupyter Notebooks.
44

55
# Note: This script uses the conda environment defined in CODEGRAPH_CONDA_ENVIRONMENT (defaults to "codegraph").
6-
# If the environment hadn't been created yet, it will use "environment.yml" from the root directory
6+
# If the environment hadn't been created yet, it will use "conda-environment.yml" from the root directory
77
# in the same directory as the given jupyter notebook ipynb file
88
# to create the environment.
99

@@ -25,7 +25,7 @@ echo "activateCondaEnvironment: JUPYTER_NOTEBOOK_DIRECTORY=${JUPYTER_NOTEBOOK_DI
2525

2626
# Get the file name of the environment description file for the conda package and environment manager
2727
# that contains all dependencies and their versions.
28-
CONDA_ENVIRONMENT_FILE=${CONDA_ENVIRONMENT_FILE:-"${JUPYTER_NOTEBOOK_DIRECTORY}/../environment.yml"} # Conda (package manager for Python) environment file path
28+
CONDA_ENVIRONMENT_FILE=${CONDA_ENVIRONMENT_FILE:-"${JUPYTER_NOTEBOOK_DIRECTORY}/../conda-environment.yml"} # Conda (package manager for Python) environment file path
2929
if [ ! -f "${CONDA_ENVIRONMENT_FILE}" ] ; then
3030
echo "activateCondaEnvironment: Couldn't find environment file ${CONDA_ENVIRONMENT_FILE}."
3131
exit 2

scripts/executeJupyterNotebook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# The original ones are typically saved with all outputs cleared to be able to better compare their changes with git diff.
1212

1313
# Note: This script uses the conda environment defined in CODEGRAPH_CONDA_ENVIRONMENT (defaults to "codegraph").
14-
# If the environment hadn't been created yet it will use "environment.yml"
14+
# If the environment hadn't been created yet it will use "conda-environment.yml"
1515
# in the same directory as the given jupyter notebook ipynb file
1616
# to create the environment.
1717

0 commit comments

Comments
 (0)