Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

anaconda navigator jupyter notebook change default directory

'Important note:'
	This fix only applies if you are using Anaconda to start Juypter Notebook.
    
'Steps:'
	'1: Open Anaconda Navigator'
  
  	'2: Click the Environments tab on the left side'
    
  '''3: Next to "base (root)" should be a green play button,
        click that followed by "Open Terminal" '''
    
    '4: In the terminal that opens, run these commands:'
		jupyter notebook --generate-config
		notepad %userprofile%.jupyterjupyter_notebook_config.py

	'5: Notepad should open, press CTRL+F and search for this:'
 		c.NotebookApp.notebook_dir
  
  '''6: Un-comment the line, then place the path you want to use inside the quotes'
		NOTE: Replace any back slashes with forward slashes!'
        Example: '''
			c.NotebookApp.notebook_dir = 'C:/Users/cloud/Documents/Jupyter Notebooks'
  
	'7: Save the file and restart Anaconda Navigator, closing Notebook if prompted.'
Comment

how to set default file directory for jupyter notebook

import os
os.getcwd()
Out[2]:
'/tmp'
In [3]:

os.chdir('/')
In [4]:


os.getcwd()
Out[4]:
'/'
In [ ]:
Comment

how to set default file directory for jupyter notebook

%cd "C:abcxyz"
Comment

PREVIOUS NEXT
Code Example
Python :: python open folder in explorer 
Python :: how to log ip addresses in flask 
Python :: get max value column pandas 
Python :: Entry border color in tkinter 
Python :: pandas groupby histogram 
Python :: stringbuilder python 
Python :: python backward difference 
Python :: how to find index of second largest number in array python 
Python :: python remove all except numbers 
Python :: Add a quit button Tkinter 
Python :: python loop break on keypress 
Python :: how to make python remove the duplicates in list 
Python :: classes in python with self parameter 
Python :: python pandas dataframe from csv index column 
Python :: how to write to a file in python without deleting all content 
Python :: read xls file in python 
Python :: convert_text_to_hexadecimal_viva.py in python 
Python :: Incorrect number of bindings supplied. The current statement uses 1, and there are 3 supplied. 
Python :: urlencode python 
Python :: install django rest_framework 
Python :: install python selenium webdriver 
Python :: python remove n random elements from a list 
Python :: download youtube-dl python 
Python :: python random choice int 
Python :: except as exception: 
Python :: display pythonpath linux 
Python :: python number divisible by two other numbers 
Python :: check object attributes python 
Python :: how to run for loop in python 
Python :: discord py get user by id 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =