Skip to content
Browse files

Allow period characters in notebook names.

  • Loading branch information...
1 parent 7777bdd commit a2b246f6dacff2b37c00e87c6788849b6776fef4 @stefanv stefanv committed Aug 18, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 IPython/frontend/html/notebook/notebookmanager.py
View
10 IPython/frontend/html/notebook/notebookmanager.py
@@ -52,9 +52,13 @@ def list_notebooks(self):
dict(notebook_id=notebook,name=name)
"""
- names = os.listdir(self.notebook_dir)
- names = [name.split(u'.')[0]
- for name in names if name.endswith(self.filename_ext)]
+ import glob
+
+ names = glob.glob(os.path.join(self.notebook_dir,
+ '*' + self.filename_ext))
+ names = [os.path.splitext(os.path.basename(name))[0]
+ for name in names]
+
data = []
for name in names:
if name not in self.rev_mapping:

0 comments on commit a2b246f

Please sign in to comment.
Something went wrong with that request. Please try again.