To expand on Melissa’s entirely correct answer: The RSP Notebook Aspect is a service based on JupyterLab, however the environment is heavily customized to provide convenience features to Rubin users and to support and improve service quality. This is why it is not a requirement for our notebooks to run in a stock ipython environment, and frequently they will not. get_tap_service()
is an example of such a convenience function we provide to RSP users since depending on which particular deployment you are using, the TAP service you should address is different, but we want the same notebook to work on all our RSP deployments without modification.
That said, as @rnikutta discovered, you can address any TAP service you like using standard TAP libraries such as pyvo.