Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Blender

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

References

https://docs.blender.org/manual/en/latest/

https://www.blender.org/support/

Debug Code in JupyterLab Notebooks

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use the %debug Magic

The easiest way to debug a Jupyter notebook is to use the %debug magic command. Whenever you encounter an error or exception, just open a new notebook …

Group-by Plots in HoloViews

There are many ways to achievie groupby in HolovViews.

  1. Directly use the groupby method of HoloViews objects!!!

  2. Use the method HoloMap to create a dictionary of parameters to HoloViews objects.

  3. Use the method dataset.to which has groupby option. However, it seems to me that this doesn't give me options to select which one to show. But with click and transparent parameters configured, you can achieve similar effect ...

String vs Bytecode in Python

Comments

  1. Be careful that some functions return bytecode instead of string in Python 3.

  2. bytecode has similar APIs to str. Most string functions can be applied to bytecode as well.

String to Bytecode