From 29df16211f79c099d4198e423247d8eb3080ca92 Mon Sep 17 00:00:00 2001 From: Michele Ceriotti Date: Fri, 14 Jun 2024 08:25:09 +0200 Subject: [PATCH] Tweaking the text --- examples/roy-gch/roy-gch.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/roy-gch/roy-gch.py b/examples/roy-gch/roy-gch.py index d670d9f8..94637daf 100644 --- a/examples/roy-gch/roy-gch.py +++ b/examples/roy-gch/roy-gch.py @@ -89,9 +89,7 @@ # Interactive visualization # ^^^^^^^^^^^^^^^^^^^^^^^^^ # -# You can also visualize the hull with ``chemiscope``. -# This runs only in a notebook, and -# requires having the ``chemiscope`` package installed. +# You can also visualize the hull with ``chemiscope`` in a juptyer notebook. # cs = chemiscope.show( @@ -117,7 +115,7 @@ # %% # -# Save chemiscope file +# Save chemiscope file in a format that can be shared and viewed on `chemiscope.org` cs.save("roy_ch.json.gz") # %% @@ -225,8 +223,7 @@ # %% -# Visualize in ``chemiscope``. This runs only in a notebook, and -# requires having the ``chemiscope`` package installed. +# Visualize in a ``chemiscope`` widget for i, f in enumerate(structures): for j in range(len(pca_features[i])): @@ -234,7 +231,7 @@ structure_properties = chemiscope.extract_properties(structures) structure_properties.update({"per_atom_energy": energy, "hull_energy": dch_dist}) -# saves a chemiscope file for visualization +# You can save a chemiscope file to disk (for viewing on chemiscope.org) chemiscope.write_input( "roy_gch.json.gz", @@ -286,6 +283,6 @@ # %% # -# open an interactive viewer +# ... and also load one as an interactive viewer chemiscope.show_input("roy_gch.json.gz")