
from .nbrmd import read, reads, readf, write, writes, writef
from .hooks import update_rmd, update_ipynb, update_rmd_and_ipynb, update_selected_formats
from .cm import RmdFileContentsManager


from .nbrmd import read, reads, readf, write, writes, writef
from .hooks import update_rmd, update_ipynb, update_rmd_and_ipynb, update_selected_formats
try:
  from .cm import RmdFileContentsManager
except ImportError as e:
  RmdFileContentsManager = e.message

Allow import in case of missing notebook package
Allow import in case of missing notebook package
  
  from .nbrmd import read, reads, readf, write, writes, writef
  from .hooks import update_rmd, update_ipynb, update_rmd_and_ipynb, update_selected_formats
+ try:
- from .cm import RmdFileContentsManager
+   from .cm import RmdFileContentsManager
+ except ImportError as e:
+   RmdFileContentsManager = e.message
  
Allow import in case of missing notebook package
## Code Before:

from .nbrmd import read, reads, readf, write, writes, writef
from .hooks import update_rmd, update_ipynb, update_rmd_and_ipynb, update_selected_formats
from .cm import RmdFileContentsManager

## Instruction:
Allow import in case of missing notebook package
## Code After:

from .nbrmd import read, reads, readf, write, writes, writef
from .hooks import update_rmd, update_ipynb, update_rmd_and_ipynb, update_selected_formats
try:
  from .cm import RmdFileContentsManager
except ImportError as e:
  RmdFileContentsManager = e.message
