Thank you Andrey for your reply and for installing the packages.
Tkinter and turtle are installed but none of the examples that use them
seem to work as you already pointed out. For tkinter I have tried to save
results to a file and then try to plot, but the common error for now is "
TclError: no display name and no $DISPLAY environment variable". Try for
example the code below and see how you could figure out to save results and
then plot:
import nltk
from nltk.corpus import treebank
nltk.download('treebank')
t = treebank.parsed_sents('wsj_0001.mrg')[0]
print(t)
t.draw()
There are a number of discussions on the internet on how to do this, but I
have not succeeded, they need more time to explore and test.
Yes, for other plotting backends, the option is either displaying the plots
by inlining them on the web or saving the results to html and then
displaying the figure on a browser upon clicking, the second option works
well for interactive Plotly plots (see attached).
As for Dash, the problem seems to be Flask environment variable settings
(PATH environment variable) because Dash is built on top of it. This may
look something close to what is discussed at
https://flask.palletsprojects.com/en/1.1.x/config/#configuring-from-files
Dash is useful for creating interactive web analytics/apps.
Kind regards,
Elimboto
On Sun, Jan 24, 2021 at 5:32 PM Andrey Novoseltsev <[email protected]>
wrote:
> Hi Elimboto!
>
> Thanks for your patience - I've finally installed the packages you have
> asked for and compiled Python with tkinter support, although I am not sure
> it will achieve what you want - you can't open TK windows via SageMathCell.
> What all other graphics backends are doing is saving results to a file and
> then this file is displayed in the user browser. Do you plan to do the
> same? Incidentally, I just got a question about turtle graphics support
> which also relies on tkinter, but their examples are not working right away
> because of display issues.
>
> As for dash - what are you trying to achieve with it? We can set
> environment variables or create some configuration files, but I need to
> have more direct instructions and understanding of what is going on. There
> are plenty of packages installed on public servers and vast majority just
> needs to be installed without any extra tinkering.
>
> Best,
> Andrey
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-cell" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-cell/3e4aa51f-8efd-4928-ba24-e425608c0a28n%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-cell/3e4aa51f-8efd-4928-ba24-e425608c0a28n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-cell/CACEZTmtQ%2Bzy5Jc%2BBA%3D-fihxQnKpKSMqDxQvZKRdyhg60yNQ49g%40mail.gmail.com.