Questions tagged [ijulia-notebook]

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.

198 questions
1
vote
1 answer

Trying to add IJulia via the REPL: Unsatisfiable requirements detected for package

I keep trying to add IJulia in the REPL, and I keep getting this error message: I tried installing JSON directly, but the REPL would say "The following packages names could not be resolved". If it helps, I'm running a Windows 10 laptop with julia…
Thomas Davis
  • 119
  • 4
1
vote
2 answers

Compare 2 dataframe cell by cell using Julia

Using Julia, is there a way to compare 2 DataFrames cell by cell and output difference E.g.: expected result would produce dataframe with True/False Thanks in advance for help
1
vote
0 answers

How to reinitialize a notebook from the shell?

Following previous discussions from 2018, I managed to run the latest version of Julia inside Google Colab (see here). However, there is a small quirk in the setup: after installing Julia, a new notebook has to be initialized before Colab will…
1
vote
0 answers

Jupyter Notebook: Typing characters `.0' causes cell to freeze

I am using Julia in a Jupyter notebook in a Chrome browser on Windows 10. Whenever I type a dot followed by the number 0, my cell freezes. So for example I try to give a parameter x ~ Bernoulli(.01) Everything is fine till I get to Bernoulli(. But…
Manoj
  • 111
  • 2
1
vote
1 answer

Installing IJulia

When I try to install IJulia from Julia terminal using the following commands: using Pkg Pkg.add("IJulia") I get the following error: SystemError: opening file "C:\\Users\\lenovo\\.julia\\registries\\General\\Registry.toml": No such file or…
user12563743
1
vote
1 answer

How change the default IOContext in IJulia notebook

In a IJulia notebook, I have a cell that load an image from my filesystem then split it into few other images but when they are displayed, they are too small. using Images using FileIO path = "samples/201478670932639746-3.png" img =…
aret
  • 126
  • 2
  • 6
1
vote
1 answer

How can I read text file with converting in Julia?

I try to read a text file in julia but I cannot give any type while reading it gives an error; data = readdlm("data.txt",'\t', Float64) at row 1, column 1 : ErrorException("file entry \" 0.00632 18.00 2.310 0 0.5380 6.5750 65.20 4.0900 1…
1
vote
0 answers

Julia - Collection of expressions with @expression must be linear

I'm working on least squares problem and trying to fit given n points to 2 curves, with using JuMP and Gurobi. This Code works for creating one curve using JuMP, Gurobi m = Model(solver=GurobiSolver(OutputFlag=0)) @variable( m, x[1:size(A,2)]…
Emre Akcan
  • 982
  • 10
  • 27
1
vote
1 answer

How I translate Python code into Julia code

I'm new in Julia and want this Python code translated in Julia. def calcMarkov(preseq,propability,ordnung): betrachtungen = 0 for pos in range(1,len(seq)): current = seq[pos] fromNode = seq[pos-ordnung:pos] if…
B.T
  • 57
  • 5
1
vote
1 answer

How to import a integer tif file in Julia

I have a tif image in which its pixel are integers. I want to import it to Julia and process it further. I used in IJulia: using FileIO using Images using ImageView path_seed = joinpath(@__DIR__,"seed.tif") seed = load(path_seed); When I enter seed…
MOON
  • 2,516
  • 4
  • 31
  • 49
1
vote
1 answer

IJulia using Old Julia Installation

I just upgraded from Julia 1.1.1 to 1.2.0*. Part of my workflow involves IJulia notebooks. Currently, anytime I try to launch and IJulia notebook, it launches a 1.1.1 kernel with no option for a 1.2.0 kernel, even if I launch the notebook from…
QtizedQ
  • 311
  • 1
  • 10
1
vote
1 answer

UndefVarError: Normal not defined

At the moment of running the model the "Normal" says that it is not defined. However, the idea is that it is a function that indicates random numbers of normal distribution with specific mean and variance. The original code was made in Julia V0.5.2…
1
vote
1 answer

Julia: How to set the number of DataFrame rows printed in IJulia/Jupyter?

using DataFrames DataFrame(a = 1:100) Prints about 30 rows in IJulia/Jupyter by default. How can I set the number of rows to print in IJulia/Jupyter?
xiaodai
  • 14,889
  • 18
  • 76
  • 140
1
vote
1 answer

No method matching ^

I created a UnitRange in Julia and trying to create a plot of x with respect to x and x ^ 2. I have written the following code. x = [-10:10] p1 = plot(x, x) p2 = plot(x, x.^2) I am getting the following error: MethodError: no method matching…
1
vote
2 answers

How do I use my own modules in a JuliaBox notebook?

I've recently started using JuliaBox for programming in Julia, and I want to use my own modules that I've previously written using the Juno-Atom IDE. I've uploaded the relevant modules to JuliaBox, but I am unable to call them from a JuliaBox…
Mark Birtwistle
  • 362
  • 2
  • 10