jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.78k stars 5k forks source link

Jupyter Notebook - Not routing working directories to browser #1711

Open spallavolu opened 8 years ago

spallavolu commented 8 years ago

Hello,

I installed Anaconda few months back and it used to work well,but after I installed Spark,I started facing problem in opening notebook on browser(Chrome).So,I went through few blogs and made changes as they suggested.They didn't work and unfortunately notebook also stopped opening on my default browser.So,I uninstalled anaconda and reinstalled again.this didn't fix the problem :(

Can any one of you help me in solving this issue. the command jupyter notebook is not giving any errors,but after this initiates a new tab on browser page is not being displayed.

Sravans-MacBook-Pro:~ ravan$ jupyter notebook

[I 22:49:48.716 NotebookApp] Serving notebooks from local directory: /Users/ravan

[I 22:49:48.716 NotebookApp] 0 active kernels

[I 22:49:48.716 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/

[I 22:49:48.716 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

spallavolu commented 8 years ago
screen shot 2016-08-25 at 10 55 12 pm
spallavolu commented 8 years ago

the following page is opening while trying to issue the command "jupyter notebook" in the terminal.

Tried the command open -a Google\ Chrome http://localhost:8888 also and still seeing the same page.

Carreau commented 8 years ago

[I 22:49:48.716 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888

Can you try pasting http://localhost:8888 as the url in the browser, if still nothing try http://127.0.0.1:888 ; do you still get the above page ?

spallavolu commented 8 years ago

Thank you very much for quick response!!

I tried clearing cache and it started to work!! but the issue with pyspark is not resolved yet.

I gave the following commands in .profile and .bash_profile,still I am not able to open notebook issuing pyspark command.

.profile

export PATH=/usr/local/Cellar/apache-spark/2.0.0/bin:$PATH

export PYSPARK_DRIVER_PYTHON=ipython

export PYSPARK_DRIVER_PYTHON_OPTS='notebook’ pyspark

.bash_profile

export PATH=/Users/ravan/anaconda/bin:$PATH

export SPARK_HOME=/usr/local/Cellar/apache-spark/2.0.0

export PATH=$SPARK_HOME/bin:$PATH

export PYSPARK_SUBMIT_ARGS="--master local[2] pyspark-shell”