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

Add Jupyter notebook ouputs to online docs #63

Merged
merged 3 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![codecov](https://codecov.io/gh/bobleesj/cifkit/graph/badge.svg?token=AN2YAC337A)](https://codecov.io/gh/bobleesj/cifkit)
![Python - Version](https://img.shields.io/pypi/pyversions/cifkit)
[![PyPi version](https://img.shields.io/pypi/v/cifkit.svg)](https://pypi.python.org/pypi/cifkit)
[![Conda version](https://img.shields.io/conda/vn/conda-forge/cifkit)](https://anaconda.org/conda-forge/cifkit)

<a href="https://joss.theoj.org/papers/9016ae27b8c6fddffaae5aeb8be18d19"><img src="https://joss.theoj.org/papers/9016ae27b8c6fddffaae5aeb8be18d19/status.svg"></a>

Expand Down
13 changes: 1 addition & 12 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,7 @@ Python 3.10, 3.11, 3.12 are supported.
[![PyPi version](https://img.shields.io/pypi/v/cifkit.svg)](https://pypi.python.org/pypi/cifkit)
[![Conda version](https://img.shields.io/conda/vn/conda-forge/cifkit)](https://anaconda.org/conda-forge/cifkit)

Option 1. conda install

The preferred method is to install `cifkit` using Conda:

```bash
conda create -n cifkit_env cifkit
conda activate cifkit_env
```

If the above option does not work, please feel free to use pip install:

Option 2. pip install
pip install

```bash
pip install cifkit
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/02_cif_ensemble.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "cif-test",
"display_name": "cifkit_env",
"language": "python",
"name": "python3"
},
Expand All @@ -361,7 +361,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
55 changes: 55 additions & 0 deletions test-cifkit.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from cifkit import CifEnsemble, Cif\n",
"\n",
"ensemble_CCDC = CifEnsemble(\"tests/data/cif/sources/CCDC\")\n",
"ensemble_COD = CifEnsemble(\"tests/data/cif/sources/COD\")\n",
"ensemble_ICSD = CifEnsemble(\"tests/data/cif/sources/ICSD\")\n",
"ensemble_MP = CifEnsemble(\"tests/data/cif/sources/MP\")\n",
"ensemble_PCD = CifEnsemble(\"tests/data/cif/sources/PCD\")\n",
"ensemble_MS = CifEnsemble(\"tests/data/cif/sources/MS\")\n",
"\n",
"print(\"ensemble_CCDC:\", ensemble_CCDC.CN_unique_values_by_best_methods)\n",
"print(\"ensemble_COD:\", ensemble_COD.CN_unique_values_by_best_methods)\n",
"print(\"ensemble_ICSD:\", ensemble_ICSD.CN_unique_values_by_best_methods)\n",
"print(\"ensemble_MP:\", ensemble_MP.CN_unique_values_by_best_methods)\n",
"print(\"ensemble_PCD:\", ensemble_PCD.CN_unique_values_by_best_methods)\n",
"print(\"ensemble_MS:\", ensemble_MS.CN_unique_values_by_best_methods)\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "cifkit_env",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading