skip to Main Content

Unicode fails in matplotlib legend label, with "Package inputenc Error: Unicode character … (inputenc) … not set up for use with LaTeX." – Debian

My legend labels in matplotlib are failing with unicode characters. For instance, #!/usr/bin/python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt plt.plot(0,0, label='foo Д') plt.legend() fails with: Traceback (most recent call last): File "/home/meuser/.local/lib/python3.9/site-packages/matplotlib/texmanager.py", line 252, in _run_checked_subprocess report…

VIEW QUESTION

Python Telethon get all admins of group – Telegram API

I want to get admins of Telegram groups, I try with this code but I get empty response, my code client.connect() if not client.is_user_authorized(): client.send_code_request(phone) client.sign_in(phone, input('Enter the code: ')) result = client(functions.channels.GetParticipantsRequest( channel='mychannel', filter=types.ChannelParticipantsAdmins(), offset=42, limit=100, hash=0 )) print(result.stringify())…

VIEW QUESTION
Back To Top
Search