Search code examples
juliajupyter-notebookjupyterijulia-notebook

Adding a local image to an IJulia notebook


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 Info:

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 Info:

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

Solution

  • 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.