Hello,
I hope it's okay to post into this old thread.
I use PythonAnywhere to host a dash web app.
I also ran into an issue recently where I was copying a table of data into a clipboard.
clipContent = finaltableDF.to_clipboard(excel=True, sep=None, index=False, header=True)
This would not function because it seems to require Pyperclip/xclip or some other dependency.
I'm able to get items from the site into the user clipboard, but I'm forced to use
clipContent = finaltableDF.to_csv(sep=',', index=False, header=True)
This output isn't ideal because when pasting it into excel, it all crams into 1 cell instead of pasting into respective cells.
BUT, I understand now that this specific method copies to the server’s clipboard, rather than the client’s.
Hopefully this information helps someone anyway. Prost!