File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import importlib
2
+ import warnings
2
3
3
4
4
5
class ExtensionLoadingError (Exception ):
@@ -28,6 +29,11 @@ def get_loader(obj, logger=None):
28
29
func = getattr (obj , '_load_jupyter_server_extension' )
29
30
except AttributeError :
30
31
func = getattr (obj , 'load_jupyter_server_extension' )
32
+ warnings .warn ("A `_load_jupyter_server_extension` function was not "
33
+ "found in {name!s}. Instead, a `load_jupyter_server_extension` "
34
+ "function was found and will be used for now. This function "
35
+ "name will be deprecated in future releases "
36
+ "of Jupyter Server." .format (name = obj ), DeprecationWarning )
31
37
except Exception :
32
38
raise ExtensionLoadingError ("_load_jupyter_server_extension function was not found." )
33
39
return func
You can’t perform that action at this time.
0 commit comments