![]() This package can really help visualize how long a for-loop will take. All you need to do is wrap any iterable with tqdm(iterable), and the progress bar will display! We use the tqdm package to make loops show a smart progress bar. A Python package usually consists of several modules. With tempfile.TemporaryDirectory() as td: # use a temporary directory to send the graph to slack Slack = Slacker('') # plot graph of sales by dayįig = plt.figure(figsize=(15,10)) plt.plot(y=orders_df, Let’s say you want to use it to connect to SQL every morning to get a daily sales snapshot and send a graph to a channel: from slacker import Slackerįrom pathlib import Path # input slack credentials Slacker is super simple to use and combined with automation, can be very useful. Install catkinpkg using below command sudo apt-get install python-catkin-pkg You have to verify that the catkinpkg is installed into python 3 directory. Example - using Slacker to send alerts and files The Slacker package can be found here, and a great example of complex apps can be found on Glitch. More complex apps can be made that take inputs from a user via a modal which can trigger a job. ![]() You can have many virtual environment and we recommend that you at least. Simply, we can use Slack bots to send alerts, such as algorithm performance over time. Virtual environments in Python are a nice way to compartmentalize package installation. Slack makes it super easy to make automated bots, to increase the productivity of your team.
0 Comments
Leave a Reply. |