# New to Julia

**URL:** https://discourse.julialang.org/c/first-steps/8.md?page=37

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

**Page:** 38

---

## [Pkg on Julia 0.3.12](https://discourse.julialang.org/t/pkg-on-julia-0-3-12/117977)

<div class="topic-metadata">

**Author:** [@Laura\_Maria\_Eslava](https://discourse.julialang.org/u/Laura_Maria_Eslava)\
**Replies:** 3\
**Last updated:** [August 9, 2024, 10:04am UTC](https://discourse.julialang.org/t/pkg-on-julia-0-3-12/117977 "2024-08-09T10:04:31Z")

</div>

Hey, I need to use Julia package Phylonetworks, it says it’s supported for Julia versions 0.3.X and not tested on 0.4 or above, thus why I need to use the ANCIENT version (I know it’s not ideal but the package won’t inst…

---

## [How to suggest path based on user input](https://discourse.julialang.org/t/how-to-suggest-path-based-on-user-input/117966)

<div class="topic-metadata">

**Author:** [@Shuvo\_Barman](https://discourse.julialang.org/u/Shuvo_Barman)\
**Replies:** 1\
**Last updated:** [August 8, 2024, 7:56pm UTC](https://discourse.julialang.org/t/how-to-suggest-path-based-on-user-input/117966 "2024-08-08T19:56:46Z")

</div>

I am creating a GUI using “Gtk” and in this GUI there is a field where user inputs path, I want to suggest path based on user input. But i am unable to do so, Any idea how i can suggest path to user based on the input s/…

---

## [SingularException(0) error in affineFEoperator](https://discourse.julialang.org/t/singularexception-0-error-in-affinefeoperator/117957)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 0\
**Last updated:** [August 8, 2024, 4:04pm UTC](https://discourse.julialang.org/t/singularexception-0-error-in-affinefeoperator/117957 "2024-08-08T16:04:06Z")

</div>

Hi I am using gridap for topology optimisation based on gridap tutorial 18. Based on the tutorial there are two domains for problem one for design variable and one another for entire domain. I did the same thing and i go…

---

## [Registering package - automerge/decision — New package. Failed](https://discourse.julialang.org/t/registering-package-automerge-decision-new-package-failed/117937)

<div class="topic-metadata">

**Author:** [@zapiano](https://discourse.julialang.org/u/zapiano)\
**Replies:** 2\
**Last updated:** [August 8, 2024, 2:42am UTC](https://discourse.julialang.org/t/registering-package-automerge-decision-new-package-failed/117937 "2024-08-08T02:42:04Z")

</div>

I am trying to register this package: open-AIMS/CoralBlox.jl (github.com) to the general registry. What I did: I released a new version on Github I went to Register package · JuliaHub, clicked “Register package” and f…

---

## [How to list names of functions in a script file using Pluto?](https://discourse.julialang.org/t/how-to-list-names-of-functions-in-a-script-file-using-pluto/117809)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 4\
**Last updated:** [August 7, 2024, 5:00am UTC](https://discourse.julialang.org/t/how-to-list-names-of-functions-in-a-script-file-using-pluto/117809 "2024-08-07T05:00:35Z")

</div>

Hi all, I have a file named functions.jl which I import into a Pluto notebook using include("scripts/functions.jl"). I want to list all the function names in the functions file, what is the best practice to do it? Th…

---

## [Variable interpolation](https://discourse.julialang.org/t/variable-interpolation/117769)

<div class="topic-metadata">

**Author:** [@geoffD](https://discourse.julialang.org/u/geoffD)\
**Replies:** 5\
**Last updated:** [August 7, 2024, 2:30am UTC](https://discourse.julialang.org/t/variable-interpolation/117769 "2024-08-07T02:30:45Z")

</div>

Hi, everyone. New to Julia and trying to do something like the following: v1 = "m" function mat() return "I am a mat" end I would like to be able to issue the following command: ($v1)at and get back “I am a …

---

## [Speed up Optim.Optimize calls in a for-loop](https://discourse.julialang.org/t/speed-up-optim-optimize-calls-in-a-for-loop/117895)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 2\
**Last updated:** [August 6, 2024, 8:04pm UTC](https://discourse.julialang.org/t/speed-up-optim-optimize-calls-in-a-for-loop/117895 "2024-08-06T20:04:48Z")

</div>

Hi, in my code, I have a for-loop carrying out an ‘Optim.Optimize’ on each iteration. I don’t care about the order and know that individual optimizations will not bite each-other. What are some general methods to speed u…

---

## [In Operator not working as expected for struct](https://discourse.julialang.org/t/in-operator-not-working-as-expected-for-struct/117874)

<div class="topic-metadata">

**Author:** [@sven](https://discourse.julialang.org/u/sven)\
**Replies:** 5\
**Last updated:** [August 6, 2024, 12:26pm UTC](https://discourse.julialang.org/t/in-operator-not-working-as-expected-for-struct/117874 "2024-08-06T12:26:03Z")

</div>

Hello. I have a struct “parts” and a different struct (“collection”) which contains a Set of parts. I want to check if a part is contained in the Set of parts. I tried to overload the isequal function. Because in the D…

---

## [Widen Jupyter Notebook](https://discourse.julialang.org/t/widen-jupyter-notebook/117811)

<div class="topic-metadata">

**Author:** [@John\_Finseth](https://discourse.julialang.org/u/John_Finseth)\
**Replies:** 7\
**Last updated:** [August 5, 2024, 6:30pm UTC](https://discourse.julialang.org/t/widen-jupyter-notebook/117811 "2024-08-05T18:30:17Z")

</div>

Hello, How can I widen cells in Jupyter notebook? I tried the fix from this post, but it doesn’t change anything about my notebook. using IJulia display("text/html", "\<style\>.container { width:100% !important; }\</style\>…

---

## [Output from Base.find\_package?](https://discourse.julialang.org/t/output-from-base-find-package/117829)

<div class="topic-metadata">

**Author:** [@pywugate](https://discourse.julialang.org/u/pywugate)\
**Replies:** 1\
**Last updated:** [August 5, 2024, 10:41am UTC](https://discourse.julialang.org/t/output-from-base-find-package/117829 "2024-08-05T10:41:40Z")

</div>

Hi all, I have a question about the behaviour of Base.find\_package. I know package can be found : if the package is already installed. by using CSV But when I follow this tuto: How to develop a Julia package for dev…

---

## [Using @distributed for loop](https://discourse.julialang.org/t/using-distributed-for-loop/117831)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 10\
**Last updated:** [August 5, 2024, 10:26am UTC](https://discourse.julialang.org/t/using-distributed-for-loop/117831 "2024-08-05T10:26:41Z")

</div>

Hello everyone, Can someone point out why following setup is not working ? Issue is that I want to copy function result in xm variable that is defined by @everywhere to not have issue with workers. But when I run loop i…

---

## [Function with argument of generic parametric type, and another argument subtyping the parameter](https://discourse.julialang.org/t/function-with-argument-of-generic-parametric-type-and-another-argument-subtyping-the-parameter/117813)

<div class="topic-metadata">

**Author:** [@Oblomov](https://discourse.julialang.org/u/Oblomov)\
**Replies:** 1\
**Last updated:** [August 4, 2024, 4:30pm UTC](https://discourse.julialang.org/t/function-with-argument-of-generic-parametric-type-and-another-argument-subtyping-the-parameter/117813 "2024-08-04T16:30:14Z")

</div>

Hello all, I’m still trying to understand how generic type dependencies work in Julia. As a follow-up to my question here, I would like to have a dyadic function f(a, b) with the following conditions: a should be a ve…

---

## [Understanding generic functions and parametric types](https://discourse.julialang.org/t/understanding-generic-functions-and-parametric-types/117810)

<div class="topic-metadata">

**Author:** [@Oblomov](https://discourse.julialang.org/u/Oblomov)\
**Replies:** 3\
**Last updated:** [August 4, 2024, 3:58pm UTC](https://discourse.julialang.org/t/understanding-generic-functions-and-parametric-types/117810 "2024-08-04T15:58:15Z")

</div>

Hello all, I’m new to Julia and I’m trying to understand how type deduction works for generic functions with parametric types. To test my hands at things, I tried to define a function that takes one argument that should…

---

## [Matrices inside a or outside a Function](https://discourse.julialang.org/t/matrices-inside-a-or-outside-a-function/117775)

<div class="topic-metadata">

**Author:** [@Benjamin7](https://discourse.julialang.org/u/Benjamin7)\
**Replies:** 12\
**Last updated:** [August 4, 2024, 8:11am UTC](https://discourse.julialang.org/t/matrices-inside-a-or-outside-a-function/117775 "2024-08-04T08:11:16Z")

</div>

Hello community! As I understand from what I have read in Julia’s optimization section, “Performance critical code should be inside a function”. My code has several for loops that fill the created arrays, my question i…

---

## [PyVista functionalities analogue package in Julia](https://discourse.julialang.org/t/pyvista-functionalities-analogue-package-in-julia/117734)

<div class="topic-metadata">

**Author:** [@sabbraxcaddabra](https://discourse.julialang.org/u/sabbraxcaddabra)\
**Replies:** 1\
**Last updated:** [August 1, 2024, 5:35pm UTC](https://discourse.julialang.org/t/pyvista-functionalities-analogue-package-in-julia/117734 "2024-08-01T17:35:01Z")

</div>

Hello everyone! I have a big python project that based on PyVista library features: reading stl geometry, finding normals for each cell, finding intersection between polydata object and line Can anybody help me find Ju…

---

## [Autodiff working for my model function but not for my loss function](https://discourse.julialang.org/t/autodiff-working-for-my-model-function-but-not-for-my-loss-function/117665)

<div class="topic-metadata">

**Author:** [@Vitor\_Patricio\_Canta](https://discourse.julialang.org/u/Vitor_Patricio_Canta)\
**Replies:** 4\
**Last updated:** [July 31, 2024, 11:44am UTC](https://discourse.julialang.org/t/autodiff-working-for-my-model-function-but-not-for-my-loss-function/117665 "2024-07-31T11:44:26Z")

</div>

Hi, I have a function that calculates the analytical solution to a pulse injection through a column (advective dispersion transport). I am trying to fit some parameters to the data. I manage to calculate the derivative…

---

## [Interpolation of function with multiple variables](https://discourse.julialang.org/t/interpolation-of-function-with-multiple-variables/117640)

<div class="topic-metadata">

**Author:** [@dilaraabdel](https://discourse.julialang.org/u/dilaraabdel)\
**Replies:** 9\
**Last updated:** [July 31, 2024, 11:26am UTC](https://discourse.julialang.org/t/interpolation-of-function-with-multiple-variables/117640 "2024-07-31T11:26:18Z")

</div>

Dear all, I am trying to interpolate a function f: R^2 → R with Interpolations.jl. But as far as I understand the documentation this is only possible for functions from R^n to R^n. Are you aware of a way to build an i…

---

## [Agents.jl problem with the step! function](https://discourse.julialang.org/t/agents-jl-problem-with-the-step-function/117598)

<div class="topic-metadata">

**Author:** [@Farouk](https://discourse.julialang.org/u/Farouk)\
**Replies:** 6\
**Last updated:** [July 30, 2024, 9:26am UTC](https://discourse.julialang.org/t/agents-jl-problem-with-the-step-function/117598 "2024-07-30T09:26:24Z")

</div>

Hi I am new to Agents.jl and Julia, I am following the official online tutorial on the Shelling’s model, however I am facing a hard time with the step! function, I tried to use the same source code as in the tutorial but…

---

## [Metaprogramming - Variable scope in macros combined with closures](https://discourse.julialang.org/t/metaprogramming-variable-scope-in-macros-combined-with-closures/117594)

<div class="topic-metadata">

**Author:** [@nietzsche](https://discourse.julialang.org/u/nietzsche)\
**Replies:** 4\
**Last updated:** [July 29, 2024, 2:54pm UTC](https://discourse.julialang.org/t/metaprogramming-variable-scope-in-macros-combined-with-closures/117594 "2024-07-29T14:54:48Z")

</div>

Hi, this is my first post. I have a question about macros and closures. The example is from the Book “LetOverLambda” Chapter 5.7. The author called it DLambda. The following source is a easy counter closure function c…

---

## [Is it possible to use Makie in CImGui?](https://discourse.julialang.org/t/is-it-possible-to-use-makie-in-cimgui/45844)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 8\
**Last updated:** [July 29, 2024, 12:45pm UTC](https://discourse.julialang.org/t/is-it-possible-to-use-makie-in-cimgui/45844 "2024-07-29T12:45:12Z")

</div>

Is there a way to render with Makie.jl directly into an existing OpenGL context? My goal is to render into a CImGui.jl widget using Makie.

---

## [LaTeX Support for Interactive Plotting](https://discourse.julialang.org/t/latex-support-for-interactive-plotting/117565)

<div class="topic-metadata">

**Author:** [@ckawa](https://discourse.julialang.org/u/ckawa)\
**Replies:** 11\
**Last updated:** [July 28, 2024, 7:45pm UTC](https://discourse.julialang.org/t/latex-support-for-interactive-plotting/117565 "2024-07-28T19:45:39Z")

</div>

Just jumped into Julia from MATLAB so I’ve been spoiled with nice plotting experience, but I want to transition workflows into Julia for academic research. For plotting, I noticed that using LaTeXStrings works well for …

---

## [Pmap over large dataset](https://discourse.julialang.org/t/pmap-over-large-dataset/116338)

<div class="topic-metadata">

**Author:** [@ditfurth](https://discourse.julialang.org/u/ditfurth)\
**Replies:** 2\
**Last updated:** [July 28, 2024, 1:15pm UTC](https://discourse.julialang.org/t/pmap-over-large-dataset/116338 "2024-07-28T13:15:00Z")

</div>

Hi all, I am trying to parallelize an operation over an index of a dataframe. list\_of\_dts = \[begin date = first(unique(dt\[dt.market\_ids .== id, :quarter\])) dma = first(unique(dt\[dt.market\_ids …

---

## [Julia nightly CI errors](https://discourse.julialang.org/t/julia-nightly-ci-errors/117541)

<div class="topic-metadata">

**Author:** [@luke98](https://discourse.julialang.org/u/luke98)\
**Replies:** 6\
**Last updated:** [July 28, 2024, 9:17am UTC](https://discourse.julialang.org/t/julia-nightly-ci-errors/117541 "2024-07-28T09:17:36Z")

</div>

Hi All, I am new to Julia and I am trying to understand the usage of julia nightly and why it is giving me errors. I am working with someone else’s code repository and CI jobs work well on julia 1.6 and 1.8 but not on …

---

## [How do I sort a dictionary by its keys?](https://discourse.julialang.org/t/how-do-i-sort-a-dictionary-by-its-keys/37848)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 10\
**Last updated:** [July 28, 2024, 8:59am UTC](https://discourse.julialang.org/t/how-do-i-sort-a-dictionary-by-its-keys/37848 "2024-07-28T08:59:15Z")

</div>

I want to sort this by its keys: 5-element Dictionaries.HashDictionary{Int64,Any} 4 │ 0.2199244 2 │ 0.2000908 3 │ 0.19014 5 │ 0.2099752 1 │ 0.1798696

---

## [How to add IJulia](https://discourse.julialang.org/t/how-to-add-ijulia/117560)

<div class="topic-metadata">

**Author:** [@chenchen](https://discourse.julialang.org/u/chenchen)\
**Replies:** 2\
**Last updated:** [July 28, 2024, 7:22am UTC](https://discourse.julialang.org/t/how-to-add-ijulia/117560 "2024-07-28T07:22:45Z")

</div>

This is a beginner who has just started working with Julia and encountered some issues during installation. I hope everyone can help more. I am using macOS system and currently have Julia and Anaconda installed. However…

---

## [What is the basic integrator method of order 2 in Kahanli6()?](https://discourse.julialang.org/t/what-is-the-basic-integrator-method-of-order-2-in-kahanli6/117516)

<div class="topic-metadata">

**Author:** [@wjliu](https://discourse.julialang.org/u/wjliu)\
**Replies:** 0\
**Last updated:** [July 26, 2024, 2:34pm UTC](https://discourse.julialang.org/t/what-is-the-basic-integrator-method-of-order-2-in-kahanli6/117516 "2024-07-26T14:34:42Z")

</div>

I have read the reference of symplectic integrator Kahanli6(), that is, ‘‘Composition constants for raising the orders of unconventional schemes for ordinary differential equations’’. As far as I know, if a symmetric one…

---

## [Introduction to Julia course - loops](https://discourse.julialang.org/t/introduction-to-julia-course-loops/117522)

<div class="topic-metadata">

**Author:** [@Daves\_Cordova](https://discourse.julialang.org/u/Daves_Cordova)\
**Replies:** 7\
**Last updated:** [July 26, 2024, 9:27pm UTC](https://discourse.julialang.org/t/introduction-to-julia-course-loops/117522 "2024-07-26T21:27:45Z")

</div>

The course in Julia Academy have the following exercise: #exercise 4.1 ##Loop over integers between 1 and 100 and print their squares I have made the code: for a in 1:100 A = a^2 end a Nothwisthanfd, I did not ac…

---

## [Error while using stack() with empty list Any\[ \]](https://discourse.julialang.org/t/error-while-using-stack-with-empty-list-any/117506)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [July 26, 2024, 9:44am UTC](https://discourse.julialang.org/t/error-while-using-stack-with-empty-list-any/117506 "2024-07-26T09:44:46Z")

</div>

Hello everyone, This is probably a very naive question but I don’t understand why i’m getting error in this case when i expect it to run perfectly. So In first example when I put main loop in test function I get error …

---

## [After installing Pluto.jl, julia no longer runs, Win10](https://discourse.julialang.org/t/after-installing-pluto-jl-julia-no-longer-runs-win10/117394)

<div class="topic-metadata">

**Author:** [@xenophod](https://discourse.julialang.org/u/xenophod)\
**Replies:** 3\
**Last updated:** [July 25, 2024, 4:01pm UTC](https://discourse.julialang.org/t/after-installing-pluto-jl-julia-no-longer-runs-win10/117394 "2024-07-25T16:01:28Z")

</div>

I’ve installed Julia on Win10 using the command: winget install julia -s msstore Found Julia \[9NJNWW8PVKMN\] Version Unknown I was able to launch the Julia REPL without error. I followed the instructions on Pluto.jl —…

---

## [Evaluating a polynomial matrix](https://discourse.julialang.org/t/evaluating-a-polynomial-matrix/117472)

<div class="topic-metadata">

**Author:** [@Banan\_alkafri](https://discourse.julialang.org/u/Banan_alkafri)\
**Replies:** 1\
**Last updated:** [July 25, 2024, 2:09pm UTC](https://discourse.julialang.org/t/evaluating-a-polynomial-matrix/117472 "2024-07-25T14:09:23Z")

</div>

Hello, I’m trying to evaluate a polynomial matrix given by sol\[5\] in my code at certain values of x and y which I generated using LinRange. I tried to do it, but I’m getting the indices of sol\[5\] rather that the value o…

[Previous page](https://discourse.julialang.org/c/first-steps/8.md?page=36)

[Next page](https://discourse.julialang.org/c/first-steps/8.md?page=38)
