chainladder-python icon indicating copy to clipboard operation
chainladder-python copied to clipboard

Fix lab_black usage in docs

Open kennethshsu opened this issue 3 months ago • 3 comments

Discussed in https://github.com/casact/chainladder-python/discussions/607

Originally posted by henrydingliu October 9, 2025 This page has an error for me.

kennethshsu avatar Oct 10 '25 15:10 kennethshsu

@SRwcf do you want to try to fix this one? :)

We can either remove nb_black or use the new package jupyter_black:

import jupyter_black as jb
jb.load()

kennethshsu avatar Oct 10 '25 15:10 kennethshsu

@kennethshsu I have opened a quick PR replacing the deprecated lab_black with jupyter_black.

However, encountered an issue in triangle-tutorial.ipynb with axis="segments". Let me know if I should tweak anything or turn this into a draft for now!

SRwcf avatar Oct 18 '25 14:10 SRwcf

Hey! Thanks for working on this. The PR looks great! Thank you!

I think this is a bug.

But you can temporary fix it with clrd.sum(axis="index").sum(axis=0). Do you want to open a new bug report on this and see if you can figure out why segments doesn't work?

kennethshsu avatar Oct 20 '25 17:10 kennethshsu