migrate
Migrating IPython < 4.0 to Datalayer\n\nThis copies configuration and resources to their new locations in Datalayer\n\nMigrations:\n\n- .ipython/\n - nbextensions -> DATALAYER_DATA_DIR/nbextensions\n - kernels -> DATALAYER_DATA_DIR/kernels\n\n- .ipython/profile_default/\n - static/custom -> .datalayer/custom\n - nbconfig -> .datalayer/nbconfig\n - security/\n\n - notebook_secret, notebook_cookie_secret, nbsignatures.db -> DATALAYER_DATA_DIR\n\n - ipython_{notebook,nbconvert,qtconsole}config.py -> .datalayer/datalayer{name}_config.py
get_ipython_dir
def get_ipython_dir() -> str
Return the IPython directory location.\n\nNot imported from IPython because the IPython implementation\nensures that a writable directory exists,\ncreating a temporary directory if not.\nWe don't want to trigger that when checking if migration should happen.\n\nWe only need to support the IPython < 4 behavior for migration,\nso importing for forward-compatibility and edge cases is not important.
migrate_dir
def migrate_dir(src: str, dst: str) -> bool
Migrate a directory from src to dst
migrate_file
def migrate_file(src: str,
dst: str,
substitutions: Optional[dict[Any, Any]] = None) -> bool
Migrate a single file from src to dst\n\nsubstitutions is an optional dict of {regex: replacement} for performing replacements on the file.
migrate_one
def migrate_one(src: str, dst: str) -> bool
Migrate one item\n\ndispatches to migrate_dir/_file
migrate_static_custom
def migrate_static_custom(src: str, dst: str) -> bool
Migrate non-empty custom.js,css from src to dst\n\nsrc, dst are 'custom' directories containing custom.{js,css}
migrate_config
def migrate_config(name: str, env: dict[str, Any]) -> list[str]
Migrate a config file.\n\nIncludes substitutions for updated configurable names.
migrate
def migrate() -> bool
Migrate IPython configuration to Datalayer
DatalayerMigrate Objects
class DatalayerMigrate(DatalayerApp)
A Datalayer Migration App.
start
def start() -> None
Start the application.