Package: jupyter-MyBash-kernel
MyBash kernel for JupyterExampleMake sure you have the following requirements installed:Bashjupyterpython 3pipStep-by-stepgitclonehttps://github.com/nufeng1999/jupyter-MyBash-kernel.gitcdjupyter-MyBash-kernel
pipinstall-e.cdjupyter_MyBash_kernel&&python3install_MyBash_kernel--user# now you can start the notebookjupyternotebookThis is a very simplified exploration and development work, which is suitable for beginners and experts, especially for the development of computer system maintenance code.My minification kelnel of jupyterMyBashMyCMyDartMyGjsMyGoMyGroovyMyJavaMyKotlinMyNodejsMyPythonMyValaMyVBScriptMyWolframScriptMyVBScriptMyTypeScriptMyPowerShellMyBatchMyLuaMyPerlMyLuaMyPHPMyRMyMakeMyRustMyRubyMyTclMyVimscriptSupport labelLabelLabel prefix is##%or//%Example1:##%overwritefile##%file:../src/do_execute.c##%noruncodeExample2:##%runprg:ls##%runprgargs:-alExample3:##//%outputtype:text/html##%runprg:bash##%runprgargs:test.sh##%overwritefile##%file:test.shecho "shell cmd test"lsCompile and run codelabelvalueannotationcflags:Specifies the compilation parameters for C language compilationldflags:Specify the link parameters for C language connectionargs:Specifies the parameters for the code file runtimeswitchesSpecifies the parameters for SwiftcoptionsSpecifies the parameters for Perl,Luacoptions:Code compilation time parameters of JVM platformjoptions:Code runtime parameters for the JVM platformrunprg:The code content will be run by the execution file specified by runprgrunprgargs:runprg Parameters of the specified executable ,You can put the name specified by file into the parameter string.outputtype:text/plainmime-typeoutencode:UTF-8set stdout encoderunintermRun the code in the terminalterm:gnome-terminallinux:gnome-terminal windows:c:\Windows\System32\cmd.exe /c startcwd :The working directory in which the program runscleartestclear test codeInteractive running codelabelvalueannotationrunmode:replThe code will run in interactive mode.replcmdmode(repl interactive mode) to send stdin information to the specified process (repl child PID)replsetip:"\r\n"Set (repl interactive mode) the prompt string when waiting for inputreplchildpid:(repl interactive mode) specifies the running process numberrepllistpidLists the interactive process PIDs that are runningInteractive running GDBlabelvalueannotationrungdbRun GDB and send commands to GDB (repl interactive mode)Save code and include filelabelvalueannotationnoruncodeDo not run code contentoverwritefileOverwrite existing filesfileencode:UTF-8code file encodefile:The code can be saved to multiple filesfndict:Dictionary for file namesfilefordict:Replace $key of fndict with a string from the fndict when save filefnlist:List for file namesfileforlist:Replace $fnlist with a string from the list  when save fileinclude:Places the specified file contents in the label locationTemplates and testinglabelDefine a macrodefine:Define a macro锛孴he content is jinja2 template. example:##%define:M1 this is {{name}}##$Macroname聽or//$MacronameReplace with macro##$M1 name='jinja2 content'This line will be replaced by this is jinja2 contenttemplatefile:Define template code area##jj2_beginor//jj2_begin##jj2_endor//jj2_endPut template code between##jj2_beginand##jj2_end锛宩j2_begin Followed by parameters example:name='jinja2 content'.example:##jj2_begin:name=wwwDefine test code area## test_beginor// test_begin## test_endor// test_endtest_Begin and test_End is the test code锛學ill not be saved to the file##%cleartestclear test code##mdf:or//mdf:##mdfendor//mdfend##mdfand##mdfendcontent锛學ill be saved to the fileCommands and environment variableslabelvalueannotationcommand:shell command or executablepycmd:python parameter commanddartcmd:dart parameter commandfluttercmd:flutter parameter commandkcmd:jupyter kernel commandenv:Setting environment variables for code file runtime.example: name=xxx name2='dddd'Behavior controllabelvalueannotationnoruncodeDo not run code contentonlycsfileGenerate code files onlyonlyruncmdRun the label command onlyonlycompileCompile code content onlyLicenseMIT