Merge remote-tracking branch 'upstream/master' into develop
This commit is contained in:
@ -16,7 +16,7 @@ Install `bonobo` with the **jupyter** extra::
|
|||||||
Install the jupyter extension::
|
Install the jupyter extension::
|
||||||
|
|
||||||
jupyter nbextension enable --py --sys-prefix widgetsnbextension
|
jupyter nbextension enable --py --sys-prefix widgetsnbextension
|
||||||
jupyter nbextension enable --py --sys-prefix bonobo.ext.jupyter
|
jupyter nbextension enable --py --sys-prefix bonobo.contrib.jupyter
|
||||||
|
|
||||||
Development
|
Development
|
||||||
:::::::::::
|
:::::::::::
|
||||||
@ -25,8 +25,8 @@ You should favor yarn over npm to install node packages. If you prefer to use np
|
|||||||
|
|
||||||
To install the widget for development, make sure you're using an editable install of bonobo (see install document)::
|
To install the widget for development, make sure you're using an editable install of bonobo (see install document)::
|
||||||
|
|
||||||
jupyter nbextension install --py --symlink --sys-prefix bonobo.ext.jupyter
|
jupyter nbextension install --py --symlink --sys-prefix bonobo.contrib.jupyter
|
||||||
jupyter nbextension enable --py --sys-prefix bonobo.ext.jupyter
|
jupyter nbextension enable --py --sys-prefix bonobo.contrib.jupyter
|
||||||
|
|
||||||
If you want to change the javascript, you should run webpack in watch mode in some terminal::
|
If you want to change the javascript, you should run webpack in watch mode in some terminal::
|
||||||
|
|
||||||
|
|||||||
@ -135,7 +135,6 @@ Now let's see how to do it correctly:
|
|||||||
}
|
}
|
||||||
|
|
||||||
def new_dict_and_yield():
|
def new_dict_and_yield():
|
||||||
d = {}
|
|
||||||
for i in range(100):
|
for i in range(100):
|
||||||
# Different dict each time.
|
# Different dict each time.
|
||||||
yield {
|
yield {
|
||||||
|
|||||||
@ -60,6 +60,8 @@ To inspect the graph of your first transformation:
|
|||||||
You must `install the graphviz software first <https://www.graphviz.org/download/>`_. It is _not_ the python's graphviz
|
You must `install the graphviz software first <https://www.graphviz.org/download/>`_. It is _not_ the python's graphviz
|
||||||
package, you must install it using your system's package manager (apt, brew, ...).
|
package, you must install it using your system's package manager (apt, brew, ...).
|
||||||
|
|
||||||
|
For Windows users: you might need to add an entry to the Path environment variable for the `dot` command to be recognized
|
||||||
|
|
||||||
.. code-block:: shell-session
|
.. code-block:: shell-session
|
||||||
|
|
||||||
$ bonobo inspect --graph tutorial.py | dot -Tpng -o tutorial.png
|
$ bonobo inspect --graph tutorial.py | dot -Tpng -o tutorial.png
|
||||||
@ -209,6 +211,11 @@ Here, the real thing happens.
|
|||||||
Without diving into too much details for now, using the :func:`bonobo.parse_args` context manager will allow our job to
|
Without diving into too much details for now, using the :func:`bonobo.parse_args` context manager will allow our job to
|
||||||
be configurable, later, and although we don't really need it right now, it does not harm neither.
|
be configurable, later, and although we don't really need it right now, it does not harm neither.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This is intended to run in a console terminal. If you're working in a jupyter notebook, you need to adapt the thing to
|
||||||
|
avoid trying to parse arguments, or you'll get into trouble.
|
||||||
|
|
||||||
Reading the output
|
Reading the output
|
||||||
::::::::::::::::::
|
::::::::::::::::::
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user