|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "code",
|
5 |
| - "execution_count": null, |
| 5 | + "execution_count": 13, |
6 | 6 | "metadata": {},
|
7 |
| - "outputs": [], |
| 7 | + "outputs": [ |
| 8 | + { |
| 9 | + "name": "stdout", |
| 10 | + "output_type": "stream", |
| 11 | + "text": [ |
| 12 | + "The autoreload extension is already loaded. To reload it, use:\n", |
| 13 | + " %reload_ext autoreload\n", |
| 14 | + "env: ANYWIDGET_HMR=1\n" |
| 15 | + ] |
| 16 | + } |
| 17 | + ], |
8 | 18 | "source": [
|
9 | 19 | "# This cell (autoloading & hot module replacement) is only needed for development!\n",
|
10 | 20 | "%load_ext autoreload\n",
|
|
14 | 24 | },
|
15 | 25 | {
|
16 | 26 | "cell_type": "code",
|
17 |
| - "execution_count": null, |
| 27 | + "execution_count": 14, |
18 | 28 | "metadata": {},
|
19 |
| - "outputs": [], |
| 29 | + "outputs": [ |
| 30 | + { |
| 31 | + "data": { |
| 32 | + "application/vnd.jupyter.widget-view+json": { |
| 33 | + "model_id": "067c689334a14910a7f11d529b60f922", |
| 34 | + "version_major": 2, |
| 35 | + "version_minor": 1 |
| 36 | + }, |
| 37 | + "text/plain": [ |
| 38 | + "BZVisualizer(disable_interact_overlay=True, height='800px', seekpath_data={'faces_data': {'triangles_vertices'…" |
| 39 | + ] |
| 40 | + }, |
| 41 | + "metadata": {}, |
| 42 | + "output_type": "display_data" |
| 43 | + } |
| 44 | + ], |
20 | 45 | "source": [
|
21 | 46 | "from widget_bzvisualizer import BZVisualizer\n",
|
22 | 47 | "\n",
|
|
32 | 57 | "\n",
|
33 | 58 | "bz = BZVisualizer(\n",
|
34 | 59 | " cell, rel_coords, atom_numbers,\n",
|
35 |
| - " width=\"100%\", height=\"400px\",\n", |
| 60 | + " width=\"100%\", height=\"800px\",\n", |
36 | 61 | " show_axes=True,\n",
|
37 | 62 | " show_bvectors=True,\n",
|
38 | 63 | " show_pathpoints=True,\n",
|
|
43 | 68 | },
|
44 | 69 | {
|
45 | 70 | "cell_type": "code",
|
46 |
| - "execution_count": null, |
| 71 | + "execution_count": 15, |
47 | 72 | "metadata": {},
|
48 | 73 | "outputs": [],
|
49 | 74 | "source": [
|
|
57 | 82 | },
|
58 | 83 | {
|
59 | 84 | "cell_type": "code",
|
60 |
| - "execution_count": null, |
| 85 | + "execution_count": 17, |
61 | 86 | "metadata": {},
|
62 |
| - "outputs": [], |
| 87 | + "outputs": [ |
| 88 | + { |
| 89 | + "data": { |
| 90 | + "application/vnd.jupyter.widget-view+json": { |
| 91 | + "model_id": "2acda8bf7ef946388c889d763521417b", |
| 92 | + "version_major": 2, |
| 93 | + "version_minor": 1 |
| 94 | + }, |
| 95 | + "text/plain": [ |
| 96 | + "BZVisualizer(height='800px', seekpath_data={'faces_data': {'triangles_vertices': [[-1.1089190599406602, -2.220…" |
| 97 | + ] |
| 98 | + }, |
| 99 | + "metadata": {}, |
| 100 | + "output_type": "display_data" |
| 101 | + } |
| 102 | + ], |
63 | 103 | "source": [
|
64 | 104 | "# Load info with ASE\n",
|
65 | 105 | "# NOTE: (ASE is not included as a direct dependency, needs to be installed separately)\n",
|
|
71 | 111 | " return struct.cell, struct.get_scaled_positions(), struct.numbers\n",
|
72 | 112 | "\n",
|
73 | 113 | "cell, rel_coords, atom_numbers = load_cell_info_ase(\"./mc3d-10016.cif\")\n",
|
74 |
| - "bz2 = BZVisualizer(cell, rel_coords, atom_numbers)\n", |
| 114 | + "bz2 = BZVisualizer(cell, rel_coords, atom_numbers, width=\"100%\", height=\"800px\")\n", |
75 | 115 | "display(bz2)"
|
76 | 116 | ]
|
77 | 117 | },
|
| 118 | + { |
| 119 | + "cell_type": "code", |
| 120 | + "execution_count": null, |
| 121 | + "metadata": {}, |
| 122 | + "outputs": [], |
| 123 | + "source": [] |
| 124 | + }, |
78 | 125 | {
|
79 | 126 | "cell_type": "code",
|
80 | 127 | "execution_count": null,
|
|
0 commit comments