Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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 get files in directory 
Python :: how to log ip addresses in django 
Python :: pandas dataframe column to datetime 
Python :: activate venv enviroment 
Python :: primes pytyhon 
Python :: get path of notebook 
Python :: python import ndjson data 
Python :: pygame mute import message 
Python :: python inspect source code 
Python :: quit button tkinter 
Python :: python ssh library 
Python :: deleting duplicates in list python 
Python :: reset index pandas 
Python :: convert int to hex binary in python 
Python :: python control browse mouse selenium 
Python :: what is values_list in django orm 
Python :: language detection python 
Python :: add role discord .py 
Python :: how to make a window in tkinter 
Python :: how to add row in spark dataframe 
Python :: django.core.exceptions.ImproperlyConfigured 
Python :: django RetrieveUpdateDestroyAPIView 
Python :: package for downloading from youtybe for python 
Python :: what is need of bias in NN 
Python :: turn list of tuples into list 
Python :: set dtype for multiple columns pandas 
Python :: python type hint for a string 
Python :: pynput left click command 
Python :: how to access variable from another function in same class in python 
Python :: python current working directory 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =