Add a note about the graph variable
It needs to be global and publicly available. Some people reading the tutorial may want to put it in its own function or the __main__ conditional, which won't work.
This commit is contained in:
@ -105,6 +105,9 @@ To do this, it needs to know what data-flow you want to achieve, and you'll use
|
|||||||
The `if __name__ == '__main__':` section is not required, unless you want to run it directly using the python
|
The `if __name__ == '__main__':` section is not required, unless you want to run it directly using the python
|
||||||
interpreter.
|
interpreter.
|
||||||
|
|
||||||
|
The name of the `graph` variable is arbitrary, but this variable must be global and available unconditionally.
|
||||||
|
Do not put it in its own function or in the `if __name__ == '__main__':` section.
|
||||||
|
|
||||||
|
|
||||||
Execute the job
|
Execute the job
|
||||||
:::::::::::::::
|
:::::::::::::::
|
||||||
|
|||||||
Reference in New Issue
Block a user