zabirauf / icsharp

C# kernel for Jupyter
Other
278 stars 62 forks source link

Suggestion: Change iCSharp.Kernel.exe.config #6

Closed awb99 closed 1 year ago

awb99 commented 9 years ago

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.

gwenzek commented 8 years ago

What are the modifications you're suggesting ?

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

<myxml>
   <someElement />  
</myxml>
awb99 commented 8 years ago

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.