MariaDB / mariadb_kernel

A MariaDB Jupyter kernel
BSD 3-Clause "New" or "Revised" License
30 stars 21 forks source link

Make charting magic commands accept any python data type as arguments #7

Open robertbindar opened 3 years ago

robertbindar commented 3 years ago

Currently the charting magics (%bar, %pie, etc) accept as arguments that are going to be passed to DataFrame.plot only floats, ints, bools and strings. Whilst this is kind of enough to generate simple, not very customized charts, we should try to make these magic commands accept any other python data type that DataFrame.plot accepts as well (e.g. tuples, lists, and so on) to offer users the maximum flexibility to customize their charts. This needs a bit of investigation to see if the ipykernel machinery the kernel inherits can help us cast a string (argument of a magic command) to the proper Python data type.