TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Creating your own IPython server from scratch

70 点作者 clmcleod超过 9 年前

2 条评论

nl超过 9 年前
I hate to be that guy. Criticizing is so easy to fall back to, and I try really hard not to do it. But this is.. kinda bad?<p>It isn&#x27;t anything to do with IPython (except that it runs code and IPython runs code).<p>It handles the easy parts (yes, you can get Python to exec() code, and you can wrap that in a Flask webapp), but then punts on the hard parts (&quot;a simple frontend.. isn’t hard&quot;, &quot;concurrency&quot;, &quot;security&quot;)<p><i>52 lines of code for a fully functioning, elegant, session-based Python kernel is not too shabby if I do say so myself.</i><p>Except it isn&#x27;t IPython. It&#x27;s true that it is short.<p>I guess if I had any suggestions they would be to remove any reference to IPython, and call it something like &quot;a remote python code execution service&quot;. That&#x27;s probably a fair name for it, and as such I think it is fine.
评论 #11132674 未加载
评论 #11133354 未加载
wantreprenr007超过 9 年前
What most people don&#x27;t realize is that iPython (sans this notebook stuff) scales horizontally (across boxes) too. Get a bunch of UNIX surplus cheapo pizza boxes with decent CPUs and start crunching cheaper than buying new SuperMicro boxes... let some die and it&#x27;s still cheaper than buying new gear.<p>If you want a Linux cluster and don&#x27;t want to set that shit up manually, Rocks Clusters FTW.<p>I haven&#x27;t had good luck with this new notebook system, it requires installing too much and doesn&#x27;t just work like Python packages and it&#x27;s too much of a pain, but maybe it will get less painful... Maybe they should just provide desktop apps which pull down&#x2F;update and vendor their own per-language runtimes and give a way to interact with those isolated (vendored) runtimes, rather than a bunch of clunky instructions that go stale quickly. For server-side, something similar that doesnt interfere with native packages.<p>For somewhat older Python notebook apps, ReInteract is nice.<p>Source: a former Stanford HPC sysadmin
评论 #11131842 未加载
评论 #11131829 未加载