def ipynb_file_name(params):
    """
    Returns OS path to notebook based on route parameters.
    """
    global notebook_dir
    p = notebook_dir + [param.replace('/', '') for param in params if param is not None]
    return path.join(*p)
Returns OS path to notebook based on route parameters.