old_contents: import unittest
  import sys
  
  from sos_notebook.test_utils import sos_kernel
  from ipykernel.tests.utils import execute, wait_for_idle, assemble_output
  
  @unittest.skipIf(sys.platform == 'win32', 'julia does not exist on win32')
  class TestSoSKernel(unittest.TestCase):
      def testKernel(self):
          with sos_kernel() as kc:
              execute(kc=kc, code='a = 1')
              stdout, stderr = assemble_output(kc.iopub_channel)
              self.assertEqual(stdout.strip(), '', f'Stdout is not empty, "{stdout}" received')
              self.assertEqual(stderr.strip(), '', f'Stderr is not empty, "{stderr}" received')
              execute(kc=kc, code='%use Julia\n%get a\nprint(a)')
              stdout, stderr = assemble_output(kc.iopub_channel)
              self.assertEqual(stderr.strip(), '', f'Stderr is not empty, "{stderr}" received')
              self.assertEqual(stdout.strip(), '1', f'Stdout should be 1, "{stdout}" received')
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: import unittest
  import sys
  
  from sos_notebook.test_utils import sos_kernel
  from ipykernel.tests.utils import execute, wait_for_idle, assemble_output
  
  import jupyter_client
  
  try:
      print(jupyter_client.kernelspec.get_kernel_spec('julia-1.0').to_dict())
  except jupyter_client.kernelspec.NoSuchKernel:
      print('julia-1.0 kernel was not installed')
      print('The following kernels are installed:')
      print('jupyter_client.kernelspec.find_kernel_specs()')
      print(jupyter_client.kernelspec.find_kernel_specs())
  
  class TestSoSKernel(unittest.TestCase):
      def testKernel(self):
          with sos_kernel() as kc:
              execute(kc=kc, code='a = 1')
              stdout, stderr = assemble_output(kc.iopub_channel)
              self.assertEqual(stdout.strip(), '', f'Stdout is not empty, "{stdout}" received')
              self.assertEqual(stderr.strip(), '', f'Stderr is not empty, "{stderr}" received')
              execute(kc=kc, code='%use Julia\n%get a\nprint(a)')
              stdout, stderr = assemble_output(kc.iopub_channel)
              self.assertEqual(stderr.strip(), '', f'Stderr is not empty, "{stderr}" received')
              self.assertEqual(stdout.strip(), '1', f'Stdout should be 1, "{stdout}" received')
  
  if __name__ == '__main__':
      unittest.main()
  
subject: Print kernelspec