@@ -1050,23 +1050,15 @@ def _update_pylab(self, change):
1050
1050
)
1051
1051
self .exit (1 )
1052
1052
1053
- notebook_dir = Unicode (config = True ,
1053
+ notebook_dir = Unicode (
1054
+ config = True ,
1054
1055
help = _ ("DEPRECATED, use root_dir." )
1055
1056
)
1056
1057
1057
- @default ('notebook_dir' )
1058
- def _default_notebook_dir (self ):
1059
- self .log .warning (_ ("\n notebook_dir is deprecated, use root_dir.\n " ))
1060
- return self .root_dir
1061
-
1062
1058
@observe ('notebook_dir' )
1063
1059
def _update_notebook_dir (self , change ):
1064
- self .log .warning (_ ("\n notebook_dir is deprecated, use root_dir.\n " ))
1065
- """Do a bit of validation of the notebook dir."""
1066
- new = change ['new' ]
1067
- # Check that notebook_dir and root_dir are equal
1068
- if self .root_dir != new :
1069
- self .root_dir = new
1060
+ self .log .warning (_ ("notebook_dir is deprecated, use root_dir" ))
1061
+ self .root_dir = change ['new' ]
1070
1062
1071
1063
root_dir = Unicode (config = True ,
1072
1064
help = _ ("The directory to use for notebooks and kernels." )
@@ -1102,9 +1094,6 @@ def _update_root_dir(self, change):
1102
1094
new = change ['new' ]
1103
1095
self .config .FileContentsManager .root_dir = new
1104
1096
self .config .MappingKernelManager .root_dir = new
1105
- # Check that notebook_dir and root_dir are equal
1106
- if self .notebook_dir != new :
1107
- self .notebook_dir = new
1108
1097
1109
1098
@observe ('server_extensions' )
1110
1099
def _update_server_extensions (self , change ):
0 commit comments