Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Wrap up several (or even one) plotly functions in one function - Python Jupyter notebook

I am working on Jupyter Python. I want to create a custom plot function by wrapping several Plotly functions inside a wrapper function, thereby not having to type the same thing over and over again. But it’s not working!

The system gives me no error, but no output comes out either. When I take the individual functions outside the wrapper function, they work individually.

Please advise.