Changes for page Python Macro

Last modified by Vincent Massol on 2021/03/17 21:54

From version 30.1
edited by Marc Mercer
on 2016/05/26 11:35
Change comment: There is no comment for this version
To version 31.1
edited by Vincent Massol
on 2017/08/17 09:29
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.Daemoen
1 +xwiki:XWiki.VincentMassol
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -27,6 +27,7 @@
27 27  {{/code}}
28 28  
29 29  == Why Scripting? ==
30 +
30 30  Many different wikis exist to date, each offering a plethora of features. This example illustrates how leveraging the power of XWiki can save you time, and impress people. Below is a link to an amusing SMBC comic:
31 31  
32 32  http://smbc-comics.com/index.php?id=4071
... ... @@ -54,6 +54,13 @@
54 54  {{/code}}
55 55  
56 56  == External Libraries ==
58 +
59 +=== Using the PyPI Repository ===
60 +
61 +This is the recommended approach. See the [[PyPI Repository Connector>>doc:Extension.Extension Repository Connector - Pypi.WebHome]].
62 +
63 +=== Manually ===
64 +
57 57  External libraries can be used with XWiki by adding them to the proper classpath and importing them.
58 58  
59 59  In order to determine what your classpath and pyclasspath locations are, use the following code:
... ... @@ -67,5 +67,6 @@
67 67  
68 68  Once you have the proper location, you can install your libraries through your normal means (pip, dnf, apt-get, etc), and copy the library to the classpath/pyclasspath locations respectively. **After installation, a restart is required to load the new library/libraries**.
69 69  
70 -=== Caveats ===
78 +==== Caveats ====
79 +
71 71  Though you can add additional libraries, there may be conflicts that you have to work through to be able to use that library with Xwiki. An example is the 'boto' library, which conflicts due to function and class definitions that overlap.
Show installed count
... ... @@ -1,0 +1,1 @@
1 +Yes

Get Connected