Note that you can’t browse files outside of this path from JupyterLab’s File Browser, as this will act as your Home. You can open this file on your text editor of choice and add the following line to it: c.LabApp.browser = 'google-chrome-stable -app=%s'Īdditionally, you can change the default directory of your notebooks when you open JupyterLab by adding the following line as well: c.NotebookApp.notebook_dir = '/home//Code/Python' This will create the ~/.jupyter/jupyter_notebook_config.py file. If you’ve never modified the default JupyterLab configuration in the past, you’ll need to run the following command to generate a config file: jupyter lab -generate-config The way to do this is by simply modifying a config file to change the default browser for JupyterLab. Running two commands for opening a single GUI application is probably more annoying than having an IDE in a browser tab. This may also be possible with GNOME Web, but I haven’t tested it. Now you could either copy the link and open it in a new tab, which would totally defeat our goals, or open it with Chrome in application mode: google-chrome-stable -app= This will open JupyterLab in its own window, just as we wanted: To access the notebook, open this file in a browser:įile:///run/user/1000/jupyter/nbserver-11009-open.html What I didn’t know until yesterday, is that you can add the -no-browser option to the previous command to start the JupterLab server only. This automatically opens a tab on your browser with your JupyterLab session. The way most people run Jupyter Lab is to open a terminal and just run jupyter lab Run Jupyter in application mode with Google Chrome This will be a guide on how to make this happen. One thing that you may find annoying with JupyterLab is the fact that it opens in a tab of your Internet browser, when it should clearly have its own window. Rodeo seemed to be a very promising IDE focused on Data Science with a UI/UX very similar to RStudio’s, but its development stopped in early 2017. Arguably, the main reason for this is the notebook format, an idea introduced back in 1986 in the amazing Wolfram Mathematica.īut the fact is there are just no decent alternatives. JupyterLab has quickly become the standard for doing Data Science in Python.
0 Comments
Leave a Reply. |