Change ticks number on a plot in matplotlib

References https://stackoverflow.com/questions/27425974/change-ticks-number-on-a-subplot

Continue reading »

Return images in flask response

References https://stackoverflow.com/questions/8637153/how-to-return-images-in-flask-response https://pythonprogramming.net/flask-send-file-tutorial/

Continue reading »

Convert UTC time to local in Python

UTC to local:

local to UTC:

References https://k4ml.wordpress.com/2011/03/04/convert-utc-time-to-local/

Continue reading »

Debugging Python with GDB

To run python under gdb there are also two ways. Interactive:

Automatic:

If the process is already running, you can attach to it […]

Continue reading »

Gevent with debug support for Flask

References https://coderwall.com/p/q2mrbw/gevent-with-debug-support-for-flask

Continue reading »

Deploy Flask using Gevent

References http://flask.pocoo.org/docs/1.0/deploying/wsgi-standalone/

Continue reading »

Persian Text in Matplolib

References http://imuhammad.ir/2017/09/23/farsi-plots-python/ https://pypi.org/project/python-bidi/ https://github.com/mpcabd/python-arabic-reshaper

Continue reading »
1 2 3