@@ -148,7 +148,7 @@ define([
148148var pipName = that . packageLib [ key ] . pipName ;
149149var code = com_util . formatString ( "!pip uninstall -y {0}" , pipName ) ;
150150if ( vpConfig . extensionType === 'lite' ) {
151- code = com_util . formatString ( "import piplite\npiplite. uninstall(' {0}') " , pipName ) ;
151+ code = com_util . formatString ( "%pip uninstall {0}" , pipName ) ;
152152}
153153// create block and run it
154154$ ( '#vp_wrapper' ) . trigger ( {
@@ -162,7 +162,7 @@ define([
162162var pipName = that . packageLib [ key ] . pipName ;
163163var code = com_util . formatString ( "!pip install --upgrade {0}" , pipName ) ;
164164if ( vpConfig . extensionType === 'lite' ) {
165- code = com_util . formatString ( "%pip install--upgrade {0}" , pipName ) ;
165+ code = com_util . formatString ( "%pip install {0}" , pipName ) ;
166166}
167167// create block and run it
168168$ ( '#vp_wrapper' ) . trigger ( {
@@ -269,15 +269,15 @@ define([
269269var pipName = this . packageLib [ this . state . selected ] . pipName ;
270270var code = com_util . formatString ( "!pip install {0}" , pipName ) ;
271271if ( vpConfig . extensionType === 'lite' ) {
272- code = com_util . formatString ( "import piplite\npiplite. install(' {0}') " , pipName ) ;
272+ code = com_util . formatString ( "%pip install {0}" , pipName ) ;
273273}
274274if ( versionType === 'specified' ) {
275275// specified version
276276let version = $ ( this . wrapSelector ( '.vp-inner-popup-version' ) ) . val ( ) ;
277277if ( version && version !== '' ) {
278278code = com_util . formatString ( "!pip install {0}=={1}" , pipName , version ) ;
279279if ( vpConfig . extensionType === 'lite' ) {
280- code = com_util . formatString ( "import piplite\npiplite. install(' {0}=={1}') " , pipName , version ) ;
280+ code = com_util . formatString ( "%pip install {0}=={1}" , pipName , version ) ;
281281}
282282} else {
283283$ ( this . wrapSelector ( '.vp-inner-popup-version' ) ) . focus ( ) ;