<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmo's diary</blog_title>
  <blog_url>https://pod.hatenablog.com/</blog_url>
  <categories>
    <anon>sphinx</anon>
    <anon>python</anon>
    <anon>makefile</anon>
  </categories>
  <description>sphinxで雑にコード例と実行結果を表示したい場合がある。コード例はliteralincludeを使うと便利。一方実行結果をどうするのかというのが悩みどころ。 現状はMakefileで出力結果を生成してliteralincludeで埋め込んでいる。 こういう感じ .. literalinclude:: ../../examples/code.py result .. literalinclude:: ../../examples/code.output この時code.pyからcode.outputを生成しておく必要がある。 実行結果を出力したファイルを生成 以下のようなMakefileを作…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2017%2F06%2F09%2F081810&quot; title=&quot;sphinxで雑にコード例と実行結果を表示したい場合 - podhmo&amp;#39;s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-09 08:39:51</published>
  <title>sphinxで雑にコード例と実行結果を表示したい場合</title>
  <type>rich</type>
  <url>https://pod.hatenablog.com/entry/2017/06/09/081810</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
