Improve tutorial #39
Comments
|
Is it possible to write Python extensions for Logica? |
|
@TimKam, this functionality is not exposed now, but this is something that is natural to add. It would be quite easy to add annotation-plug-ins. For example we can let a user write a function that renders a result of a predicate as a graph. Then they could write a program G("a", "b");
G("b", "c");
G("c", "d");
G("d", "a");
G("d", "e");
@RenderGraph(G, "/path/to/graph.html");And when this program runs the HTML file has rendering of the graph I think it's much more tricky to add ability to call python functions from Logica. Like the user defining: def F(x):
return 2 * x;and then having Logica program Q(F(5));resulting in Q having a row Could you tell a little bit about usecase that you had in mind? |
|
Thank you for the prompt response. In my particular case I want to take a directed graph, process it in Python and return the result back to Logica. I am not sure if this is your "easy" or "tricky" case: in your "easy" case, could one write the result back to Logica? Edit: Should we move to a new ticket? |
|
We should have started the discussion in a separated ticket or in a discussion section :-) But as it's already going here, let's get to the bottom of it and then create an appropriate issue. This seems somewhere in the middle between "easy" and "tricky". |
|
The input should also come from Logica. So it would be Logica -> Python (for example) -> Logica. |
|
@EvgSkv
|
|
@atqnp |
|
You use Z in the tutorial in what feels to me like a confusing way. It is first introduced as an alias for the Integers, and then is re-introduced as a subset of the integers. But Z is not a builtin equivalent to the Integers, it's just a variable name. |
|
The colab notebooks assumes you have access to a BigQuery project "YOUR_PROJECT": What would be a better default name, for someone who doesn't normally run BigQuery out of colab? |
|
Typo |
|
@evelynmitchell Thanks for feedback! I agree with these comments and is thinking how to address them. What would be a better default name, for someone who doesn't normally run BigQuery out of colab? |
I am very curious about experience of newcomers with the tutorial. I am sure it can be improved to make onboarding easier.
The text was updated successfully, but these errors were encountered: