# New to Julia

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

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

**Page:** 47

---

## [Iterative Filter Loop Help:](https://discourse.julialang.org/t/iterative-filter-loop-help/114036)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 3\
**Last updated:** [May 9, 2024, 7:51am UTC](https://discourse.julialang.org/t/iterative-filter-loop-help/114036 "2024-05-09T07:51:16Z")

</div>

I was able to create a single filter quickly such that every station that matched was collected and written to a file for that particular epoch. This is how I wrote it: # Individual Filter for GPS time series: c\_glob …

---

## [BenchmakeProfiles equivalent for some metric where larger is better](https://discourse.julialang.org/t/benchmakeprofiles-equivalent-for-some-metric-where-larger-is-better/114032)

<div class="topic-metadata">

**Author:** [@yhuang](https://discourse.julialang.org/u/yhuang)\
**Replies:** 0\
**Last updated:** [May 9, 2024, 2:15am UTC](https://discourse.julialang.org/t/benchmakeprofiles-equivalent-for-some-metric-where-larger-is-better/114032 "2024-05-09T02:15:41Z")

</div>

BenchmarkProfiles is a great plotting tool for running time/memory usage comparison. I wonder if there is any equivalent to it when the metric I want to look at has the property larger is better. For example, I’m compa…

---

## [Odd behavior with closures and let block (inside script)](https://discourse.julialang.org/t/odd-behavior-with-closures-and-let-block-inside-script/114007)

<div class="topic-metadata">

**Author:** [@martin.auer](https://discourse.julialang.org/u/martin.auer)\
**Replies:** 9\
**Last updated:** [May 8, 2024, 4:57pm UTC](https://discourse.julialang.org/t/odd-behavior-with-closures-and-let-block-inside-script/114007 "2024-05-08T16:57:58Z")

</div>

Hi, I try to hide some state in a let block, as in Does Julia Need a C++ style \`static\` keyword? - #4 by antoine-levitt (In particular, I don’t want it in the module scope.) Here are 3 variants of a counter given in s…

---

## [AbstractArray and Vector of AbstractArray as an input](https://discourse.julialang.org/t/abstractarray-and-vector-of-abstractarray-as-an-input/113972)

<div class="topic-metadata">

**Author:** [@Kadii](https://discourse.julialang.org/u/Kadii)\
**Replies:** 5\
**Last updated:** [May 8, 2024, 11:26am UTC](https://discourse.julialang.org/t/abstractarray-and-vector-of-abstractarray-as-an-input/113972 "2024-05-08T11:26:47Z")

</div>

Hi, I’m testing how the AbstractArray works as an input type declaration. When I defined two functions as follows, test1 worked just fine but test2. Is test2 type declaration invalid? Or, the way to call the function i…

---

## [Linpack Performance (as an learning exercise)](https://discourse.julialang.org/t/linpack-performance-as-an-learning-exercise/113966)

<div class="topic-metadata">

**Author:** [@coreyjadams](https://discourse.julialang.org/u/coreyjadams)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 12:32am UTC](https://discourse.julialang.org/t/linpack-performance-as-an-learning-exercise/113966 "2024-05-08T00:32:49Z")

</div>

Hi everyone, I am exploring Julia as a high performance language since everyone says Julia has great performance … if you do it right. I don’t think I’m doing it right, and I’d love to be educated. Eventually, I want …

---

## [Using abmplot() for plotting a 3d model with agents sphere in shape](https://discourse.julialang.org/t/using-abmplot-for-plotting-a-3d-model-with-agents-sphere-in-shape/113941)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 6\
**Last updated:** [May 7, 2024, 2:03pm UTC](https://discourse.julialang.org/t/using-abmplot-for-plotting-a-3d-model-with-agents-sphere-in-shape/113941 "2024-05-07T14:03:06Z")

</div>

Hello everyone, I’m trying to plot my 3D ABM model using abmplot() which seems better for 2d plots rather then 3d as it doesn’t support 3d markers yet but how can I use abmplot() to plot a 3d model if i want to? Speci…

---

## [Invalid enum code when using Pkg](https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933)

<div class="topic-metadata">

**Author:** [@Devansh1106](https://discourse.julialang.org/u/Devansh1106)\
**Replies:** 3\
**Last updated:** [May 7, 2024, 10:26am UTC](https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933 "2024-05-07T10:26:30Z")

</div>

I am installing MPIPreferences using Pkg. But there is some argument error that has been shown in the picture below.

---

## [MWE for Abstraction object for Statistical Models needed?](https://discourse.julialang.org/t/mwe-for-abstraction-object-for-statistical-models-needed/113477)

<div class="topic-metadata">

**Author:** [@keynescoefen](https://discourse.julialang.org/u/keynescoefen)\
**Replies:** 17\
**Last updated:** [May 6, 2024, 4:31pm UTC](https://discourse.julialang.org/t/mwe-for-abstraction-object-for-statistical-models-needed/113477 "2024-05-06T16:31:53Z")

</div>

Hello! I have Julia code that implements a suite of statistical models and computes diagnostics such as log-likelihood, test statistics and of course reports regression coefficients. I would like to plug into the abstr…

---

## [Segmentation fault while trying to call a Julia function compiled to .so file from Python](https://discourse.julialang.org/t/segmentation-fault-while-trying-to-call-a-julia-function-compiled-to-so-file-from-python/113141)

<div class="topic-metadata">

**Author:** [@thecodingbugs](https://discourse.julialang.org/u/thecodingbugs)\
**Replies:** 19\
**Last updated:** [May 6, 2024, 9:36am UTC](https://discourse.julialang.org/t/segmentation-fault-while-trying-to-call-a-julia-function-compiled-to-so-file-from-python/113141 "2024-05-06T09:36:27Z")

</div>

Hello, I am using the examples from PackageCompiler.jl, specifically the MyLib one, and have issues with it. I have compiled MyLib using build.jl file given with it and have created .so files. Now I am trying to use the…

---

## [Static matrix with size 400](https://discourse.julialang.org/t/static-matrix-with-size-400/113843)

<div class="topic-metadata">

**Author:** [@jiyashxi](https://discourse.julialang.org/u/jiyashxi)\
**Replies:** 7\
**Last updated:** [May 6, 2024, 6:07am UTC](https://discourse.julialang.org/t/static-matrix-with-size-400/113843 "2024-05-06T06:07:33Z")

</div>

Hi, I want to write a function to generate random matrices with size 20x20. I need to use this function frequently but I don’t need to change the matrices generated by it. So the StaticArrays seem to be a good choice. B…

---

## [Equivalent of \`nbconvert\` when using IJulia](https://discourse.julialang.org/t/equivalent-of-nbconvert-when-using-ijulia/113873)

<div class="topic-metadata">

**Author:** [@keynescoefen](https://discourse.julialang.org/u/keynescoefen)\
**Replies:** 3\
**Last updated:** [May 5, 2024, 7:37pm UTC](https://discourse.julialang.org/t/equivalent-of-nbconvert-when-using-ijulia/113873 "2024-05-05T19:37:42Z")

</div>

Hello! I was trying to run the command nbconvert --to pdf --TemplateExporter.exclude\_input=True my\_notebook.ipynb to avoid printing the code output of a cell as per the discussion here. Is there an equivalent in IJu…

---

## [Lookup table interpolation of an array](https://discourse.julialang.org/t/lookup-table-interpolation-of-an-array/113787)

<div class="topic-metadata">

**Author:** [@ahrensma](https://discourse.julialang.org/u/ahrensma)\
**Replies:** 7\
**Last updated:** [May 5, 2024, 6:50pm UTC](https://discourse.julialang.org/t/lookup-table-interpolation-of-an-array/113787 "2024-05-05T18:50:10Z")

</div>

Hello, I am not yet fully familiar with Julia and am currently trying to rewrite a Matlab code. I am stumbling with the (Matlab) function interp1. Summarized the code looks like this: A → Type: double(2048x1) B → Type…

---

## [Directing Jupyter from IJulia to Homebrew installation of Julia](https://discourse.julialang.org/t/directing-jupyter-from-ijulia-to-homebrew-installation-of-julia/113872)

<div class="topic-metadata">

**Author:** [@keynescoefen](https://discourse.julialang.org/u/keynescoefen)\
**Replies:** 2\
**Last updated:** [May 5, 2024, 5:01pm UTC](https://discourse.julialang.org/t/directing-jupyter-from-ijulia-to-homebrew-installation-of-julia/113872 "2024-05-05T17:01:40Z")

</div>

Hello! I am trying to run a Jupyter notebook like so: using IJulia; notebook(detached=true) and find that my kernel for Julia 10 is not being recognized or located. On my system running which Julia gives me /usr/loc…

---

## [Quantum Simulation in Julia](https://discourse.julialang.org/t/quantum-simulation-in-julia/113829)

<div class="topic-metadata">

**Author:** [@Kamran](https://discourse.julialang.org/u/Kamran)\
**Replies:** 14\
**Last updated:** [May 5, 2024, 12:31am UTC](https://discourse.julialang.org/t/quantum-simulation-in-julia/113829 "2024-05-05T00:31:53Z")

</div>

I am facing Problem in Simulation can anyone help me to solve a small problem

---

## [How to convert a Julia 3D array to a Python 3D list](https://discourse.julialang.org/t/how-to-convert-a-julia-3d-array-to-a-python-3d-list/113840)

<div class="topic-metadata">

**Author:** [@heiwie](https://discourse.julialang.org/u/heiwie)\
**Replies:** 5\
**Last updated:** [May 4, 2024, 6:52pm UTC](https://discourse.julialang.org/t/how-to-convert-a-julia-3d-array-to-a-python-3d-list/113840 "2024-05-04T18:52:33Z")

</div>

I have a Julia 3D array on the format Vector{Vector{Vector{Float64}}} and I am wondering how I can convert it into a 3D list in Python with the same indexing. Thanks for any help!

---

## [Taking gradient to update a Flux.jl CNN](https://discourse.julialang.org/t/taking-gradient-to-update-a-flux-jl-cnn/113822)

<div class="topic-metadata">

**Author:** [@mward19](https://discourse.julialang.org/u/mward19)\
**Replies:** 2\
**Last updated:** [May 4, 2024, 2:21pm UTC](https://discourse.julialang.org/t/taking-gradient-to-update-a-flux-jl-cnn/113822 "2024-05-04T14:21:39Z")

</div>

Hello, I am new to Julia and Flux.jl, and I’ve been working on some toy problems to learn. I have been struggling to get my networks to train – I have yet to get Flux.train! to work, so I’ve been writing my gradient desc…

---

## [Error when updating Julia via UpdateJulia](https://discourse.julialang.org/t/error-when-updating-julia-via-updatejulia/91046)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 9\
**Last updated:** [May 3, 2024, 9:01pm UTC](https://discourse.julialang.org/t/error-when-updating-julia-via-updatejulia/91046 "2024-05-03T21:01:02Z")

</div>

I am currently using Julia version 1.7.2. on macOS Monterey with an arm processor, When I tried updating to 1.8.3 via the UpdateJulia package I received the following permission error /dev/disk4 GUID\_partit…

---

## [Jupyter-notebook cannot connect Julia kernel](https://discourse.julialang.org/t/jupyter-notebook-cannot-connect-julia-kernel/113814)

<div class="topic-metadata">

**Author:** [@appletree999](https://discourse.julialang.org/u/appletree999)\
**Replies:** 2\
**Last updated:** [May 3, 2024, 8:53pm UTC](https://discourse.julialang.org/t/jupyter-notebook-cannot-connect-julia-kernel/113814 "2024-05-03T20:53:10Z")

</div>

Hi, I installed Julia both using directions here Installation · IJulia and using conda-forge. But none of this works for jupyter-notebook, as shown in the picture: Errors from terminal: WARNING: Error during initial…

---

## [Problem install DifferentialEquations](https://discourse.julialang.org/t/problem-install-differentialequations/113726)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 11\
**Last updated:** [May 3, 2024, 2:17pm UTC](https://discourse.julialang.org/t/problem-install-differentialequations/113726 "2024-05-03T14:17:17Z")

</div>

I have a problem with all the packages related to integrate differential equations. The error is with AdaptStaticArrayExt: ┌ Error: Error during loading of extension AdaptStaticArraysExt of Adapt, use \`Base.retry\_load\_…

---

## [Making PyCall and PythonCall work in the same project environment](https://discourse.julialang.org/t/making-pycall-and-pythoncall-work-in-the-same-project-environment/113733)

<div class="topic-metadata">

**Author:** [@Joh11](https://discourse.julialang.org/u/Joh11)\
**Replies:** 3\
**Last updated:** [May 2, 2024, 7:52pm UTC](https://discourse.julialang.org/t/making-pycall-and-pythoncall-work-in-the-same-project-environment/113733 "2024-05-02T19:52:44Z")

</div>

Hi all, I need to make PyCall and PythonCall work in the same script, because I am using both PyPlot, and AtomsIOPython which depend on PyCall and PythonCall, respectively. I followed the tips on the PythonCall page to…

---

## [Reinterpret returns wrong values](https://discourse.julialang.org/t/reinterpret-returns-wrong-values/101759)

<div class="topic-metadata">

**Author:** [@Kadii](https://discourse.julialang.org/u/Kadii)\
**Replies:** 23\
**Last updated:** [May 2, 2024, 7:33pm UTC](https://discourse.julialang.org/t/reinterpret-returns-wrong-values/101759 "2024-05-02T19:33:13Z")

</div>

I’m working on the parsing a binary file header. The structure looks like Adummy. First, I tried to use the reinterpret but some values (p9 and p10) were incorrect. If I sequentially read the data one by one, I got cor…

---

## [Savitzky Golay filter](https://discourse.julialang.org/t/savitzky-golay-filter/113543)

<div class="topic-metadata">

**Author:** [@kamilmroz12](https://discourse.julialang.org/u/kamilmroz12)\
**Replies:** 12\
**Last updated:** [May 2, 2024, 2:36pm UTC](https://discourse.julialang.org/t/savitzky-golay-filter/113543 "2024-05-02T14:36:06Z")

</div>

Hey, I’m new to Julia, transitioning from the Python community. I attempted to implement a Savitzky-Golay filter in Julia, aiming to precompute certain parts of the code akin to Python’s class with \_\_init\_\_() method. Whi…

---

## [Can someone help me interpret this error: Dimension mismatch with BFGS](https://discourse.julialang.org/t/can-someone-help-me-interpret-this-error-dimension-mismatch-with-bfgs/113749)

<div class="topic-metadata">

**Author:** [@keynescoefen](https://discourse.julialang.org/u/keynescoefen)\
**Replies:** 0\
**Last updated:** [May 2, 2024, 4:27pm UTC](https://discourse.julialang.org/t/can-someone-help-me-interpret-this-error-dimension-mismatch-with-bfgs/113749 "2024-05-02T16:27:30Z")

</div>

When running the example given here ML Estimation it works fine. When using my own log-likelihood, I can get it to work with LBFGS() and Newton() but plain BFGS() throws the following error pasted below. My code is nearl…

---

## [Problem while installing DifferentialEquations](https://discourse.julialang.org/t/problem-while-installing-differentialequations/113504)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 2:18pm UTC](https://discourse.julialang.org/t/problem-while-installing-differentialequations/113504 "2024-05-02T14:18:58Z")

</div>

I am using the DifferentialEquations package I am inside an environment, yesterday it work perfectly today it does not. Which is very weird. When I run the using DifferentialEquations it gives me this error : Different…

---

## [Agent Based Modelling for cellular interaction](https://discourse.julialang.org/t/agent-based-modelling-for-cellular-interaction/113732)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [May 2, 2024, 12:06pm UTC](https://discourse.julialang.org/t/agent-based-modelling-for-cellular-interaction/113732 "2024-05-02T12:06:49Z")

</div>

Hello everyone, Im trying to make a simple interaction model for cellular system. Let’s say we have 3 cells of two types A and B and when they come in contact they produce chemical x. Though there is much more I need t…

---

## [Using Plots and PhysicalConstants gives error](https://discourse.julialang.org/t/using-plots-and-physicalconstants-gives-error/99663)

<div class="topic-metadata">

**Author:** [@ropewe](https://discourse.julialang.org/u/ropewe)\
**Replies:** 1\
**Last updated:** [May 2, 2024, 6:33am UTC](https://discourse.julialang.org/t/using-plots-and-physicalconstants-gives-error/99663 "2024-05-02T06:33:51Z")

</div>

Using Plots and PhysicalConstants together results in an error message: using Plots using PhysicalConstants ┌ Error: Error during package callback │ exception = │ 2-element ExceptionStack: │ invalid redefinit…

---

## [Any one up for a newbie?](https://discourse.julialang.org/t/any-one-up-for-a-newbie/113695)

<div class="topic-metadata">

**Author:** [@rich20509](https://discourse.julialang.org/u/rich20509)\
**Replies:** 1\
**Last updated:** [May 1, 2024, 12:50pm UTC](https://discourse.julialang.org/t/any-one-up-for-a-newbie/113695 "2024-05-01T12:50:35Z")

</div>

Hello there, This is my first post after just joining this discussion, so please forgive me and provide kind assistance if I have posted to the wrong subsection. I am new here but a real enthusiast and loving this comm…

---

## [Help with Change Point Analysis](https://discourse.julialang.org/t/help-with-change-point-analysis/113677)

<div class="topic-metadata">

**Author:** [@GrudgingDesert1](https://discourse.julialang.org/u/GrudgingDesert1)\
**Replies:** 2\
**Last updated:** [May 1, 2024, 4:36am UTC](https://discourse.julialang.org/t/help-with-change-point-analysis/113677 "2024-05-01T04:36:52Z")

</div>

Hi everyone, new to Julia and Turing.jl here! I have a question about why my change point model will not converge properly. This question was asked before here, but none of the answers there worked either. I am creating…

---

## [To grok "vectors..."](https://discourse.julialang.org/t/to-grok-vectors/113630)

<div class="topic-metadata">

**Author:** [@skypuppy](https://discourse.julialang.org/u/skypuppy)\
**Replies:** 17\
**Last updated:** [April 30, 2024, 10:21pm UTC](https://discourse.julialang.org/t/to-grok-vectors/113630 "2024-04-30T22:21:59Z")

</div>

I got the concept of mathematical vectors, and geometrical vectors. However, having some mental blockage of relating those to how they fit the programming models in Julia. Can someone point me toward a (simpleton) way …

---

## [1D heat transfer code issues](https://discourse.julialang.org/t/1d-heat-transfer-code-issues/113520)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 2\
**Last updated:** [April 30, 2024, 11:13am UTC](https://discourse.julialang.org/t/1d-heat-transfer-code-issues/113520 "2024-04-30T11:13:06Z")

</div>

Hi Guys Please refer to my code below. When trying to solve I get an error on the last line of the code. ERROR: MethodError: no method matching a(::Gridap.FESpaces.SingleFieldFEBasis{Gridap.FESpaces.TestBasis, Referen…

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

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