First time here? Check out the FAQ!
answered 2021-06-09 23:28:37 +0100
You can define P = var('P', latex_name=r'\pmb{\mathscr{P}}'), which displays as $\pmb{\mathscr{P}}$.
P = var('P', latex_name=r'\pmb{\mathscr{P}}')