Tips and Traps¶
- If you schedule a job $J_1$ using
schedulein IPython shell, and then interrupt the following loop that checks and runs pending jobs,the scheduled job $J_1$ is still there unless you stop the current IPython shell. The effective consequence of this is that if you schedule another job $J_2$, and start to run it using the following loop,while True: schedule.run_pending()
The Installation Location of Python Packages Using Pip
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
When installing a Python package using
pipwithout usingsudoor therootuser, the package is installed into the user's local directory at~/.local/lib/python3.7/site-packages(using Python …Use Spark with the Almond Scala Kernel in JupyterLab
This notebook present a minimum example on how to use Spark with the Almond Scala kernel in Jupyterlab. Notice that Spark 2.4.2 is used since it is the only stable Spark version that supports Scala 2.12 as of now. Please refer to almond-sh/examples for more examples.
Develop GUI Applications Using Kotlin
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
TornadoFX (which is a lightweight wrapper over JavaFX) is the most popular GUI framework in Kotlin.
kotlin-libui is another possible choice.
Take Screenshots in Python
Comments¶
- PIL.ImageGrab works on macOS and Windows only.
PIL.ImageGrabis relatively slow.python-mssandPyQt5are better alternatives if performance of screenshot is critical. Notice that saving an (e.g., PNG) image can take significant time (might take up to 0.5 seconds) too, this is often due to image compression is slow. Lower the compression level can significant reduce the time needed to save an image. Please refer to Saving a PNG file is slow
Tips on Cloud9
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
- Java/Scala support is not ready at this time.
Docker Images for Cloud9
- cloud9-docker is a good docker image for cloud9 IDE. You are able to attach a local directory as …