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
2 answers

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 diprcbk(iii,x,r) if iii==0 df =…
Henrique
  • 15
  • 4
1
vote
1 answer

Random iteration in Julia Programming

When you want to iterate sequentially over a list of numbers from 1 to N in Julia you will write: for i in 1:N # do something with i end But what if you want to iterate over the list of numbers from the range (1...N) randomly? There is a need in…
Gua
  • 33
  • 5
1
vote
0 answers

How to output LaTeX/TeX Tikz packages inside Julia

I wanted to output Circuitikz inside my Julia Notebook, How do I install circuitikz to my notebook, Or how do I run Circuitikz inside my Julia code using Latexify using LaTeXStrings str = L""" \begin{center} \begin{circuitikz} \tikz \draw…
1
vote
0 answers

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 suggestions? using DynamicalSystems, Plots function…
Stev L
  • 11
  • 1
1
vote
1 answer

How is it possible to collect NLexpression in a loop?

Would you please help me that how I can collect some NLexpressions in a loop? I Want to keep k8 and k9 for all i=1:10 as scenarios. It means in the end of the loop, Q equal to collection of k8 and k9 under each scenario ( i ). I couldn't define a…
Soma
  • 743
  • 6
  • 19
1
vote
1 answer

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 I want to join "A" and "B" into one single column…
Coco
  • 77
  • 3
1
vote
2 answers

How to measure execution time of entire jupyter notebook comprising of different cells in JULIA?

I have a script written in JULIA language in Jupyter notebook. The script is divided into different cells. I'd like to calculate the execution time of not only a single line or cell, but the entire script comprising all the cells. In Python, I could…
hbstha123
  • 1,260
  • 11
  • 23
1
vote
0 answers

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, [square1(x) for x in z]) square1-custom…
1
vote
0 answers

Why notebook does not work in julia on ubuntu?

I have installed julia (on ubuntu 20.04) and want to run it in notebook. For this I used: Pkg.add("IJulia") using IJulia notebook() But in the end it opens this: [ Info: running `/usr/bin/snap notebook` Process(setenv(`/usr/bin/snap notebook`;…
alexandra
  • 11
  • 1
1
vote
0 answers

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 notebook() after prompting Julia, it just starts…
1
vote
1 answer

"Not" not defined while using Julia DataFrames

While going through the tutorials of DataFrames from MLJ, I encountered the following error julia> b2 = select(boston, Not(:NOx)) ERROR: UndefVarError: Not not defined Stacktrace: [1] top-level scope at none:0 Link to the tutorial:…
1
vote
2 answers

julia jump: declare array with variable upper and lower limit

I am trying to solve a sensitivity analysis using Julia (JUMP). I am stuck at the following problem: I am trying to declare a variable that has both an upper and a lower limit to feed it to the lp_objective_perturbation_range function. That function…
1
vote
1 answer

how to subset a matrix randomly from a large matrix in Julia

I have a large matrix(28960×45807 Array{Float64,2}), where rows represent individuals and columns for snpID. now I want to get a subset matrix(28960x4580) that snps are selected ramdomly from large matrix. how can I do it in Julia?
Shazman
  • 11
  • 4
1
vote
1 answer

Julia: how do I configure IJulia kernel to use specific environment?

I downloaded someone else's project and the structure is as follows: project/ notebooks/ notebook_a.ipynb notebook_b.ipynb library/ Manifest.toml Project.toml src/ test/ In the notebooks I…
rodrigolece
  • 1,039
  • 2
  • 13
  • 19
1
vote
1 answer

How to use @constraintref correctly? In Julia Language

guys,I wrote the code and got the following error: @constraint is not defined. What did I wrong. How to fix it? Thanks @constraintref restrição[1:2] for j=1:2 @constraint(m, restrição[j], sum(A[j,i]*x[i] for i=1:3) <= b[j])` end ```