In the edit macros dialog, you can see the python code that has been recorded, and, if you want, make alterations to it.
Dans la fenêtre d'édition de la macro vous pouvez voir le code en langage python qui a été enregistré et si vous le désirez, en modifier le code.
This means that if you save such a custom object and open it on a machine where the python code that generated the object is not present, the object won't be recreated.
Cela signifie que si vous enregistrez un tel objet personnalisé et l'ouvrez sur une machine où le code source Python qui a créé l'objet n'est pas présent, l'objet ne sera pas recréé.
The Python code is quite simple, you can download it here.
Le code python est relativement simple et est téléchargeable ici.
The functions and constants in this module are available to you in the Python code as plpy.foo.
Les fonctions et constantes de ce module vous sont accessibles dans le code Python via plpy.foo.
Then continue to improve the framework until the Python code in the modules is reduced to a minimum.
Ensuite continuer à améliorer le framework jusqu'à ce que le code Python dans les modules soit réduit au strict minimum.
All line numbers need to be removed, and the spaces adjusted so that the Python code has the proper indentation.
Tous les numéros de ligne doivent être supprimés et les espaces ajustés de manière à ce que le code Python présente l'indentation appropriée.
Using the provided web-based editor you can add breakpoints to the Python code and, from the associated debugger console, you can inspect the system variables at those breakpoints and resume execution.
En utilisant l'éditeur web fourni, vous pouvez ajouter des points d'arrêt au code Python et, depuis la console de débogage associée, vous pouvez inspecter les variables systèmes à ces points d'arrêts et relancer l'exécution.
Then, when you want to use the functions defined in your library, you will simply type from library import (followed by the function names, separated by commas) on its own line in the Python Code editor.
Lorsque vous voudrez utiliser les fonctions définies dans votre bibliothèque, il vous suffira d'écrire from biblio import (suivi du nom des fonctions que vous avez définies, séparés par des virgules) comme toute première ligne de votre programme dans l'éditeur.
The calculation necessary in our example is very simple, we simply add the two sets of coordinates, and divide the new set by two. We then construct a new point using the result. The Python code needed is
Le calcul nécessaire dans notre exemple est très simple, nous additionnons simplement les deux ensembles de coordonnées, puis divisons par deux le résultat. Nous construisons alors un nouveau point utilisant ces coordonnées. Le code Python nécessaire est
The result is returned from the Python code in the usual way, with return or yield (in case of a result-set statement).
Le résultat est renvoyé par le code Python de la façon habituelle, avec return ou yield (dans le cas d'une instruction avec un ensemble de résultats).
The meta-model MACoP is accompanied by a transformations chain that makes it possible to pass directly from a MACoP model to the Python code of the collaborative portal.
Le métamodèle MACoP est accompagné d'une chaîne de transformations permettant de passer directement d'un modèle MACoP au code Python du portail collaboratif.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.