Révision | f12e45493f6d52a54ceb4234f2b236aecb33d736 (tree) |
---|---|
l'heure | 2020-03-22 07:28:10 |
Auteur | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
PubSub: cleanup
@@ -33,7 +33,8 @@ | ||
33 | 33 | Where ``t`` is topic (an instance of :class:`pubsub.Topic`) and ``demo_cb`` is the *callback*. This can a function or other |
34 | 34 | kind of callable. Multiple subscriptions are possible, by registering another:: |
35 | 35 | |
36 | - t.subscribe(demo_oo_cb) | |
36 | + oo = Demo() | |
37 | + t.subscribe(oo.demo_oo_cb) | |
37 | 38 | |
38 | 39 | .. _PubSub_callback_demo: |
39 | 40 |
@@ -14,8 +14,8 @@ | ||
14 | 14 | |
15 | 15 | .. note:: Same source |
16 | 16 | |
17 | - Due technical details the slidedeck below and the interactive notebook can be nog completely in sync. Although it the | |
18 | - same source, it can be another revision. | |
17 | + Due practical details the slidedeck below and the interactive notebook might be our-of-sync. Although it coming from the | |
18 | + same source, it can be another revision; making the slides is partial manual. | |
19 | 19 | |
20 | 20 | |
21 | 21 | Slides |
@@ -27,14 +27,22 @@ | ||
27 | 27 | <iframe src="../../../../_static/PubSub-demo.slides.html" width="100%" height="720px"></iframe> |
28 | 28 | </a> |
29 | 29 | |
30 | +.. tip:: | |
31 | + | |
32 | + * Use **‘space’** to go to the next slide | |
33 | + * Use **‘?’** to see all keyboard *shortcuts* | |
34 | + * Click on the edge to open it in a new tab (and use ‘F’ for full-screen) | |
35 | + | |
30 | 36 | |
31 | 37 | Interactive notebooks |
32 | 38 | --------------------- |
33 | 39 | |
34 | 40 | Run on binder: `try it yourself <https://mybinder.org/v2/gh/AlbertMietus/PyMess.ipython-notebools/master?filepath=%2FSoftwareCompetence%2FDesignWorkShops%2FPubSub%2FPubSub-demo.ipynb>`_ |
35 | 41 | |
36 | -Or download `Jupiter <https://jupyter.readthedocs.io/en/latest/install.html#install>`_; e.g by | |
37 | -`Anaconda <https://www.anaconda.com/distribution/>`_. For Window-64 see: | |
38 | -`here <https://repo.anaconda.com/archive/Anaconda3-2020.02-Windows-x86_64.exe>`_. | |
42 | +.. tip:: | |
43 | + | |
44 | + Or download `Jupiter <https://jupyter.readthedocs.io/en/latest/install.html#install>`_; e.g by | |
45 | + `Anaconda <https://www.anaconda.com/distribution/>`_. For Window-64 see: | |
46 | + `here <https://repo.anaconda.com/archive/Anaconda3-2020.02-Windows-x86_64.exe>`_. | |
39 | 47 | |
40 | 48 | And play with in on your own PC using this `notebook <PubSub-demo-github>`_. Then you can save your attempts too. |