201 questions
0
votes
0
answers
29
views
Using julia with multiple people
I want to be able to code in a jupyter environment, using Julia, with multiple people at the same time. I know there's visual studio with live share, but that depends on one person sharing their code.
...
1
vote
1
answer
58
views
Failed to Precompile IJulia
After running compile IJulia in repl get the following error:
I tried downgrading to previous versions, but that did nothing. I recently upgraded to the most recent version of jupyter notebook and ...
0
votes
1
answer
117
views
Julia Rolling Time Windows
I have a Julia DataFrame with one column being dates and another column being sales data. At each date entry, I want the sum of the total sales in the last 360 days exactly.
Haven’t tried anything ...
0
votes
0
answers
46
views
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. ...
2
votes
1
answer
470
views
How can I get IJulia working inside a mamba environment?
I am having trouble installing IJulia in Julia 1.9.1 inside a mamba environment. The crux of the issue seems to be the compiler not being able to find MbedTLS even though it is installed
Looking for: [...
0
votes
1
answer
126
views
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, ...
0
votes
1
answer
120
views
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 ...
1
vote
1
answer
262
views
Install into system instead of local directory?
julia> using Pkg
julia> Pkg.add("IJulia")
Installing known registries into `~/.julia`
...
By default:
Installs known registries into ~/.julia
Install kernel into ~/.local/share/...
1
vote
1
answer
312
views
How to avoid "WARNING: replacing module" in Jupyter?
I want to write a module in the local directory, load it into Jupyter and test it.
I put the module into file MyModule.jl:
module MyModule
export my_function
my_function() = ()
end
Then I load it ...
1
vote
2
answers
892
views
Julia - MethodError: objects of type Float64 are not callable
I'm currently learning Julia and i'm trying to translate a Fortran77 code, but i got this error message and i can't see from where the issue is coming from.
using DelimitedFiles, DataFrames
function ...
2
votes
1
answer
212
views
Creating module in Julia using jupyter notebook
I am new to the IJulia platform. I am using jupyter notebook (Anaconda). I was trying to create a julia module in jupyter notebook. My functions are in different cells. Is it necesssery that all the ...
2
votes
2
answers
974
views
My jupyter notebook julia Kernel suddenly started to present error
My julia notebooks were working fine but today this "kernel error" appeared and I don't know how to deal with this:
Traceback (most recent call last):
File "/home/antonio/...
3
votes
1
answer
1k
views
Julia "Unsatisfiable requirements detected for package" error when installing multiple packages
I'm using Julia v1.5.2 and I got the below error when I tried to install EvalMetrics:
Pkg.add("EvalMetrics")
I even tried using the Pkg manager instead of using import Pkg, but it doesn't ...
2
votes
2
answers
883
views
How to print ALL output of a cell in Julia Jupyter notebook?
I am running Julia through (Anaconda) Jupyter notebook. When I run a cell like this
5 + 6
3 + 17
The output is
[out:] 20
How can I print out the output of all lines, i.e.,
[out:] 11
[out:] 20
2
votes
1
answer
232
views
How to return a value from a nested function into main script in Julia?
For example:
function main()
function doit()
A = ones(Int, 2)
return A
end
doit()
display(A)
A = [1, 2, 3]
display(A)
doit()
display(A)
Also what if the nested function has two or three ...
1
vote
0
answers
176
views
Speeding up Lyapunov Exponent Script
Im writing a script to calculate the Lyapunov exponent of a particular system with varying parameter. The code is ungodly slow and it hangs every so often when running on Jupyter Notebook. Any ...
2
votes
1
answer
48
views
Exctracting strings , counting and transposing them as columns in a dataframe
Have a pandas dataframe with 2 columns: tag and message:
tag | message
["string1","sttring2"] | some text
["string","string3"] | ...
2
votes
0
answers
324
views
Cannot open a Juypter Notebook File [Permission Denied]
One of my ipynb files isn't opening anymore. Whenever I would try to acccess it on Jupyter Notebook, it would just say :
Error Loading Notebook
Permission denied: [File name].ipynb
I can launch the ...
4
votes
1
answer
805
views
Julia Pluto cannot find dev installed package
I have my own Julia package called foo which is stored in /private/tmp/foo and looks like:
foo
├── Project.toml
└── src
└── foo.jl
I'd like to use it in an experiment I'm going to run. As such I
...
4
votes
0
answers
373
views
Run Julia from remote using Jupyter locally
I apologize if it is a trivial question, but I searched and I could not find the answer. My situation is the following:
I have access to a server through ssh tunnelling. The server has Julia ...
0
votes
1
answer
5k
views
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.
1
vote
1
answer
1k
views
Combine two columns into one in Julia DataFrames
I need some help due to my research about that topic was not satisfying.
I hope you guys can help me out.
Lets say we have a DataFrame like:
df = DataFrame(A = 1:10, B = 11:20, C = rand(10))
But now ...
1
vote
0
answers
273
views
MethodError in Julia when using scatter! function
coordinate_distance(x,z) = abs.(x .- z)
square1(x) = sum(coordinate_distance(x,z).^2)
using Plots
LB,UB = 0,20 # Defining Lowerboud and Upperbound
plot(square1, LB, UB, legend=false)
scatter!(z, [...
2
votes
1
answer
1k
views
Greek Characters in Julia Jupyter edition
I am using Julia.
I am trying to get some greek characters in Jupyter notebooks.
First I downloaded the latest version of Julia 1.6.2
For the jupyter connection I used anaconda, in julia repl i put ] ...
1
vote
0
answers
221
views
Julia - Jupyter Notebook setenv does not work
Similar to this issue
I have installed Jupyter Notebook with IJulia.notebook(),
which works perfectly fine when I run it with '.../.julia/conda/3/bin/jupyter-notebook'.
However, when I attempt to run ...