-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Usability: Open browser, display url and shortcut to serving directory (
#136) * New: open browser on launch * Show the url voila is running at * New: shortcut to serving a directory when the cmd line argument is a directory * flake8 * fix: help was None
- Loading branch information
1 parent
82b598a
commit 6bddf10
Showing
3 changed files
with
166 additions
and
15 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
share/jupyter/voila/template/default/templates/browser-open.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{# This template is not served, but written as a file to open in the browser, | ||
passing the token without putting it in a command-line argument. #} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="1;url={{ open_url }}" /> | ||
<title>Opening voila</title> | ||
</head> | ||
<body> | ||
|
||
<p> | ||
This page should redirect you to voila. If it doesn't, | ||
<a href="{{ open_url }}">click here to go to voila</a>. | ||
</p> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters