I'm making a project on Jupyter notebook that requires me to keep track of the number in the localhost url, and I currently get this number by having a pop-up window where the user needs to types it in. However, I want to see if there's a way to skip this step and automatically get the url when the notebook runs. Does anyone know if there is a function or some other way that I can do this?
Edit: to clarify, when I open my Jupyter notebook, it runs in a Google Chrome window with the url localhost:8888 (or some other 4 digit number) followed by the path to the folder the notebook is in. I want to see if there is a way for the notebook to read that number or the entire url.