Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf4931c3

Browse files
author
minjk-bl
committed
Edit style and Fix some code for jupyter notebook
1 parenta924e6e commitf4931c3

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

‎jupyterlab/lib/index.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ const path = require('path');
22
const$=require('jquery');
33
require("jquery-ui");
44

5-
functionvp_css_loader(path){
5+
global.vp_css_loader=function(path){
66
returnpath+'.css';
77
}
88

9-
functionvp_text_loader(path){
9+
global.vp_text_loader=function(path){
1010
return'!!text-loader!'+path;
1111
}
1212

13-
functionvp_raw_loader(path){
13+
global.vp_raw_loader=function(path){
1414
returnpath;
1515
}
1616

‎visualpython/css/mainFrame.css‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@
99
* Change Date :
1010
*/
1111
#vp_wrapper {
12+
display: none;
13+
14+
position: fixed;
15+
height:calc(100%-110px);
16+
overflow: hidden;
17+
left: unset!important;
18+
object-fit: contain;
19+
color:var(--font-primary);
20+
font-family: AppleSDGothicNeo;
21+
border:1px solidvar(--border-gray-color);
22+
top:110px;
23+
right:0;
24+
background: white;
25+
z-index:100;
26+
}
27+
#vp_wrapper.colab {
1228
/* CHROME: edited to show */
1329
display: none;
1430

@@ -30,7 +46,7 @@
3046
z-index:100;
3147
}
3248
/* CHROME: set default box-sizing for vp area */
33-
div#vp_wrapper* {
49+
div#vp_wrapper.colab* {
3450
box-sizing: border-box!important;
3551
}
3652
/* LAB: reset position and size */

‎visualpython/js/MainFrame.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,7 @@ define([
226226
//========================================================================
227227
renderMainFrame(){
228228
this.$pageDom=$(vpHtml);
229-
if(vpConfig.extensionType==='lab'){
230-
this.$pageDom.addClass('lab');
231-
}
229+
this.$pageDom.addClass(vpConfig.extensionType);
232230
returnthis.$pageDom;
233231
}
234232
afterAttach(){

‎jupyternotebook/visualpython.js‎renamed to ‎visualpython/visualpython.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//============================================================================
1515
require.config({
1616
paths:{
17-
'vp_base' :'../nbextensions/visualpython/visualpython',
17+
'vp_base' :'../nbextensions/visualpython',
1818
'css' :'vp_base/lib/require/css.min'
1919
},
2020
config:{
@@ -48,6 +48,8 @@ function vp_raw_loader(path) {
4848
return'text!'+path;
4949
}
5050

51+
window.vpBase="/nbextensions/";
52+
5153
//============================================================================
5254
// Load extension
5355
//============================================================================
File renamed without changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp