Change the behaviour of pkg.mlask() and pkg.mlpreview(), which are both crucial for current developing package.
For mlask, mainly changing the waiting for Enter implementation from input() to an cross-platform getChar(), to avoid the non-response bug after mlpreview
For mlpreview, now the defalt viewer would call system defalt application to open file.
Thanks for the test, the bug is due to not properly handle the "\n" character.
Now it shall be fixed, and I also tested the kmeans demo.py on the new mlhub.pkg
Change the behaviour of
pkg.mlask()
andpkg.mlpreview()
, which are both crucial for current developing package.mlask
, mainly changing the waiting for Enter implementation frominput()
to an cross-platformgetChar()
, to avoid the non-response bug aftermlpreview
mlpreview
, now the defalt viewer would call system defalt application to open file.