|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "code", |
5 | | - "execution_count": 9, |
| 5 | + "execution_count": null, |
6 | 6 | "id": "9e0ff8c8-2e08-4144-bb1c-31ae032ad693", |
7 | 7 | "metadata": {}, |
8 | | - "outputs": [ |
9 | | - { |
10 | | - "name": "stdout", |
11 | | - "output_type": "stream", |
12 | | - "text": [ |
13 | | - "../../vol2/cap09.adoc\n" |
14 | | - ] |
15 | | - } |
16 | | - ], |
| 8 | + "outputs": [], |
17 | 9 | "source": [ |
18 | 10 | "from pathlib import Path\n", |
19 | 11 | "\n", |
|
37 | 29 | }, |
38 | 30 | { |
39 | 31 | "cell_type": "code", |
40 | | - "execution_count": 15, |
| 32 | + "execution_count": null, |
41 | 33 | "id": "7c21a3dd-ed66-4587-aa51-a443365d346d", |
42 | 34 | "metadata": {}, |
43 | | - "outputs": [ |
44 | | - { |
45 | | - "data": { |
46 | | - "text/plain": [ |
47 | | - "{'ch_data_model': (1, 1),\n", |
48 | | - " 'ch_sequences': (1, 2),\n", |
49 | | - " 'ch_dicts_sets': (1, 3),\n", |
50 | | - " 'ch_str_bytes': (1, 4),\n", |
51 | | - " 'ch_dataclass': (1, 5),\n", |
52 | | - " 'ch_refs_mut_mem': (1, 6),\n", |
53 | | - " 'ch_func_objects': (1, 7),\n", |
54 | | - " 'ch_type_hints_def': (1, 8),\n", |
55 | | - " 'ch_generators': (3, 17),\n", |
56 | | - " 'ch_with_match': (3, 18),\n", |
57 | | - " 'ch_concurrency_models': (3, 19),\n", |
58 | | - " 'ch_executors': (3, 20),\n", |
59 | | - " 'ch_async': (3, 21),\n", |
60 | | - " 'ch_dynamic_attrs': (3, 22),\n", |
61 | | - " 'ch_descriptors': (3, 23),\n", |
62 | | - " 'ch_class_metaprog': (3, 24)}" |
63 | | - ] |
64 | | - }, |
65 | | - "execution_count": 15, |
66 | | - "metadata": {}, |
67 | | - "output_type": "execute_result" |
68 | | - } |
69 | | - ], |
| 35 | + "outputs": [], |
70 | 36 | "source": [ |
71 | 37 | "other_vols = {}\n", |
72 | 38 | "\n", |
|
83 | 49 | }, |
84 | 50 | { |
85 | 51 | "cell_type": "code", |
86 | | - "execution_count": 21, |
| 52 | + "execution_count": null, |
87 | 53 | "id": "546fd140-6977-469a-8e32-c7497f09dc27", |
88 | 54 | "metadata": {}, |
89 | 55 | "outputs": [], |
|
104 | 70 | }, |
105 | 71 | { |
106 | 72 | "cell_type": "code", |
107 | | - "execution_count": null, |
| 73 | + "execution_count": 1, |
108 | 74 | "id": "87de0cb0-4e90-43af-9eb0-f72874f2cc2a", |
109 | 75 | "metadata": {}, |
110 | 76 | "outputs": [], |
111 | | - "source": [] |
| 77 | + "source": [ |
| 78 | + "from xvol_xrefs import replace_xrefs_to_vols" |
| 79 | + ] |
112 | 80 | }, |
113 | 81 | { |
114 | 82 | "cell_type": "code", |
115 | | - "execution_count": null, |
| 83 | + "execution_count": 2, |
116 | 84 | "id": "552c2fa0-ff72-404b-a7b1-868273c38cb9", |
117 | 85 | "metadata": {}, |
| 86 | + "outputs": [ |
| 87 | + { |
| 88 | + "name": "stdout", |
| 89 | + "output_type": "stream", |
| 90 | + "text": [ |
| 91 | + "<<prop_validation_sec>> https://pythonfluente.com/2/#prop_validation_sec[«Seção 22.4»] (vol.3)\n", |
| 92 | + "<<numeric_tower_warning_sec>> https://pythonfluente.com/2/#numeric_tower_warning_sec[«Seção 8.5.7.1»] (vol.1)\n", |
| 93 | + "<<methods_are_descriptors_sec>> https://pythonfluente.com/2/#methods_are_descriptors_sec[«Seção 23.4»] (vol.3)\n" |
| 94 | + ] |
| 95 | + }, |
| 96 | + { |
| 97 | + "ename": "ValueError", |
| 98 | + "evalue": "unexpected xref: 'ex_vector2d'", |
| 99 | + "output_type": "error", |
| 100 | + "traceback": [ |
| 101 | + "\u001b[31m---------------------------------------------------------------------------\u001b[39m", |
| 102 | + "\u001b[31mValueError\u001b[39m Traceback (most recent call last)", |
| 103 | + "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[2]\u001b[39m\u001b[32m, line 1\u001b[39m\n\u001b[32m----> \u001b[39m\u001b[32m1\u001b[39m \u001b[43mreplace_xrefs_to_vols\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n", |
| 104 | + "\u001b[36mFile \u001b[39m\u001b[32m~/flupy/pythonfluente2e/print/xrefs/xvol_xrefs.py:165\u001b[39m, in \u001b[36mreplace_xrefs_to_vols\u001b[39m\u001b[34m()\u001b[39m\n\u001b[32m 163\u001b[39m text = \u001b[33mf\u001b[39m\u001b[33m'\u001b[39m\u001b[33mSeção \u001b[39m\u001b[38;5;132;01m{\u001b[39;00mnumber_str\u001b[38;5;132;01m}\u001b[39;00m\u001b[33m'\u001b[39m\n\u001b[32m 164\u001b[39m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[32m--> \u001b[39m\u001b[32m165\u001b[39m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mValueError\u001b[39;00m(\u001b[33mf\u001b[39m\u001b[33m'\u001b[39m\u001b[33munexpected xref: \u001b[39m\u001b[38;5;132;01m{\u001b[39;00mxref\u001b[38;5;132;01m!r}\u001b[39;00m\u001b[33m'\u001b[39m)\n\u001b[32m 166\u001b[39m link = BASE_URL + \u001b[33m'\u001b[39m\u001b[33m#\u001b[39m\u001b[33m'\u001b[39m + xref\n\u001b[32m 167\u001b[39m \u001b[38;5;66;03m#print(f'<<{xref}>>', f'{text} [vol.{volume}, fpy.li{SHORT_URLS[link]}]')\u001b[39;00m\n\u001b[32m 168\u001b[39m \u001b[38;5;66;03m# https://fpy.li/24[«Capítulo 24»] (vol.3)\u001b[39;00m\n", |
| 105 | + "\u001b[31mValueError\u001b[39m: unexpected xref: 'ex_vector2d'" |
| 106 | + ] |
| 107 | + } |
| 108 | + ], |
| 109 | + "source": [ |
| 110 | + "replace_xrefs_to_vols()" |
| 111 | + ] |
| 112 | + }, |
| 113 | + { |
| 114 | + "cell_type": "code", |
| 115 | + "execution_count": null, |
| 116 | + "id": "bd8f090f-e95d-4005-96ce-160387d3db63", |
| 117 | + "metadata": {}, |
118 | 118 | "outputs": [], |
119 | 119 | "source": [] |
120 | 120 | } |
|
0 commit comments