IJulia is a Julia-language backend combined with the Jupyter interactive environment (also used by IPython). This combination allows to interact with the Julia language using Jupyter/IPython's powerful notebook, which combines code, formatted text, math, and multimedia in a single document.
Questions tagged [ijulia-notebook]
198 questions
1
vote
2 answers
NameError: name 'Pkg' is not defined
In the IJulia Notebook I'm trying to add the packages, but I'm getting the error:
NameError: name 'Pkg' is not defined

Mona Jalal
- 34,860
- 64
- 239
- 408
1
vote
1 answer
JuliaBox - LoadError: unlink: read-only file system (EROFS) Failed to precompile .julia/lib/v0.4/PyCall.ji
I'm running a small Julia program using PyPlot in Juliabox (IJulia Notebook) but it's errors out with an error mesg as listed below. I not sure if it's trying to use my machine's disk to write to but I have valid R+W access there. Basically I'm…

AKS
- 16,482
- 43
- 166
- 258
1
vote
1 answer
Pkg.add("IJulia") yields "ERROR: failed process Process(`git clone ... "
Trying to add IJulia to the Julia package so it can be run in Jupyter notebook. The command
Pkg.add("IJulia")
gives this string of info and errors:
INFO: Initializing package repository /var/root/.julia/v0.4
INFO: Cloning METADATA from…

iayork
- 6,420
- 8
- 44
- 49
1
vote
1 answer
Troubleshooting: Kernel always dies using IJulia in IPython notebook
I recently began using julia, and I would like to use in with IPython Notebook/Jupyter.
So, I installed julia using MacPorts, i.e. sudo port install julia. Following the installation instructions here: https://github.com/JuliaLang/IJulia.jl
After…

ShanZhengYang
- 16,511
- 49
- 132
- 234
1
vote
1 answer
python 2, julia and R kernels are dead but python 3 in jupyter (ubuntu). How to get back to a sane environnement?
After having upgrade ipython and tried to install R kernel in jupyter, I can't run anymore any notebook with a python 2 kernel (or with a R kernel or a julia kernel) on jupyter (ubuntu 15.04).
Jupyter was installed using sudo pip install -U…

Jean-Pat
- 1,839
- 4
- 24
- 41
1
vote
1 answer
Looping over string representation of number in Julia unexpected behaviour
I'm trying to understand why int("0") > 0 evaluates to false while all([int(i) > 0 for i in "0"]) evaluates to true. Interestingly, [all(i != "0" for i in "0"] also evaluates to true.
How can I get my list comprehension to evaluate correctly, that…

Benjamin
- 11,560
- 13
- 70
- 119
0
votes
1 answer
Pipeline_error when installing miniconda through Julia in order to run Jupyter notebook
In order to use Jupyter notebook in Julia, one can install it through Julia. The steps to get Jupyter up and running are:
julia> ]
pkg> add IJulia
julia> using IJulia
julia> notebook()
However, that could give a pipeline_error:
julia>…

Jens Wagemaker
- 354
- 3
- 13
0
votes
0 answers
Traveling Salesman Problem - Eliminating Subtours?
I'm trying to optimize a road trip across the U.S. in an iJulia notebook. I'm currently having issues with subtours. Instead of creating one fluid trip, the solution jumps around from place to place. How could I get rid of the subtours so that my…

Liamilus
- 1
- 1
0
votes
1 answer
Julia alternative for Python Scooby
I would like to get a report of my environment package versions and hardware resources like Scooby does in Python (image below), but for Julia, is there a package to do that?

John
- 165
- 6
0
votes
1 answer
Chained variable assignment in Julia
I'm puzzled by how Julia handles the block of code below:
a = [1,2,3]
a .= a/2 .= o = a .* 2
The output for both 'a' and 'o' is [2,4,6]. However, I don't understand why the result for 'a' is the same as if I had used a .= a*2. Is a/2 treated as a…

user20898057
- 15
- 4
0
votes
1 answer
Can't use load function in julia simple script
I'm trying to load a image in Julia but it gives me the error:
ERROR: UndefVarError: load not defined
Stacktrace:
1 top-level scope
@ c:\folde1\folder2\project.jl
My code is:
using TestImages, Images, Statistics, Plots
a =…

Vitor Boldrin
- 37
- 4
0
votes
1 answer
Interpret this Julia error message using PGFPlotsX - key error
I am witnessing strange behaviour with Julia 1.8.5 using the latest of Plots PGFPlots(X) packages.
When adding the call pgfplotsx() I am not getting any output. A MWE is
using Plots
plot(rand(20))
gives the desired output but
using…

KeynesCoeFen
- 79
- 7
0
votes
1 answer
Is it possible to actively develop julia packages in jupyter?
I want to import and use functions, structs, and modules from my local julia project under active development named MyProject.jl.
If I cd to my project directory, then activate the project, then call jupyter notebook and…

BAR
- 15,909
- 27
- 97
- 185
0
votes
1 answer
Traversing Nested Dicts in Julia
I'm using the excellent Julia Mat File reader to read a mat file with the structure similar to test2
Dict1 = Dict("a" => [1,3], "b" => 2, "c" => "Hello")
test2=Dict("test"=>Dict1,"a"=>[2,4])
With the read command I can access Dict1 like this:
using…

dubc
- 41
- 5
0
votes
1 answer
Cannot convert Float64 to series data for plotting in Julia
The following is the code I wrote.
I have no idea why the error happened and how to solve it.

CHIA YI
- 107
- 4