Last active
July 24, 2025 08:51
-
-
Save data-enhanced/a9e286646dec2bb65ac8b524a331c86d to your computer and use it in GitHub Desktop.
Revisions
-
David Cochran revised this gist
Jan 13, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,12 +17,12 @@ Remove the hash mark for the next line `c.NotebookApp.browser = ''` Update the line by supplying the open command and correct path for your desired browser. **For Firefox:** # import webbrowser c.NotebookApp.browser = u'open -a /Applications/Firefox.app %s' **For Google Chrome:** # import webbrowser c.NotebookApp.browser = u'open -a /Applications/Google\ Chrome.app %s' -
David Cochran revised this gist
Jan 13, 2020 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,9 +11,11 @@ This generates the file: ## Step 2. Open and edit the new config file. Find the block for `# import webbrowser`. Remove the hash mark for the next line `c.NotebookApp.browser = ''` Update the line by supplying the open command and correct path for your desired browser. For Firefox: -
David Cochran revised this gist
Jan 13, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,3 +32,4 @@ Reopen jupyter notebooks. [Launch Jupyter Notebook in Safari from Anaconda Navigator? Stackoverflow.com](https://stackoverflow.com/questions/58355377/launch-jupyter-notebook-in-safari-from-anaconda-navigator) [How to change the default browser used by jupyter notebook in windows](https://stackoverflow.com/questions/47772157/how-to-change-the-default-browser-used-by-jupyter-notebook-in-windows) -
David Cochran revised this gist
Jan 13, 2020 . 1 changed file with 24 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ # Change the Default Browser for Jupyter Notebooks in OS X ## Step 1. Create an editable config file for Jupyter notebooks. To do this, open Terminal and type: jupyter notebook --generate-config @@ -7,8 +9,26 @@ This generates the file: ~/.jupyter/jupyter_notebook_config.py ## Step 2. Open and edit the new config file. a. Find the block for `# import webbrowser`. b. Remove the hash mark for the next line `c.NotebookApp.browser = ''` c. Update the line by supplying the open command and correct path for your desired browser. For Firefox: # import webbrowser c.NotebookApp.browser = u'open -a /Applications/Firefox.app %s' For Google Chrome: # import webbrowser c.NotebookApp.browser = u'open -a /Applications/Google\ Chrome.app %s' Save the new file. Reopen jupyter notebooks. # References [Launch Jupyter Notebook in Safari from Anaconda Navigator? Stackoverflow.com](https://stackoverflow.com/questions/58355377/launch-jupyter-notebook-in-safari-from-anaconda-navigator) -
David Cochran created this gist
Jan 13, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ Step 1. Create an editable config file for Jupyter notebooks. To do this, open Terminal and type: jupyter notebook --generate-config This generates the file: ~/.jupyter/jupyter_notebook_config.py Step 2. Open and edit the above file. Find this line and update it: # import webbrowser c.NotebookApp.browser = u'open -a /Applications/Firefox.app %s'