# Latest

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

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

**Page:** 1136

---

## [DataFrame join rename multiple columns in join command](https://discourse.julialang.org/t/dataframe-join-rename-multiple-columns-in-join-command/75574)

<div class="topic-metadata">

**Author:** [@korilium](https://discourse.julialang.org/u/korilium)\
**Replies:** 1\
**Last updated:** [February 1, 2022, 1:02pm UTC](https://discourse.julialang.org/t/dataframe-join-rename-multiple-columns-in-join-command/75574 "2022-02-01T13:02:46Z")

</div>

So i want to outerjoin three dataframes and rename their columns at the same time. Here is the code that I try to do using DataFramesMeta, Dates, Plots, DataFrames, MarketData, PyCall start = DateTime(2018,1,1) IBCI =…

---

## [List of pairs](https://discourse.julialang.org/t/list-of-pairs/75564)

<div class="topic-metadata">

**Author:** [@ahmad88](https://discourse.julialang.org/u/ahmad88)\
**Replies:** 9\
**Last updated:** [February 1, 2022, 10:55am UTC](https://discourse.julialang.org/t/list-of-pairs/75564 "2022-02-01T10:55:25Z")

</div>

Hi How I can create a list of pairs, something like A\[1\]=\[(1,2),(1,5),(2,4)\] A\[2\]=\[(3,4),(2,5),(3,6)\] and append new pairs to it and access the element of it ??

---

## [Installation in Windows 10 - access is denied - how to fix?](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550)

<div class="topic-metadata">

**Author:** [@amca01](https://discourse.julialang.org/u/amca01)\
**Replies:** 6\
**Last updated:** [February 1, 2022, 10:12am UTC](https://discourse.julialang.org/t/installation-in-windows-10-access-is-denied-how-to-fix/75550 "2022-02-01T10:12:57Z")

</div>

I am in fact not new to Julia, but I am just now trying to install version 1.7.1 on a new machine with a new installation of Windows 10. I downloaded and ran the installer, which added the julia “bin” directory to the p…

---

## [Cannot use PyPlot on apple m1 due to PyQt5 installation problem](https://discourse.julialang.org/t/cannot-use-pyplot-on-apple-m1-due-to-pyqt5-installation-problem/74985)

<div class="topic-metadata">

**Author:** [@cpraveen](https://discourse.julialang.org/u/cpraveen)\
**Replies:** 5\
**Last updated:** [February 1, 2022, 9:54am UTC](https://discourse.julialang.org/t/cannot-use-pyplot-on-apple-m1-due-to-pyqt5-installation-problem/74985 "2022-02-01T09:54:42Z")

</div>

On apple m1, with julia 1.7, trying to use PyPlot fails because it is not able to install PyQt5 julia\> using PyPlot \[ Info: Installing pyqt package to avoid buggy tkagg backend. \[ Info: Installing PyQt5 via the Conda py…

---

## [Pluto frozen: "waiting for api.github.com"](https://discourse.julialang.org/t/pluto-frozen-waiting-for-api-github-com/75565)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 0\
**Last updated:** [February 1, 2022, 9:30am UTC](https://discourse.julialang.org/t/pluto-frozen-waiting-for-api-github-com/75565 "2022-02-01T09:30:08Z")

</div>

Hello Since a few days, I have difficulties to start Pluto. I get this message on the status bar: waiting for api.github.com Any idea what it means, and if I could solve that? Thanks, Michel

---

## [Parameterising types with multiple parameters](https://discourse.julialang.org/t/parameterising-types-with-multiple-parameters/75562)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 3\
**Last updated:** [February 1, 2022, 8:23am UTC](https://discourse.julialang.org/t/parameterising-types-with-multiple-parameters/75562 "2022-02-01T08:23:32Z")

</div>

I have a type parameterised by floating point precision, something like this: struct MyType{T \<: AbstractFloat} x::T data::Array{T} end Note that it’s import that the type of x and the type of the array data ma…

---

## [Plot does not update with a string vector as an observable in Makie](https://discourse.julialang.org/t/plot-does-not-update-with-a-string-vector-as-an-observable-in-makie/75503)

<div class="topic-metadata">

**Author:** [@fnoessler](https://discourse.julialang.org/u/fnoessler)\
**Replies:** 0\
**Last updated:** [January 31, 2022, 12:57pm UTC](https://discourse.julialang.org/t/plot-does-not-update-with-a-string-vector-as-an-observable-in-makie/75503 "2022-01-31T12:57:27Z")

</div>

Hello, I tried to use a vector of strings as an Observable and the text! command to interactively update a plot in Makie. Here is an example: using GLMakie string\_vec = Observable(\["a", "b"\]) string\_test = Observable(…

---

## [ModelingToolkit Nonlinear Optimal Control](https://discourse.julialang.org/t/modelingtoolkit-nonlinear-optimal-control/75561)

<div class="topic-metadata">

**Author:** [@SCher](https://discourse.julialang.org/u/SCher)\
**Replies:** 4\
**Last updated:** [February 1, 2022, 7:15am UTC](https://discourse.julialang.org/t/modelingtoolkit-nonlinear-optimal-control/75561 "2022-02-01T07:15:19Z")

</div>

I ran the example nonlinear optimal control problem in the documentation, reproduced below: using ModelingToolkit @variables t x(t) v(t) u(t) @parameters p\[1:2\] D = Differential(t) loss = (4-x)^2 + 2v^2 + u^2 eqs = \[…

---

## [Best practice for user-customizable methods](https://discourse.julialang.org/t/best-practice-for-user-customizable-methods/75552)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 3\
**Last updated:** [February 1, 2022, 5:27am UTC](https://discourse.julialang.org/t/best-practice-for-user-customizable-methods/75552 "2022-02-01T05:27:52Z")

</div>

Suppose there is a function in some package for which I want to implement a custom method in my own package MyPackage. However, I also want users of MyPackage to customize/overwrite that method further if they want. I’m …

---

## [Passing gradient back from remote server](https://discourse.julialang.org/t/passing-gradient-back-from-remote-server/41150)

<div class="topic-metadata">

**Author:** [@Jimmie\_Butler](https://discourse.julialang.org/u/Jimmie_Butler)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 5:27pm UTC](https://discourse.julialang.org/t/passing-gradient-back-from-remote-server/41150 "2020-06-10T17:27:14Z")

</div>

I’m trying to pass a gradient through a remote call with Zygote. The server seems to be passing the gradient back properly, the server decodes and returns it from the adjoint, but the final gradient being returned is c…

---

## [PyPlot on remote server](https://discourse.julialang.org/t/pyplot-on-remote-server/40049)

<div class="topic-metadata">

**Author:** [@hongchengni](https://discourse.julialang.org/u/hongchengni)\
**Replies:** 0\
**Last updated:** [May 23, 2020, 10:00pm UTC](https://discourse.julialang.org/t/pyplot-on-remote-server/40049 "2020-05-23T22:00:47Z")

</div>

Hello, I am used to the Python Matplotlib package for plotting figures, which is packaged as PyPlot in Julia. When I want to use it for plotting on a remote server, which does not support GUI, I want to save the plot to …

---

## [Possible to plot ylabels and yticks on left and right using twinx() and pyplot?](https://discourse.julialang.org/t/possible-to-plot-ylabels-and-yticks-on-left-and-right-using-twinx-and-pyplot/75549)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 2\
**Last updated:** [February 1, 2022, 12:10am UTC](https://discourse.julialang.org/t/possible-to-plot-ylabels-and-yticks-on-left-and-right-using-twinx-and-pyplot/75549 "2022-02-01T00:10:22Z")

</div>

I’m having trouble making a plot with labels and ticks on the left and right sides. Perhaps this capability has stopped working? According to this question from a couple years ago, it looks like it was working then. How…

---

## [\[ANN\] MonkeyLang.jl](https://discourse.julialang.org/t/ann-monkeylang-jl/74664)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 26\
**Last updated:** [February 1, 2022, 12:09am UTC](https://discourse.julialang.org/t/ann-monkeylang-jl/74664 "2022-02-01T00:09:48Z")

</div>

Just implemented Writing an Interpreter in GO in Julia. I think I have learned quite a lot during this process, and I would like to share my project MonkeyLang.jl with the community.

---

## [BenchmarkTools macros with Books](https://discourse.julialang.org/t/benchmarktools-macros-with-books/75540)

<div class="topic-metadata">

**Author:** [@jvaverka](https://discourse.julialang.org/u/jvaverka)\
**Replies:** 5\
**Last updated:** [January 31, 2022, 11:57pm UTC](https://discourse.julialang.org/t/benchmarktools-macros-with-books/75540 "2022-01-31T23:57:26Z")

</div>

Given this example weaved output from a Julia Markdown Document: Generated with this code block: A = rand(100,100) B = rand(100,100) C = rand(100,100) using BenchmarkTools function inner\_rows!(C,A,B) for i in 1:100…

---

## [How to debug "Initial guess is not an interior point" in Optim.jl?](https://discourse.julialang.org/t/how-to-debug-initial-guess-is-not-an-interior-point-in-optim-jl/75554)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 3\
**Last updated:** [January 31, 2022, 11:41pm UTC](https://discourse.julialang.org/t/how-to-debug-initial-guess-is-not-an-interior-point-in-optim-jl/75554 "2022-01-31T23:41:11Z")

</div>

I’m trying to do constrained optimization using IPointNewton in Optim.jl, but running optimize(objective, dfc, θ0, IPNewton(), autodiff=:forward) produces: Initial guess is not an interior point …and then the results…

---

## [Problem with running Ipopt with Pardiso on jupyter notebook](https://discourse.julialang.org/t/problem-with-running-ipopt-with-pardiso-on-jupyter-notebook/75424)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 4\
**Last updated:** [January 31, 2022, 10:54pm UTC](https://discourse.julialang.org/t/problem-with-running-ipopt-with-pardiso-on-jupyter-notebook/75424 "2022-01-31T22:54:25Z")

</div>

Dear all, I am trying to solve an optimization problem from jupyter notebook using JuMP with solver Ipopt (Pardiso linear solver). I can solve the problem without any problem when the code is in a filename.jl file and I…

---

## [FFT'ing lots of short vectors on GPU](https://discourse.julialang.org/t/ffting-lots-of-short-vectors-on-gpu/75529)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 3\
**Last updated:** [January 31, 2022, 9:28pm UTC](https://discourse.julialang.org/t/ffting-lots-of-short-vectors-on-gpu/75529 "2022-01-31T21:28:22Z")

</div>

I am wondering if there is a way to Fourier-transform lots of short vectors on GPU. I have more than 10,000 vectors. The lengths of all vectors are the same and around 2^12. Each vector is not long enough to get a sig…

---

## [JLL package product type for interpreter script](https://discourse.julialang.org/t/jll-package-product-type-for-interpreter-script/75530)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 6\
**Last updated:** [January 31, 2022, 9:11pm UTC](https://discourse.julialang.org/t/jll-package-product-type-for-interpreter-script/75530 "2022-01-31T21:11:41Z")

</div>

I want to pre-package the tools necessary to read performance parameters of AMD GPUs. The package is rocm\_smi\_lib, which includes an .so library provides an API for access and a python script that works as a command line…

---

## [Stats on expanding or moving data windows](https://discourse.julialang.org/t/stats-on-expanding-or-moving-data-windows/75534)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 3\
**Last updated:** [January 31, 2022, 9:08pm UTC](https://discourse.julialang.org/t/stats-on-expanding-or-moving-data-windows/75534 "2022-01-31T21:08:22Z")

</div>

I am coding up functions for means/std/corr/OLS on expanding/moving inclusion/moving exclusion windows. So far, a simple approach (mostly loops) seems to provide pretty nice performance. My question: is this already don…

---

## [Why does \`relayout!(p, template=...)\` get overwritten by next \`relayout!\`?](https://discourse.julialang.org/t/why-does-relayout-p-template-get-overwritten-by-next-relayout/75536)

<div class="topic-metadata">

**Author:** [@Mo-Gul](https://discourse.julialang.org/u/Mo-Gul)\
**Replies:** 0\
**Last updated:** [January 31, 2022, 8:30pm UTC](https://discourse.julialang.org/t/why-does-relayout-p-template-get-overwritten-by-next-relayout/75536 "2022-01-31T20:30:18Z")

</div>

For the code p = make\_subplots( rows=2, cols=1, shared\_xaxes=true, ) add\_trace!(p, scatter(y=1:2), row=1, col=1) add\_trace!(p, scatter(y=1:2), row=2, col=1) relayout!( p, template="plotly\_white", )…

---

## [Implementing model where data is a function of random variables](https://discourse.julialang.org/t/implementing-model-where-data-is-a-function-of-random-variables/75354)

<div class="topic-metadata">

**Author:** [@Pablo\_Marchant](https://discourse.julialang.org/u/Pablo_Marchant)\
**Replies:** 5\
**Last updated:** [January 31, 2022, 8:00pm UTC](https://discourse.julialang.org/t/implementing-model-where-data-is-a-function-of-random-variables/75354 "2022-01-31T20:00:22Z")

</div>

Hi, I’ve got a question regarding implementation of a model where an observed variable can be described as a function of other random variables. My issues here are perhaps just due to my inexperience in using probabilis…

---

## [Dict subtype definition](https://discourse.julialang.org/t/dict-subtype-definition/75496)

<div class="topic-metadata">

**Author:** [@iskyd](https://discourse.julialang.org/u/iskyd)\
**Replies:** 5\
**Last updated:** [January 31, 2022, 7:15pm UTC](https://discourse.julialang.org/t/dict-subtype-definition/75496 "2022-01-31T19:15:46Z")

</div>

I want to define the data type of a dictionary using subtype definition. I’m trying to do seomthing like Dict{String, \<:Union{String, Vector{String}}} but if I try Dict{String, \<:Union{String, Vector{String}}}() I g…

---

## [Change each trace meeting condition in PlotyJS plot](https://discourse.julialang.org/t/change-each-trace-meeting-condition-in-plotyjs-plot/75474)

<div class="topic-metadata">

**Author:** [@Mo-Gul](https://discourse.julialang.org/u/Mo-Gul)\
**Replies:** 5\
**Last updated:** [January 31, 2022, 7:05pm UTC](https://discourse.julialang.org/t/change-each-trace-meeting-condition-in-plotyjs-plot/75474 "2022-01-31T19:05:21Z")

</div>

The title states it all. Here an example with the Julia code without the requested part. using DataFrames using PlotlyJS df = DataFrame( x = 1:5, a = rand(5), b\_calc = rand(5), c = rand(5), d\_calc =…

---

## [Creating Types in Julia](https://discourse.julialang.org/t/creating-types-in-julia/75521)

<div class="topic-metadata">

**Author:** [@devin](https://discourse.julialang.org/u/devin)\
**Replies:** 2\
**Last updated:** [January 31, 2022, 6:19pm UTC](https://discourse.julialang.org/t/creating-types-in-julia/75521 "2022-01-31T18:19:35Z")

</div>

Hello, I’m interested in using this library for some fixed point calculations. However, I’m interested in using complex numbers for my analysis (this is a communications systems application) and the library presents th…

---

## [Strange behavior of @views with reverse indexing](https://discourse.julialang.org/t/strange-behavior-of-views-with-reverse-indexing/75508)

<div class="topic-metadata">

**Author:** [@romainvieme](https://discourse.julialang.org/u/romainvieme)\
**Replies:** 10\
**Last updated:** [January 31, 2022, 6:02pm UTC](https://discourse.julialang.org/t/strange-behavior-of-views-with-reverse-indexing/75508 "2022-01-31T18:02:09Z")

</div>

I’ve noticed a strange behavior using @views with reverse indexing. When I execute the following code: using LinearAlgebra A=\[1.0; 2.0\]; B=\[3.0; 4.0\]; C = zeros(1); D = zeros(1); mul!(C, A\[1:end\]', B\[end:-1:1\]) @views …

---

## [How to pass NamedTuples as arguments to a function?](https://discourse.julialang.org/t/how-to-pass-namedtuples-as-arguments-to-a-function/34911)

<div class="topic-metadata">

**Author:** [@Elmer\_Cusipuma](https://discourse.julialang.org/u/Elmer_Cusipuma)\
**Replies:** 4\
**Last updated:** [January 31, 2022, 5:47pm UTC](https://discourse.julialang.org/t/how-to-pass-namedtuples-as-arguments-to-a-function/34911 "2022-01-31T17:47:22Z")

</div>

I have the following function defined. f(a::Int64,r::Float64,q::Float64,p::Int64) = a + r + q + p t1 = (a=1,c=3,r=5.3) t2 = (d=3,q=6.2,p=8) How do I pass the namedtuples as function arguments? e.g. \_f(t1,t2) = f(a,r…

---

## [Change dictionary values in array](https://discourse.julialang.org/t/change-dictionary-values-in-array/75520)

<div class="topic-metadata">

**Author:** [@Mahmoud](https://discourse.julialang.org/u/Mahmoud)\
**Replies:** 2\
**Last updated:** [January 31, 2022, 5:18pm UTC](https://discourse.julialang.org/t/change-dictionary-values-in-array/75520 "2022-01-31T17:18:51Z")

</div>

Person = fill(Dict(“x” =\> 0,“status” =\> 0,“color” =\> “black”),5) Person\[1\]\[“color”\] = “green” HI I have an array of dictionaries. when I change the value of single dictionary, all other values in other dictionaries ar…

---

## [\[ANN\] \`HMatrices.jl\` - A package for assembling and factoring hierarchical matrices](https://discourse.julialang.org/t/ann-hmatrices-jl-a-package-for-assembling-and-factoring-hierarchical-matrices/75329)

<div class="topic-metadata">

**Author:** [@maltezfaria](https://discourse.julialang.org/u/maltezfaria)\
**Replies:** 5\
**Last updated:** [January 31, 2022, 4:41pm UTC](https://discourse.julialang.org/t/ann-hmatrices-jl-a-package-for-assembling-and-factoring-hierarchical-matrices/75329 "2022-01-31T16:41:30Z")

</div>

Hi, I recently registered HMatrices.jl, a package for working with hierarchical matrices that may be of interest to others. More specifically, it implements the ℋ-matrix format, with a strong focus on the tools needed t…

---

## [How to suppress/hide all the warnings in IJulia or Julia language?](https://discourse.julialang.org/t/how-to-suppress-hide-all-the-warnings-in-ijulia-or-julia-language/5110)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 17\
**Last updated:** [January 31, 2022, 4:14pm UTC](https://discourse.julialang.org/t/how-to-suppress-hide-all-the-warnings-in-ijulia-or-julia-language/5110 "2022-01-31T16:14:56Z")

</div>

There are a lot of warnings which are always of no need to be fixed, while including code files. This makes the IJulia page messy. How to hide these warnings in Julia language or IJulia? Can anyone help? Thanks! Th…

---

## [Fixing Makie light position after moving the camera](https://discourse.julialang.org/t/fixing-makie-light-position-after-moving-the-camera/75514)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 0\
**Last updated:** [January 31, 2022, 3:37pm UTC](https://discourse.julialang.org/t/fixing-makie-light-position-after-moving-the-camera/75514 "2022-01-31T15:37:11Z")

</div>

Using Makie 0.16.3, the light look OK with the default camera position: using GLMakie f, a, p = meshscatter(0:1, 0:1, 0:1, color=\[:blue, :green\], markersize=0.3) update\_cam!(a.scene, (1.5, 3, 3), (0.5, -0.5, -0.5)) …

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

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