Skip to content

Commit 2a485dd

Browse files
committed
improve formatting
1 parent 8b8b9f8 commit 2a485dd

22 files changed

Lines changed: 286875 additions & 285374 deletions

PCPT.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"<tr style=\"background-color: white; transition: none;\">\n",
134134
" <td style=\"border: 1px solid #ccc; padding: 6px;\"><strong>3</strong></td>\n",
135135
" <td style=\"border: 1px solid #ccc; padding: 6px;\"><a href=\"PCPT_03_tensor.html\">PyTorch Tensors</a></td> \n",
136-
" <td style=\"border: 1px solid #ccc; padding: 6px;\">Tensor creation; <code>torch.tensor</code>; tensor attributes; <code>.shape</code>;data types; tensor operations; indexing; slicing; reshaping; <code>.squeeze</code>; linear algebra; eigen decomposition; storage; memory layout</td> \n",
136+
" <td style=\"border: 1px solid #ccc; padding: 6px;\">Tensor creation; <code>torch.tensor</code>; tensor attributes; <code>.shape</code>; data types; tensor operations; indexing; slicing; reshaping; <code>.squeeze</code>; linear algebra; eigen decomposition; storage; memory layout</td> \n",
137137
" <td style=\"border: 1px solid #ccc; padding: 6px;\"><a href=\"PCPT_03_tensor.html\">[html]</a></td> \n",
138138
" <td style=\"border: 1px solid #ccc; padding: 6px;\"><a href=\"PCPT_03_tensor.ipynb\">[ipynb]</a></td>\n",
139139
"</tr>\n",

PCPT_01_getstarted.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
" margin-top: 10px;\n",
8484
" margin-bottom: 10px;\n",
8585
"\">\n",
86-
"<code>git clone https://github.com/meinardmueller/PCPT.git</code>.<br>\n",
86+
"<tt style=\"color:#E65100;\">git clone https://github.com/meinardmueller/PCPT.git</tt>.<br>\n",
8787
"</div>"
8888
]
8989
},
@@ -105,9 +105,9 @@
105105
"name": "stdout",
106106
"output_type": "stream",
107107
"text": [
108-
"----------------------------------------------------------------------------------\n",
109-
"| https://github.com/meinardmueller/PCPT/releases/download/v0.5.0/PCPT_0.5.0.zip |\n",
110-
"----------------------------------------------------------------------------------\n"
108+
"------------------------------------------------------------------------------\n",
109+
"https://github.com/meinardmueller/PCPT/releases/download/v0.5.1/PCPT_0.5.1.zip\n",
110+
"------------------------------------------------------------------------------\n"
111111
]
112112
}
113113
],
@@ -247,7 +247,7 @@
247247
" margin-top: 10px; \n",
248248
" margin-bottom: 10px;\n",
249249
"\">\n",
250-
" <code>conda env create -f environment.yml</code>\n",
250+
" <tt style=\"color:#E65100;\">conda env create -f environment.yml</tt>\n",
251251
"</div> "
252252
]
253253
},
@@ -277,7 +277,7 @@
277277
" margin-top: 10px;\n",
278278
" margin-bottom: 10px;\n",
279279
"\"> \n",
280-
" <code>conda activate PCPT</code>\n",
280+
" <tt style=\"color:#E65100;\">conda activate PCPT</tt>\n",
281281
"</div> \n",
282282
"\n",
283283
"Then change to the directory containing the PCPT notebooks and start the Jupyter server using the following command:\n",
@@ -292,7 +292,7 @@
292292
" margin-top: 10px;\n",
293293
" margin-bottom: 10px;\n",
294294
"\"> \n",
295-
" <code>jupyter notebook</code>\n",
295+
" <tt style=\"color:#E65100;\">jupyter notebook</tt>\n",
296296
"</div> \n",
297297
"\n",
298298
"This command opens a browser window displaying the folder structure of the PCPT notebooks. You can open the overview notebook by selecting the file `PCPT.ipynb`. Alternatively, you can directly open any individual PCPT notebook by selecting a file in a subdirectory with the `.ipynb` extension. Within a Jupyter session, make sure to follow the **IPYNB links** so that all code cells remain executable. Also note that you can only access files located in the directory from which the Jupyter server was launched, or in any of its **subdirectories**. \n",
@@ -309,7 +309,7 @@
309309
" margin-top: 10px;\n",
310310
" margin-bottom: 10px;\n",
311311
"\"> \n",
312-
" <code>jupyter lab</code>\n",
312+
" <tt style=\"color:#E65100;\">jupyter lab</tt>\n",
313313
"</div>"
314314
]
315315
},
@@ -395,7 +395,7 @@
395395
" margin-top: 10px;\n",
396396
" margin-bottom: 10px;\n",
397397
"\"> \n",
398-
" <code>python tools/run_and_export_notebooks.py</code>\n",
398+
" <tt style=\"color:#E65100;\">python tools/run_and_export_notebooks.py</tt>\n",
399399
"</div> "
400400
]
401401
},

PCPT_02_classes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@
432432
"output_type": "stream",
433433
"text": [
434434
"__dict__ for class:\n",
435-
"{'__module__': '__main__', '__doc__': 'Circle class', 'pi': 3, '__init__': <function Circle.__init__ at 0x000002C3522332E0>, 'area': <function Circle.area at 0x000002C352233420>, '__dict__': <attribute '__dict__' of 'Circle' objects>, '__weakref__': <attribute '__weakref__' of 'Circle' objects>}\n",
435+
"{'__module__': '__main__', '__doc__': 'Circle class', 'pi': 3, '__init__': <function Circle.__init__ at 0x7d8a46494040>, 'area': <function Circle.area at 0x7d8a464940e0>, '__dict__': <attribute '__dict__' of 'Circle' objects>, '__weakref__': <attribute '__weakref__' of 'Circle' objects>}\n",
436436
"\n",
437437
"__dict__ for instance:\n",
438438
"{'radius': 3}\n",

0 commit comments

Comments
 (0)