简体   繁体   English

从 Unity3D 开始一个 jupyter notebook

[英]Start a jupyter notebook from Unity3D

I want to build a Unity application that I want to use to enter parameters which I want to pass to a jupyter notebook.我想构建一个 Unity 应用程序,我想用它来输入我想传递给 jupyter 笔记本的参数。 The notebook should then be executed which results in a CSV file, which again needs to be saved locally or passed to the Unity environment.然后应执行笔记本,生成 CSV 文件,该文件再次需要保存在本地或传递到 Unity 环境。

Is there a way to do this?有没有办法做到这一点?

Two ways I know off我知道的两种方法

A) Run Jupyter Notebook as an API then use C# rest requests to call the functions A) 将 Jupyter Notebook 作为 API 运行,然后使用 C# rest 请求调用函数

Haven't done this myself but probably the cleanest approach.我自己没有这样做,但可能是最干净的方法。

C# Call Jupyter Notebook C# 调用Jupyter Notebook

B) Jupyter Notebook can be called via commandline B) Jupyter Notebook 可以通过命令行调用

Passing command line arguments to argv in jupyter/ipython notebook 在 jupyter/ipython notebook 中将命令行 arguments 传递给 argv

You can also make command line/Batch calls from C#.您还可以从 C# 进行命令行/批处理调用。 Combining the two will allow you do do it将两者结合起来就可以做到

Executing Batch File in C# 在 C# 中执行批处理文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM