1- <p align =" center " >
2- <img src =" frontend/public/pq-logo.png " alt =" PQViewer logo " width =" 72 " >
3- </p >
1+ <img src =" frontend/public/pq-logo.png " alt =" PQViewer logo " width =" 200 " >
42
53# PQViewer
64
@@ -15,7 +13,11 @@ still change before 1.0.
1513![ A 100-frame UMCM-9 trajectory in PQViewer] ( docs/assets/screenshots/trajectory-workspace.png )
1614
1715<p align =" center " >
18- <a href =" docs/index.md " ><strong >Explore the documentation</strong ></a >
16+ <a href =" docs/web-demo.md " ><strong >Interactive web demo</strong ></a >
17+ ·
18+ <a href =" https://molarverse.github.io/PQViewer/ " ><strong >Read the documentation</strong ></a >
19+ ·
20+ <a href =" examples/pqviewer-notebook.ipynb " ><strong >Open the Jupyter example</strong ></a >
1921</p >
2022
2123| Protein | Molecule | Framework |
@@ -38,6 +40,26 @@ pqviewer examples/water.xyz
3840The interface is bundled with the Python package. Node.js is not required to
3941install or run the viewer.
4042
43+ The application stays on one page: ** View** controls the scene, ** Edit** owns
44+ atom and cell changes, ** Analyze** explains selections and measurements, and
45+ ** Export** opens the publication figure path. The central finder searches
46+ atoms, settings, and commands using ` Cmd/Ctrl+K ` or ` / ` ; on small screens,
47+ ** Tools** opens the same inspector as an expandable sheet.
48+
49+ ## Playable web demo
50+
51+ The Pages-ready demo runs the same bundled 3Dmol.js interface against a
52+ read-only SrTiO3 perovskite dataset. It supports rotation, selection,
53+ structure and cell edits, representation controls, command search, and
54+ client-side structure and figure export without a Python server. Opening local
55+ files, streaming growing trajectories, and PQAnalysis calculations remain in
56+ the installed local application.
57+
58+ Its target URL is
59+ [ ` molarverse.github.io/PQViewer/viewer/ ` ] ( https://molarverse.github.io/PQViewer/viewer/ ) .
60+ Publishing from the current private repository requires a GitHub plan that
61+ supports Pages for private repositories, or making the repository public.
62+
4163Open a trajectory, PQ input, run directory, or frame slice:
4264
4365``` bash
@@ -55,13 +77,35 @@ pqviewer structure.cif
5577pqviewer optimization.traj
5678```
5779
80+ ## Jupyter
81+
82+ Install the notebook helper, then return ` view(...) ` from a cell:
83+
84+ ``` bash
85+ python -m pip install ' .[jupyter,ase]'
86+ ```
87+
88+ ``` python
89+ from pqviewer import view
90+
91+ viewer = view(" trajectory.xyz" , height = 620 )
92+ viewer
93+ ```
94+
95+ The iframe is the real local application, not a static screenshot. Close its
96+ server with ` viewer.close() ` when it is no longer needed. See the
97+ [ executable notebook] ( examples/pqviewer-notebook.ipynb ) and
98+ [ Jupyter guide] ( docs/jupyter.md ) .
99+
58100## What it does
59101
60102- Opens structures, trajectories, PQ inputs, and joined restart runs.
61103- Uses indexed access for PQ sources, ASE ` .traj ` , and indexed ASE sequences
62104 without retaining every coordinate frame in memory.
63105- Displays forces, velocities, charges, periodic images, water, protein
64106 cartoons, and crystal coordination polygons or polyhedra when supported.
107+ - Edits atom identity, Cartesian coordinates, lattice parameters, vectors, and
108+ periodic axes locally, then downloads the current frame as EXTXYZ.
65109- Uses PQ's centered fractional cell convention, ` [-0.5, 0.5) ` , including
66110 triclinic cells.
67111- Selects atoms by pointer, box, element, molecule, residue, connectivity, or
@@ -80,12 +124,15 @@ Try the included periodic fixtures:
80124pqviewer examples/periodic-boundary.extxyz
81125pqviewer examples/periodic-crossing.extxyz
82126pqviewer examples/acof-triclinic.xyz
127+ pqviewer examples/strontium-titanate.extxyz
83128```
84129
85130## Documentation
86131
87132- [ Documentation overview] ( docs/index.md )
88133- [ Getting started] ( docs/getting-started.md )
134+ - [ Interactive web demo] ( docs/web-demo.md )
135+ - [ Jupyter] ( docs/jupyter.md )
89136- [ Viewer guide] ( docs/viewer-guide.md )
90137- [ Data sources and periodic conventions] ( docs/data-and-conventions.md )
91138- [ Trajectory analysis] ( docs/trajectory-analysis.md )
0 commit comments