icsharp icon indicating copy to clipboard operation
icsharp copied to clipboard

Suggestion: Change iCSharp.Kernel.exe.config

Open awb99 opened this issue 10 years ago • 2 comments

Additional dlls will be able to be loaded into iCSharp.Kernel. The location of such dlls will have to be either GAC or the directory in which iCSharp.Kernel is located. Dotnet offers a simple way to load dlls from subdirectories. Say we have a huge library in the subdirectory customDir1 and customDir2 then the App.Config needs to be appended (after the startup node is closed) with the following:

  <runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <probing privatePath="customDir1;customDir2" />
  </assemblyBinding>
  <trust level="Full" legacyCasModel="true" />
  </runtime>

Why do I suggest this? A more clear separation of the kernel from custom third party dlls.

Note: I dont understand why the xml markup does not show above. It is there.

awb99 avatar Sep 12 '15 16:09 awb99

What are the modifications you're suggesting ?

To quote xml try triple ` followed by 'xml' like in this SO question

<myxml>
   <someElement />  
</myxml>

gwenzek avatar Jan 06 '16 18:01 gwenzek

I am suggesting that iCSharp.Kernel.exe.config gets added the runtime flags; this way one can put custom dlls into customDir1 and customDir2, and they will be able to get loaded in Jupyter/Ipython wth the #load directive.

awb99 avatar Mar 15 '16 18:03 awb99