<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://giwiki.gi.ucsc.edu/index.php?action=history&amp;feed=atom&amp;title=Change_Default_File_Browser_Directory</id>
	<title>Change Default File Browser Directory - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://giwiki.gi.ucsc.edu/index.php?action=history&amp;feed=atom&amp;title=Change_Default_File_Browser_Directory"/>
	<link rel="alternate" type="text/html" href="http://giwiki.gi.ucsc.edu/index.php?title=Change_Default_File_Browser_Directory&amp;action=history"/>
	<updated>2026-06-01T12:12:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://giwiki.gi.ucsc.edu/index.php?title=Change_Default_File_Browser_Directory&amp;diff=775&amp;oldid=prev</id>
		<title>Weiler: Created page with &quot;__TOC__  When starting a notebook, by default, the &quot;File Browser&quot; directory on the left panel of the Jupyter Notebook window in your home directory.  If you would prefer to have that default directory be something else, follow these steps.  == Stop All Current Running Notebooks ==  Stop all your notebooks before proceeding.  In this case, click &quot;File&quot; -&gt; &quot;Hub Control Panel&quot;, then click the red &quot;Stop Server&quot; button.  == Create User Jupyter Config File ==  Create a custom...&quot;</title>
		<link rel="alternate" type="text/html" href="http://giwiki.gi.ucsc.edu/index.php?title=Change_Default_File_Browser_Directory&amp;diff=775&amp;oldid=prev"/>
		<updated>2026-05-23T00:42:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__TOC__  When starting a notebook, by default, the &amp;quot;File Browser&amp;quot; directory on the left panel of the Jupyter Notebook window in your home directory.  If you would prefer to have that default directory be something else, follow these steps.  == Stop All Current Running Notebooks ==  Stop all your notebooks before proceeding.  In this case, click &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Hub Control Panel&amp;quot;, then click the red &amp;quot;Stop Server&amp;quot; button.  == Create User Jupyter Config File ==  Create a custom...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
When starting a notebook, by default, the &amp;quot;File Browser&amp;quot; directory on the left panel of the Jupyter Notebook window in your home directory.  If you would prefer to have that default directory be something else, follow these steps.&lt;br /&gt;
&lt;br /&gt;
== Stop All Current Running Notebooks ==&lt;br /&gt;
&lt;br /&gt;
Stop all your notebooks before proceeding.  In this case, click &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Hub Control Panel&amp;quot;, then click the red &amp;quot;Stop Server&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
== Create User Jupyter Config File ==&lt;br /&gt;
&lt;br /&gt;
Create a custom Jupyter config file by ssh'ing over to '''mustard.prism''' and then doing:&lt;br /&gt;
&lt;br /&gt;
 jupyter server --generate-config&lt;br /&gt;
&lt;br /&gt;
It will create a directory in your home directory called '''.jupyter'''.  There is a file in that directory called:&lt;br /&gt;
&lt;br /&gt;
 jupyter_server_config.py&lt;br /&gt;
&lt;br /&gt;
We need to edit that file, and add a line to the top of the file.  The line we add will direct the Jupyter Notebook to use a different root directory when spawning, often a groups directory like '''/private/groups/hausslerlab''' as an example.  Open the file  using '''vim''' or whatever your favorite text editor is:&lt;br /&gt;
&lt;br /&gt;
 vim ~/.jupyter/jupyter_server_config.py&lt;br /&gt;
&lt;br /&gt;
Add this line to the top of that file:&lt;br /&gt;
&lt;br /&gt;
 c.ServerApp.root_dir = '/private/groups/hausslerlab'&lt;br /&gt;
&lt;br /&gt;
'''/private/groups/hausslerlab''' should be changed to whatever you want your default directory to be.&lt;br /&gt;
&lt;br /&gt;
== Launch a New Notebook Instance ==&lt;br /&gt;
&lt;br /&gt;
Launch a new cluster notebook instance, and you should see your new default directory on the left!&lt;br /&gt;
&lt;br /&gt;
== OPTIONAL: Symlinks in your Home Directory ==&lt;br /&gt;
&lt;br /&gt;
There is another way to do this that doesn't involve creating a config file and editing it.  Simply add a symlink in your home directory to your lab's groups directory, and you can click on that in the file browser and it will take you to your lab directory.&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
 ln -s /private/groups/hausslerlab hausslerlab&lt;br /&gt;
&lt;br /&gt;
Again, '''/private/groups/hausslerlab''' should be wherever you want the link to take you.&lt;/div&gt;</summary>
		<author><name>Weiler</name></author>
	</entry>
</feed>