将局部图像添加到IJulia笔记本

将局部图像添加到IJulia笔记本

本文介绍了将局部图像添加到IJulia笔记本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将本地图像添加到IJulia笔记本?该映像与IPYNB文件位于同一本地网络文件夹中.通过符号链接访问该文件夹.我已经尝试过相对和绝对文件名.

How do I add a local image to an IJulia notebook? The image is in the same local network folder as the IPYNB file. The folder is accessed via a symbolic link. I've tried both relative and absolute file names.

<img src="test.png" alt="Image Test" style="width:600px">

![Image Test](test.png)

两者都显示相同,就像符号旁边的断开的图像链接一样.

Both show up the same, as a broken image link with "Image Test" next to the symbol.

Jupyter信息:

Python 2.7.12 |Continuum Analytics, Inc.| (default, Jul  2 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]

notebook server is 4.2.3-da472a5

朱莉娅信息:

Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
  WORD_SIZE: 64
  BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: liblapack.so.3
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)

IJulia                        1.3.2

推荐答案

答案是将所有文件移动到我的硬盘上.我使用的文件夹在本地网络上.即使那样,只有相对目录才​​能同时使用这两种markdown方法.

The answer was to move all the files to my hard drive. The folder I was using was on a local network. Even then only relative directories worked with both markdown methods.

尽管知道该怎么做,但我还不知道为什么.如果有人可以建议为什么会这样,我将不胜感激.

Despite knowing what to do I don't yet know why. If somebody could suggest why this might be I would appreciate it.

这篇关于将局部图像添加到IJulia笔记本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 01:47