@notebook.command()<EOL>@click.option('<STR_LIT>', type=bool,<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', is_flag=True, default=False,<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.pass_context<EOL>@clean_outputs<EOL>def stop(ctx, commit, yes):
user, project_name = get_project_or_local(ctx.obj.get('<STR_LIT>'))<EOL>if not yes and not click.confirm("<STR_LIT>"<EOL>"<STR_LIT>".format(user, project_name)):<EOL><INDENT>click.echo('<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>if commit is None:<EOL><INDENT>commit = True<EOL><DEDENT>try:<EOL><INDENT>PolyaxonClient().project.stop_notebook(user, project_name, commit)<EOL>Printer.print_success('<STR_LIT>')<EOL><DEDENT>except (PolyaxonHTTPError, PolyaxonShouldExitError, PolyaxonClientException) as e:<EOL><INDENT>Printer.print_error('<STR_LIT>'.format(project_name))<EOL>Printer.print_error('<STR_LIT>'.format(e))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>
Stops the notebook deployment for this project if it exists.

    Uses [Caching](/references/polyaxon-cli/#caching)