Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ipython notebook requires javascript

When I start the ipython server notebook using following command:

$ ipython notebook --profile=myserver

I get following screen which I don't recall seeing it before. It seems like a interactive screen where I move the curse and hit enter but I am not sure what I should be doing because I haven't seen this before and did an extensive google search and unable to find any detail information on what I need to select.

    IPython Dashboard
   IPython Notebook requires JavaScript.                                                                                                               
   Please enable it to proceed.                                                                                                                        

   IPython Notebook                                                                                                                                    

     * Notebooks                                                                                                                                       
     * Clusters                                                                                                                                        

   To import a notebook, drag the file onto the listing below or click here. ____________________                                                      
   (Submit) Refresh (Submit) New Notebook                                                                                                              
     * /                                                                                                                                               
     * rootHome /                                                                                                                                          
     * subdir /                                                                                                                                        
     * anotherSubdir /                                                                                                                                       

   IPython parallel computing clusters (Submit) Refresh                                                                                                
   profile status # of engines action                                                                                                                  



(Form submit button) Use right-arrow or <return> to submit ('x' for no cache).                                                                         
  Arrow keys: Up and Down to move.  Right to follow a link; Left to go back.                                                                           
 H)elp O)ptions P)rint G)o M)ain screen Q)uit /=search [delete]=history list   

I don't think I want to do import option...

like image 284
add-semi-colons Avatar asked Mar 13 '14 14:03

add-semi-colons


People also ask

What is the difference between Jupyter Notebook and IPython notebook?

Going forward, Jupyter will contain the language-agnostic projects that serve many languages. IPython will continue to focus on Python and its use with Jupyter. Jupyter's architecture includes frontends (web or console) and backends (kernels for various languages). IPython console is only about Python and terminal.

Is there a notebook for JavaScript?

IJavascript is a Javascript kernel for the Jupyter notebook. The Jupyter notebook combines the creation of rich-text documents (including equations, graphs and videos) with the execution of code in a number of programming languages.

Is IPython notebook and Jupyter Notebook same?

Jupyter Notebook (formerly IPython Notebook) is a web-based interactive computational environment for creating, executing, and visualizing Jupyter notebooks.


3 Answers

As explained here: http://www.hydro.washington.edu/~jhamman/hydro-logic/blog/2013/10/04/pybook-remote/ launch with the --no-browser parameter like:

ipython notebook --no-browser
like image 167
danielu Avatar answered Oct 20 '22 16:10

danielu


This is what happens if e.g. your config file (ipython_notebook_config.py) is missing following entry:

c = get_config()
c.NotebookApp.open_browser = False
other options...

NotebookApp.open_browser defaults to True, which is why it tries to open a browser. Since I guess you are doing this in a terminal that has a text browser, it will not start javascript. Make sure that open_browser is set to False. Since it was working in the past, perhaps then somehow your config file got overridden?

If it is not the case, more details would be welcomed - your config file for instance.

like image 24
Lukasz Tracewski Avatar answered Oct 20 '22 16:10

Lukasz Tracewski


I got the same message "IPython Notebook requires JavaScript ..." after performing the recommended modifications (Running a notebook server) in the ipython_notebook_config.py file. The problem was that I modified the ipython_notebook_config.py file in the default profile (/.ipython/profile_default/), instead of the one in the nbserver profile (/.ipython/profile_nbserver/). As a result, ipython notebook --profile=nbserver was not loading the right configuration...

like image 1
leo9r Avatar answered Oct 20 '22 15:10

leo9r