Exemplo n.º 1
0
 def S(self, line, cell=None, local_ns=None):
     if cell is None:
         code = ''
         return_output = True
         line_mode = True
     else:
         code = cell
         return_output = False
         line_mode = False
     code = line + code
     result = pyshen.eval_string(code)
     if result:
         pyshen.kl_print(result)
     return result
Exemplo n.º 2
0
 def S(self, line, cell=None, local_ns=None):
     if cell is None:
         code = ''
         return_output = True
         line_mode = True
     else:
         code = cell
         return_output = False
         line_mode = False
     code = line + code
     result = pyshen.eval_string(code)
     if result:
         pyshen.kl_print(result)
     return result
Exemplo n.º 3
0
 def __init__(self, shell):
     super(SMagics, self).__init__(shell)
     pyshen.eval_string('(shen_credits)')
Exemplo n.º 4
0
 def __init__(self, shell):
     super(SMagics, self).__init__(shell)
     pyshen.eval_string('(shen_credits)')