- Simple script to send plots and logs via Facebook Messenger.
- Extend the idea of for Messenger.
- Usage for ML/DL: Get noticed when training tasks is over.
git clone https://github.com/louishenrifranc/facebooklog.git
cd facebooklog
python setup.py install
Need a facebook account (email, password)
messenger = MessengerLog(username, password)
If you want to send to a thread group, fill the parameter thread_id
, with the thread id of the conversation, otherwise logs are sent to the same account as the sender.
X, y = [], []
for x in xrange(100):
X.append(x)
y.append(x * 2)
plt.plot(X, y)
messenger.send_plot(caption='New plot')
- Replace all calls to
print()
by a call to theMessengerLog
object. - Send all the logs at the end with the command:
messenger.send_log_file()
messenger.send_msg("Min loss: %f" % min_loss)