-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -7,7 +7,11 @@ | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/jquery.terminal.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/unix_formatting.min.js"></script> | ||
<script src="https://lib.imjoy.io/imjoy-loader.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/jquery.terminal/js/prism.js"></script> | ||
<script src="https://unpkg.com/[email protected]/components/prism-python.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/jquery.terminal.min.css" rel="stylesheet" /> | ||
<link href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism.css" rel="stylesheet" /> | ||
<!-- add icon --> | ||
<link rel="icon" href="https://imjoy.io//static/icons/favicon-32x32.png" /> | ||
<!-- add title --> | ||
|
@@ -591,6 +595,8 @@ | |
} | ||
term.resume(); | ||
|
||
$.terminal.syntax('python') | ||
|
||
const showCode = toBool(urlParams.get("show_code"), true); | ||
const code = urlParams.get("code"); | ||
if (code) { | ||
|