To accomplish this you'll want to create a custom container image. You can find workflow information here: Extend a notebook runtime—ArcGIS Notebook Server Installation Guide (10.7) | ArcGIS Enterprise
I have extended my notebook runtime. But when I open a new Notebook, it is not work, the new container depends on old image.Otherwise,may I have your contact information. My email address is firstname.lastname@example.org.