title: Why I cannot access my localhost:8888 address when a Jupyter notebook is active?
body: <p>I use phpMyAdmin regularly (via MAMP as I am a mac OSX user) to access a few databases that I have at my localhost. I never had a problem with it, until I started using Jupyter notebook (Anaconda distro).</p>
  
  <p>The issue is that if I have a notebook active, then my browser cannot open the regular url '<a href="http://localhost:8888/phpMyAdmin" rel="nofollow noreferrer">http://localhost:8888/phpMyAdmin</a>' and it shows a 404 message (with a jupyter logo)</p>
  
  <p>The only way to regain access to phpMyAdmin is by killing the terminal window in which the jupyter process is called, and then localhost url is working again. </p>
  
  <p>Strangely enough, MySQLWorkBench does work when Jupyter is active, and I am using this as temporary workaround, but I would like to understand what the source of conflict id between Jupyter and phpmyadmin, as I prefer to work in phpmyadmin (legacy and documentation reasons) without having to close my jupyter notebooks.</p>
  
  <p>As additional info, there absolutely no problem in accessing the databases from jupyter  via the pymysql package.</p>
  
  <p>Thanks!</p>
  
  <p><strong>--EDIT--</strong></p>
  
  <p>Thanks to Samuli's answer I understood the issue.
  Both anaconda and Mamp have configured the same ports by default, 8888. WorkBench is smarter and if 8888 is used, it will use a different number. </p>
  
  <p>Since I still want to launch Jupyter from anaconda, instead of using the terminal line proposed by the solution (which also works) I have reconfigured MAMP to use the Apache port 8890 (MAMP->Preferences->Ports) </p>
  
  <p>Maybe other option would be o reconfigure Jupyter to open by default other port than 8888. For instance, in terminal:</p>
  
  <p>:~jupyter notebook --generate-config
  :~nano ~/.jupyter/jupyter_notebook_config.py
  and change the line 
  <em>#c.NotebookApp.port = 8888</em> to 
  c.NotebookApp.port = 8887</p>