Namespaces
In version 0.0.10 lrmtfy
introduced namespaces to give users more flexibility and to make
sharing easier.
Every user has a default namespace that corresponds to their username and a short suffix depending on the kind of login that you use.
You can see available namespace when you import the catalog. The best way to manage namespaces is
to start an ipython
session.
For me the output is the following:
Importing catalog | |
---|---|
1 2 3 4 5 |
|
Namespaces available to me are my private one orgarten_gh
and the example namespace examples
.
Also shown are the available functions in my catalog.
To use a deployed function inside the namespace I would simply call
Using a function in a namespace | |
---|---|
1 |
|
If the code editor or IDE of your choice supports auto-completion, the available functions should be suggested.
Create namespacesΒΆ
You can create new namespaces inside your own user namespace:
Creating new namespaces | |
---|---|
1 2 3 |
|
To add a function inside a namespace you just run add_function_to_namespace
.
Add a function to a namespace | |
---|---|
1 2 |
|
Now you can share the namespace with other users!