svgling icon indicating copy to clipboard operation
svgling copied to clipboard

No access to 'svgling.core' functions.

Open LLLena2021 opened this issue 7 months ago • 0 comments

I installed the svgling module as described in svgling 0.4.0 and The svgling package, and ran it on GoogleColab and Command Prompt (Python 3.10.13).

I started running the tutorials step by step as described on The svgling package and svgling Manual. As soon as the tutorials required access to svgling.core functions, both Colab and Python 3.10.13. produce an error.

Here is the procedure and the error from Command Prompt (Python 3.10.13):

(scienv) C:\Windows\system32>python Python 3.10.13 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:24:38) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import svgling from svgling import draw_tree svgling.core.reset_defaults() from svgling.core import node Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'node' from 'svgling.core' (C:\Users\XXXXX\miniconda3\envs\scienv\lib\site-packages\svgling\core.py)

Something similar I have received in Colab. I can provide errors and screenshots if you need those. Please, let me know.

Could you please tell me how to run the following functions: svgling.core.subscript_node() svgling.core.cssfont() *.set_node_style() svgling.core.TriangleEdge()

I should note that the command svgling.core.default_options.leaf_nodes_align = True works perfectly with the sentence t2 converted in nltk (see the Manual).

Could you please help me?

Best regards, EP.

LLLena2021 avatar Jul 20 '24 07:07 LLLena2021