# Latest

**URL:** https://discourse.julialang.org/latest.md?page=854

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 855

---

## [Warm start Mosek in a linear polynomial optimization problem](https://discourse.julialang.org/t/warm-start-mosek-in-a-linear-polynomial-optimization-problem/90478)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 2\
**Last updated:** [November 25, 2022, 8:27am UTC](https://discourse.julialang.org/t/warm-start-mosek-in-a-linear-polynomial-optimization-problem/90478 "2022-11-25T08:27:02Z")

</div>

Hi, I have a polynomial optimization which is a linear programming (DSOS programming) and I want to use Mosek with warm start. In the following, I have two optimizations “m” and “m1”. I want to use the answer of Optimiz…

---

## [Type Inference](https://discourse.julialang.org/t/type-inference/89761)

<div class="topic-metadata">

**Author:** [@tchebycheff](https://discourse.julialang.org/u/tchebycheff)\
**Replies:** 6\
**Last updated:** [November 25, 2022, 8:23am UTC](https://discourse.julialang.org/t/type-inference/89761 "2022-11-25T08:23:12Z")

</div>

I always held automatic type inference as one of Julia’s distinguishing features. Why are packages full of type qualifications? Is it the performance improvement, error handling or just the coolness factor? P.S. I hope…

---

## [Flux RNN training giving \`BoundsError\`](https://discourse.julialang.org/t/flux-rnn-training-giving-boundserror/90723)

<div class="topic-metadata">

**Author:** [@mjyshin](https://discourse.julialang.org/u/mjyshin)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 3:12am UTC](https://discourse.julialang.org/t/flux-rnn-training-giving-boundserror/90723 "2022-11-25T03:12:01Z")

</div>

I was originally trying to train a network with recurrence using GRUs but I kept getting this BoundsError: attempt to access Tuple{} at index \[0\]. So I gave up and tried running the rnn-char example in the model-zoo, wit…

---

## [How to suppress a Windows system message in IJulia](https://discourse.julialang.org/t/how-to-suppress-a-windows-system-message-in-ijulia/90783)

<div class="topic-metadata">

**Author:** [@ea42gh](https://discourse.julialang.org/u/ea42gh)\
**Replies:** 0\
**Last updated:** [November 24, 2022, 9:54pm UTC](https://discourse.julialang.org/t/how-to-suppress-a-windows-system-message-in-ijulia/90783 "2022-11-24T21:54:52Z")

</div>

Using IJulia with a Windows system I get this “Reverting Windows Console” (warning? Info?) message in the output. How can I get rid of it? The python function ge is called via PyCall and executes an external comman…

---

## [How to change angle of arrow in Plot](https://discourse.julialang.org/t/how-to-change-angle-of-arrow-in-plot/90781)

<div class="topic-metadata">

**Author:** [@elliot000319](https://discourse.julialang.org/u/elliot000319)\
**Replies:** 0\
**Last updated:** [November 24, 2022, 9:39pm UTC](https://discourse.julialang.org/t/how-to-change-angle-of-arrow-in-plot/90781 "2022-11-24T21:39:20Z")

</div>

I am trying to plot the changes in body angle using arrow in plot. I set the initial body angle as 45 degrees. I want to make the blue square and the arrow turn according to the change in angle. q is the position of the …

---

## [Input to Neural Network](https://discourse.julialang.org/t/input-to-neural-network/90770)

<div class="topic-metadata">

**Author:** [@Kuldeep](https://discourse.julialang.org/u/Kuldeep)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 9:11pm UTC](https://discourse.julialang.org/t/input-to-neural-network/90770 "2022-11-24T21:11:21Z")

</div>

Hi, I am new to both Julia and deep learning. Suppose we define a following network: using Flux nn\_width = 10 m = Chain(Dense(1,nn\_width,tanh), Dense(nn\_width,nn\_width,tanh), Dense(nn\_width,1…

---

## [Multiple linear regression model using Flux.jl](https://discourse.julialang.org/t/multiple-linear-regression-model-using-flux-jl/90775)

<div class="topic-metadata">

**Author:** [@moataz-sabry](https://discourse.julialang.org/u/moataz-sabry)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 8:57pm UTC](https://discourse.julialang.org/t/multiple-linear-regression-model-using-flux-jl/90775 "2022-11-24T20:57:23Z")

</div>

Hello everyone, I’m new to machine learning and I was trying to extend the basic example from Flux documentation to a multiple linear regression model where the input S and the output V are both vectors with 3 elements …

---

## [How to turn a dot into simple scaler expressions for nonlinear optimization using JUMP](https://discourse.julialang.org/t/how-to-turn-a-dot-into-simple-scaler-expressions-for-nonlinear-optimization-using-jump/90776)

<div class="topic-metadata">

**Author:** [@elliot000319](https://discourse.julialang.org/u/elliot000319)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 8:40pm UTC](https://discourse.julialang.org/t/how-to-turn-a-dot-into-simple-scaler-expressions-for-nonlinear-optimization-using-jump/90776 "2022-11-24T20:40:31Z")

</div>

I want to turn the dot notation in this code to simple scaler operations for NLconstraint. I’ve checked the examples in JUMP’s documentation, but I could not get it to work. The following is the part that’s causing the…

---

## [ERROR: type PeriodicBoundary has no field order](https://discourse.julialang.org/t/error-type-periodicboundary-has-no-field-order/90759)

<div class="topic-metadata">

**Author:** [@charlie\_echo\_bravo](https://discourse.julialang.org/u/charlie_echo_bravo)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 8:40pm UTC](https://discourse.julialang.org/t/error-type-periodicboundary-has-no-field-order/90759 "2022-11-24T20:40:09Z")

</div>

Hello, I’m teaching myself Julia to solve PDE. As toy problem I am duplication this very simple heat equation problem: Dirichlet boundary conditions I’m trying to redefine the initial condition from: bcs = \[u(0, x) ~…

---

## [Interact.jl in Jupyter Notebook and Julia 1.7.3 kernel does not show the slider](https://discourse.julialang.org/t/interact-jl-in-jupyter-notebook-and-julia-1-7-3-kernel-does-not-show-the-slider/90774)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [November 24, 2022, 8:11pm UTC](https://discourse.julialang.org/t/interact-jl-in-jupyter-notebook-and-julia-1-7-3-kernel-does-not-show-the-slider/90774 "2022-11-24T20:11:05Z")

</div>

Hi all, I try this GitHub - JuliaGizmos/Interact.jl: Interactive widgets to play with your Julia code this is the code: using Interact, DynamicalSystems, Plots @manipulate for px=0:0.01:.3, py=0:0.01:.3, plane = …

---

## [Any Other Method to Calculate Indefinite Integral Besides Using SymPy?](https://discourse.julialang.org/t/any-other-method-to-calculate-indefinite-integral-besides-using-sympy/90707)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 8\
**Last updated:** [November 24, 2022, 8:01pm UTC](https://discourse.julialang.org/t/any-other-method-to-calculate-indefinite-integral-besides-using-sympy/90707 "2022-11-24T20:01:49Z")

</div>

Hi all, I use this code to calculate the indefinite integral of a complex trigonometric function: # To compute an indefinite integral using SymPy # we can also use @vars x y z x = symbols("x") integrate((sin((x^(2) +…

---

## [How to use Combinatorics.jl for permutations](https://discourse.julialang.org/t/how-to-use-combinatorics-jl-for-permutations/90766)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 7:43pm UTC](https://discourse.julialang.org/t/how-to-use-combinatorics-jl-for-permutations/90766 "2022-11-24T19:43:02Z")

</div>

I would like to gather all permutations of a certain number of elements of a set. I read that Combinatorics.jl can be used for that. However, I do not know how to use it. I do the following using Combinatorics: permutat…

---

## [Workaround for: Sum of binary Matrix as Index for Input Matrix](https://discourse.julialang.org/t/workaround-for-sum-of-binary-matrix-as-index-for-input-matrix/90769)

<div class="topic-metadata">

**Author:** [@JNSDVD](https://discourse.julialang.org/u/JNSDVD)\
**Replies:** 3\
**Last updated:** [November 24, 2022, 7:18pm UTC](https://discourse.julialang.org/t/workaround-for-sum-of-binary-matrix-as-index-for-input-matrix/90769 "2022-11-24T19:18:13Z")

</div>

Hey people, I am new here, any help is much appreciated!! @variable( bilap, X\[1:2,u=1:4,1:3\], Bin) I want to use the sum of all 1s per each u in X as an Input (Index) for the matrix shown above. @constraint( bilap…

---

## [How to model a 2 dimensional drone using JUMP, and lpopt](https://discourse.julialang.org/t/how-to-model-a-2-dimensional-drone-using-jump-and-lpopt/90703)

<div class="topic-metadata">

**Author:** [@elliot000319](https://discourse.julialang.org/u/elliot000319)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 6:39pm UTC](https://discourse.julialang.org/t/how-to-model-a-2-dimensional-drone-using-jump-and-lpopt/90703 "2022-11-24T18:39:10Z")

</div>

I want to model a drone? (consider a drone) that has a fixed thrust. It needs to control its body angle and thrust value to balance itself against the gravity to arrive at the desired destination. I might have made some …

---

## [ParetoSmooth.jl psis\_loo crashes with ERROR: The number of lines in \`row\_names\` must match the number of lines in the matrix](https://discourse.julialang.org/t/paretosmooth-jl-psis-loo-crashes-with-error-the-number-of-lines-in-row-names-must-match-the-number-of-lines-in-the-matrix/90489)

<div class="topic-metadata">

**Author:** [@SebastianCallh](https://discourse.julialang.org/u/SebastianCallh)\
**Replies:** 5\
**Last updated:** [November 24, 2022, 6:34pm UTC](https://discourse.julialang.org/t/paretosmooth-jl-psis-loo-crashes-with-error-the-number-of-lines-in-row-names-must-match-the-number-of-lines-in-the-matrix/90489 "2022-11-24T18:34:53Z")

</div>

Hi! I found an example use of ParetoSmooth.jl psis\_loo here, but when I try to run the example it crashes with \[ Info: No source provided for samples; variables are assumed to be from a Markov Chain. If the samples are…

---

## [PyPlot broken under 1.7?](https://discourse.julialang.org/t/pyplot-broken-under-1-7/72971)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 9\
**Last updated:** [November 24, 2022, 4:02pm UTC](https://discourse.julialang.org/t/pyplot-broken-under-1-7/72971 "2022-11-24T16:02:46Z")

</div>

Pkg.add shows errors in PyCall and PyPlot, requesting precompiling. Pkg.precompile throws errors and requests Pkg.build(“PyCall”) This then throws the erros below. Julia Version 1.7.0 Commit 3bf9d17731 (2021-11-30 12:…

---

## [Julia: Start REPL does not work on remote server](https://discourse.julialang.org/t/julia-start-repl-does-not-work-on-remote-server/90453)

<div class="topic-metadata">

**Author:** [@Jan-van-Waaij](https://discourse.julialang.org/u/Jan-van-Waaij)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 2:22pm UTC](https://discourse.julialang.org/t/julia-start-repl-does-not-work-on-remote-server/90453 "2022-11-24T14:22:51Z")

</div>

Dear all, I installed the Julia Visual Code extension on the remote server. When I press cmd+shift+p and then type Julia: Start REPL, I get the following error: “Command ‘Julia: Start REPL’ resulted in an error (command…

---

## [How to use TableView in a browser?](https://discourse.julialang.org/t/how-to-use-tableview-in-a-browser/90693)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 1:25pm UTC](https://discourse.julialang.org/t/how-to-use-tableview-in-a-browser/90693 "2022-11-24T13:25:42Z")

</div>

The documentation of TableView shows how to show a (large) table in a Blink window: julia\> using TableView, Blink, DataFrames julia\> w = Blink.Window() julia\> body!(w, showtable(DataFrame(rand(100,100), :auto))) Thi…

---

## [How to programmatically identify the currently active environment?](https://discourse.julialang.org/t/how-to-programmatically-identify-the-currently-active-environment/43257)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 1:02pm UTC](https://discourse.julialang.org/t/how-to-programmatically-identify-the-currently-active-environment/43257 "2022-11-24T13:02:13Z")

</div>

When in Pkg mode, the prompt shows the name of the currently active environment. I would like to obtain this information programmatically. As far as I can tell, Pkg doesn’t document any way to do this. From poking arou…

---

## [How to use broadcast？](https://discourse.julialang.org/t/how-to-use-broadcast/90743)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 10:09am UTC](https://discourse.julialang.org/t/how-to-use-broadcast/90743 "2022-11-24T10:09:14Z")

</div>

I have two variables, x and y, and I want to loop through an x, intersect with a y, and return a Vector every time I loop through an x x=\[10,20,30\] y=\[50,60,70,80\] function m(i,y) n=i:i+50 return \[i,i+50,length(…

---

## [Incorrect objective type when using MA57 with Ipopt in JuMP](https://discourse.julialang.org/t/incorrect-objective-type-when-using-ma57-with-ipopt-in-jump/90578)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 14\
**Last updated:** [November 24, 2022, 8:38am UTC](https://discourse.julialang.org/t/incorrect-objective-type-when-using-ma57-with-ipopt-in-jump/90578 "2022-11-24T08:38:27Z")

</div>

I’d like minimise the sum of a variable using JuMP, here is a MWE: UB= rand(1:9, (67,24)) # not really necessary model = Model() @variable(model, 0 ≤ x\[i= 1:67, j=1:24\] ≤ UB\[i,j\]) @objective(model, Min, sum(x\[ii, jj\] f…

---

## [How to add a private unregistered package as a dependency to unit testing?](https://discourse.julialang.org/t/how-to-add-a-private-unregistered-package-as-a-dependency-to-unit-testing/89970)

<div class="topic-metadata">

**Author:** [@TTolppanen](https://discourse.julialang.org/u/TTolppanen)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 8:00am UTC](https://discourse.julialang.org/t/how-to-add-a-private-unregistered-package-as-a-dependency-to-unit-testing/89970 "2022-11-24T08:00:18Z")

</div>

I’m developing the PkgA and writing some unit tests for it. In the unit tests I want to use the package PkgB to test the code. PkgA does not depend on PkgB, only the unit tests depend on it. PkgB is a private unregistere…

---

## [\`juliaup update\` does not update the Julia](https://discourse.julialang.org/t/juliaup-update-does-not-update-the-julia/88080)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 6:10am UTC](https://discourse.julialang.org/t/juliaup-update-does-not-update-the-julia/88080 "2022-11-24T06:10:55Z")

</div>

I tried to update Julia using Juliaup, but I haven’t been successful. First, I updated Juliaup using juliaup self update, and after that, I tried to update julia to 1.8.2 using juliaup update, but it stuck in that phase: …

---

## [Purely functional modules](https://discourse.julialang.org/t/purely-functional-modules/89681)

<div class="topic-metadata">

**Author:** [@Kirby\_Zhang](https://discourse.julialang.org/u/Kirby_Zhang)\
**Replies:** 20\
**Last updated:** [November 24, 2022, 6:10am UTC](https://discourse.julialang.org/t/purely-functional-modules/89681 "2022-11-24T06:10:47Z")

</div>

It seems to me in the data science field some types of modules can be written without modifying any shared state. What if there is a type of module called fmodule that not only cannot modify shared state, but doesn’t al…

---

## [How to count the interval number in sites not using for loop and push!?](https://discourse.julialang.org/t/how-to-count-the-interval-number-in-sites-not-using-for-loop-and-push/90738)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 3:10am UTC](https://discourse.julialang.org/t/how-to-count-the-interval-number-in-sites-not-using-for-loop-and-push/90738 "2022-11-24T03:10:43Z")

</div>

I have an interval and some sites,I want to judge whether each of the interval are in sites,and finally count the number.like the following using BenchmarkTools intervals=10650:10699 sites=\[10673,10655,10662,10670,1065…

---

## [Unstable performance of MILP with JuMP](https://discourse.julialang.org/t/unstable-performance-of-milp-with-jump/90715)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 2:47am UTC](https://discourse.julialang.org/t/unstable-performance-of-milp-with-jump/90715 "2022-11-24T02:47:07Z")

</div>

It occasionally happens that the running time in solving a fixed MILP problem varies between a few seconds and a few minutes. The scenario remains the same regardless of the solver: I have tried Gurobi, Cbc, and HiGHS. T…

---

## [Python lmfit takes weights into account, but Julia LsqFit package seems not to](https://discourse.julialang.org/t/python-lmfit-takes-weights-into-account-but-julia-lsqfit-package-seems-not-to/90679)

<div class="topic-metadata">

**Author:** [@humbleclaw](https://discourse.julialang.org/u/humbleclaw)\
**Replies:** 9\
**Last updated:** [November 23, 2022, 11:26pm UTC](https://discourse.julialang.org/t/python-lmfit-takes-weights-into-account-but-julia-lsqfit-package-seems-not-to/90679 "2022-11-23T23:26:35Z")

</div>

Hello everyone. Using Python I have been able to do non-linear fits with lmfit creating a residual function for a potential mathematical function to fit, just as follows def pow\_res(pars, E, data, sig): values = p…

---

## [How to avoid compiling methods for different types when @nospecialize doesn't seem to work?](https://discourse.julialang.org/t/how-to-avoid-compiling-methods-for-different-types-when-nospecialize-doesnt-seem-to-work/90677)

<div class="topic-metadata">

**Author:** [@SortofDamocles](https://discourse.julialang.org/u/SortofDamocles)\
**Replies:** 10\
**Last updated:** [November 23, 2022, 11:37pm UTC](https://discourse.julialang.org/t/how-to-avoid-compiling-methods-for-different-types-when-nospecialize-doesnt-seem-to-work/90677 "2022-11-23T23:37:47Z")

</div>

Consider the following struct: struct MetaTuple data::Tuple{Vararg{Union{Tuple{}, Tuple{Int16}, Tuple{Int16, Int16}, Tuple{Int16, Int16, Int16}, Tuple{Int16, Int16, Int16, Int16}}}} end Its data is a tuple of tuple…

---

## [Non-call expression encountered](https://discourse.julialang.org/t/non-call-expression-encountered/90725)

<div class="topic-metadata">

**Author:** [@Pino](https://discourse.julialang.org/u/Pino)\
**Replies:** 2\
**Last updated:** [November 23, 2022, 11:22pm UTC](https://discourse.julialang.org/t/non-call-expression-encountered/90725 "2022-11-23T23:22:16Z")

</div>

New to Julia, coming from matlab. I’m tying to run a regression using a dataframe but I want to use a specific range of the dataframe as I have many covariates. So instead of running the following df\_test = DataFrame(…

---

## [Problem installing Makie package](https://discourse.julialang.org/t/problem-installing-makie-package/90643)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 4\
**Last updated:** [November 23, 2022, 6:50pm UTC](https://discourse.julialang.org/t/problem-installing-makie-package/90643 "2022-11-23T18:50:17Z")

</div>

In my class one particular student is having a difficulty installing Makie. This is strange as all of the others appear to have installed it fine on identical hardware in a school lab. If I’m reading it correctly the i…

[Previous page](https://discourse.julialang.org/latest.md?page=853)

[Next page](https://discourse.julialang.org/latest.md?page=855)
