# New to Julia

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

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

**Page:** 17

---

## [Implementation of custom block in Modeling Toolkit](https://discourse.julialang.org/t/implementation-of-custom-block-in-modeling-toolkit/128212)

<div class="topic-metadata">

**Author:** [@JaviJR](https://discourse.julialang.org/u/JaviJR)\
**Replies:** 2\
**Last updated:** [April 20, 2025, 9:22am UTC](https://discourse.julialang.org/t/implementation-of-custom-block-in-modeling-toolkit/128212 "2025-04-20T09:22:23Z")

</div>

Hello everyone, As an exercise to learn how to use Modeling Toolkit, I set out to ‘translate’ some of the models I had implemented in Simulink. So far, I’ve managed to implement everything perfectly, but there’s one fun…

---

## [Eachline function and more than one line](https://discourse.julialang.org/t/eachline-function-and-more-than-one-line/128205)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 4\
**Last updated:** [April 20, 2025, 6:24am UTC](https://discourse.julialang.org/t/eachline-function-and-more-than-one-line/128205 "2025-04-20T06:24:23Z")

</div>

Hello, Can I use the eachline function to read multiple lines? Thank you.

---

## [How do I open and edit my startup.jl file?](https://discourse.julialang.org/t/how-do-i-open-and-edit-my-startup-jl-file/93415)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 13\
**Last updated:** [April 19, 2025, 10:05am UTC](https://discourse.julialang.org/t/how-do-i-open-and-edit-my-startup-jl-file/93415 "2025-04-19T10:05:24Z")

</div>

Simple question: How do I open my startup.jl file? In MATLAB, it’s possible to type \>\> edit("startup.m") and if startup.m already exists, the file opens and becomes editable. If startup.m doesn’t exist, MATLAB asks if…

---

## [Filtering syntactically positive non constant symbolic terms from a matrix in Symbolics.jl fails in 2×2 test case](https://discourse.julialang.org/t/filtering-syntactically-positive-non-constant-symbolic-terms-from-a-matrix-in-symbolics-jl-fails-in-2x2-test-case/128151)

<div class="topic-metadata">

**Author:** [@florinav](https://discourse.julialang.org/u/florinav)\
**Replies:** 4\
**Last updated:** [April 19, 2025, 7:52am UTC](https://discourse.julialang.org/t/filtering-syntactically-positive-non-constant-symbolic-terms-from-a-matrix-in-symbolics-jl-fails-in-2x2-test-case/128151 "2025-04-19T07:52:08Z")

</div>

Here is a minimal test in Julia using Symbolics.jl: using Symbolics using LinearAlgebra function NGM(M, var) M = simplify.(M) # normalize all expressions F = map(e -\> begin expr = string(e) dep…

---

## [ImmutableDict documentation](https://discourse.julialang.org/t/immutabledict-documentation/128033)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 5\
**Last updated:** [April 18, 2025, 7:13pm UTC](https://discourse.julialang.org/t/immutabledict-documentation/128033 "2025-04-18T19:13:59Z")

</div>

After stumbling through using an ImmutableDict, I’d like to submit some documentation for the type. Is there a procedure for this?

---

## [Using Julia for "large" scale projects?](https://discourse.julialang.org/t/using-julia-for-large-scale-projects/128069)

<div class="topic-metadata">

**Author:** [@DK1PL](https://discourse.julialang.org/u/DK1PL)\
**Replies:** 4\
**Last updated:** [April 18, 2025, 4:21pm UTC](https://discourse.julialang.org/t/using-julia-for-large-scale-projects/128069 "2025-04-18T16:21:44Z")

</div>

Hello community, I have rarely written relatively small (up to 500 lines of code) Julia programs and the long compilation time has prevented me from writing large scale programs. I have now decided to try writing a long…

---

## [Get the transpose of Vector{Vector{Float64}}](https://discourse.julialang.org/t/get-the-transpose-of-vector-vector-float64/128141)

<div class="topic-metadata">

**Author:** [@15et7dtwq](https://discourse.julialang.org/u/15et7dtwq)\
**Replies:** 9\
**Last updated:** [April 17, 2025, 8:36pm UTC](https://discourse.julialang.org/t/get-the-transpose-of-vector-vector-float64/128141 "2025-04-17T20:36:50Z")

</div>

I am coming from numpy, trying tosee if Julia can be faster. Right now I am dealing with a function that generates for me what I thought had to be a matrix, but no, it’s a vector of vector. Fine. How do I make it’s trans…

---

## [Blink GUI closes immediately after wait(w) when launched via PyJulia](https://discourse.julialang.org/t/blink-gui-closes-immediately-after-wait-w-when-launched-via-pyjulia/128138)

<div class="topic-metadata">

**Author:** [@dmr07](https://discourse.julialang.org/u/dmr07)\
**Replies:** 5\
**Last updated:** [April 17, 2025, 9:37am UTC](https://discourse.julialang.org/t/blink-gui-closes-immediately-after-wait-w-when-launched-via-pyjulia/128138 "2025-04-17T09:37:35Z")

</div>

This is a sample of a program im trying to run. My endgoal is to compile it into a .exe file to share. I’m new to Julia and coding in general. The window immediately closes after I run it. How can I fix this?

---

## [PythonCall SSL Verify Error when calling pd.read\_csv](https://discourse.julialang.org/t/pythoncall-ssl-verify-error-when-calling-pd-read-csv/115922)

<div class="topic-metadata">

**Author:** [@jaketothepast](https://discourse.julialang.org/u/jaketothepast)\
**Replies:** 5\
**Last updated:** [March 10, 2025, 11:25am UTC](https://discourse.julialang.org/t/pythoncall-ssl-verify-error-when-calling-pd-read-csv/115922 "2025-03-10T11:25:04Z")

</div>

Hello, I’m trying to read a CSV file with Pandas, and I’m getting the following error: function example52() points = pd.read\_csv("https://raw.githubusercontent.com/thomasnield/machine-learning-demo-data/master/regre…

---

## [Undo channelview command](https://discourse.julialang.org/t/undo-channelview-command/109070)

<div class="topic-metadata">

**Author:** [@Afonso\_Britto](https://discourse.julialang.org/u/Afonso_Britto)\
**Replies:** 2\
**Last updated:** [April 16, 2025, 4:22pm UTC](https://discourse.julialang.org/t/undo-channelview-command/109070 "2025-04-16T16:22:20Z")

</div>

I’m using Julia for a image processing program and I had to use the channelview command to acess the channels. But I’m wondering if there is any chance I can undo the command. What I want is J to be back to type Matrix{R…

---

## [Composing functions in Modeling Toolkit](https://discourse.julialang.org/t/composing-functions-in-modeling-toolkit/128116)

<div class="topic-metadata">

**Author:** [@JaviJR](https://discourse.julialang.org/u/JaviJR)\
**Replies:** 5\
**Last updated:** [April 16, 2025, 11:45am UTC](https://discourse.julialang.org/t/composing-functions-in-modeling-toolkit/128116 "2025-04-16T11:45:36Z")

</div>

Hello, I’m exploring the ModelingToolkit environment and I’ve encountered a question when composing systems. When I define a complete model using a function, it works without any issues. However, when I split the model …

---

## [Creating an array](https://discourse.julialang.org/t/creating-an-array/128113)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 4\
**Last updated:** [April 16, 2025, 11:30am UTC](https://discourse.julialang.org/t/creating-an-array/128113 "2025-04-16T11:30:58Z")

</div>

Hello, Which of the following methods is best for creating an array? Array1 = fill(0,100) Array2 = Array{Int64}(undef,100) Thank you.

---

## [Installing Pluto - Compile issue](https://discourse.julialang.org/t/installing-pluto-compile-issue/128101)

<div class="topic-metadata">

**Author:** [@hmcgowan01](https://discourse.julialang.org/u/hmcgowan01)\
**Replies:** 2\
**Last updated:** [April 15, 2025, 4:52pm UTC](https://discourse.julialang.org/t/installing-pluto-compile-issue/128101 "2025-04-15T16:52:13Z")

</div>

I have installed latest version Julia 1.11.5. I then tried to add Pluto and got the following: (@v1.11) pkg\> add Pluto Resolving package versions… No Changes to C:\\Users\\hmcgowan\\.julia\\environments\\v1.11\\Project.toml …

---

## [How to solve partial differential algebraic equations](https://discourse.julialang.org/t/how-to-solve-partial-differential-algebraic-equations/113989)

<div class="topic-metadata">

**Author:** [@Anish\_Kumar](https://discourse.julialang.org/u/Anish_Kumar)\
**Replies:** 8\
**Last updated:** [April 15, 2025, 8:09am UTC](https://discourse.julialang.org/t/how-to-solve-partial-differential-algebraic-equations/113989 "2025-04-15T08:09:10Z")

</div>

Hi all, I am quite new to Julia and programming in general. I am currently doing a modelling PhD and I have a set of couple Partial Differential Algebraic Equations (PDAE). I tried solving them on comsol but it is extre…

---

## [Implicit cast of a struct into a tuple](https://discourse.julialang.org/t/implicit-cast-of-a-struct-into-a-tuple/77014)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 5\
**Last updated:** [April 14, 2025, 9:19am UTC](https://discourse.julialang.org/t/implicit-cast-of-a-struct-into-a-tuple/77014 "2025-04-14T09:19:11Z")

</div>

Hello! Is there a way to define an implicit cast of a struct into a tuple, such that the following syntax becomes valid: struct T ; x::String ; y::Integer ; end t = T("x", 1) a, b = t

---

## [How to get the eight bit values of a variable with UInt8?](https://discourse.julialang.org/t/how-to-get-the-eight-bit-values-of-a-variable-with-uint8/128022)

<div class="topic-metadata">

**Author:** [@dk-zen](https://discourse.julialang.org/u/dk-zen)\
**Replies:** 11\
**Last updated:** [April 13, 2025, 8:45pm UTC](https://discourse.julialang.org/t/how-to-get-the-eight-bit-values-of-a-variable-with-uint8/128022 "2025-04-13T20:45:20Z")

</div>

Now I’m reading a binary file. I have got a 8 bits namely “a”. According to the data description, each bit represents a different meaning, I want to read the value represented by 8 bit bits, how can I do it? a = 0x0c # …

---

## [Applying magnet model to a mesh shape](https://discourse.julialang.org/t/applying-magnet-model-to-a-mesh-shape/128009)

<div class="topic-metadata">

**Author:** [@Bkyro](https://discourse.julialang.org/u/Bkyro)\
**Replies:** 0\
**Last updated:** [April 12, 2025, 4:25pm UTC](https://discourse.julialang.org/t/applying-magnet-model-to-a-mesh-shape/128009 "2025-04-12T16:25:47Z")

</div>

I am brand new to julia. I have manged to create meshes with various packages but am really struggling to apply physcis to make a magnet. I have tried several packages and cannot get it to work. I gave used BEAST Nessie …

---

## [Drawing in tables data retrieved from DB](https://discourse.julialang.org/t/drawing-in-tables-data-retrieved-from-db/128007)

<div class="topic-metadata">

**Author:** [@FSUfan](https://discourse.julialang.org/u/FSUfan)\
**Replies:** 0\
**Last updated:** [April 12, 2025, 3:38pm UTC](https://discourse.julialang.org/t/drawing-in-tables-data-retrieved-from-db/128007 "2025-04-12T15:38:36Z")

</div>

I need to represent in various tables what I get from reading various DBs. I read the suggestions found here https://juliapackages.com/c/gui But so far I just have a lot of confusion in my head. Having experience wit…

---

## [Dynamic immutable type](https://discourse.julialang.org/t/dynamic-immutable-type/127168)

<div class="topic-metadata">

**Author:** [@Soel](https://discourse.julialang.org/u/Soel)\
**Replies:** 11\
**Last updated:** [April 12, 2025, 10:19am UTC](https://discourse.julialang.org/t/dynamic-immutable-type/127168 "2025-04-12T10:19:33Z")

</div>

Hello Julians, I’m trying to design a type MyType having a certain number of fields amongst which matrix::AbstractMatrix. In production MyType is intended to have its field matrix modified (hundreds times a day)… I’ve e…

---

## [Pkg \`target\` based test specific dependencies just doesn't work?](https://discourse.julialang.org/t/pkg-target-based-test-specific-dependencies-just-doesnt-work/127965)

<div class="topic-metadata">

**Author:** [@Peter\_Hill](https://discourse.julialang.org/u/Peter_Hill)\
**Replies:** 5\
**Last updated:** [April 11, 2025, 6:20pm UTC](https://discourse.julialang.org/t/pkg-target-based-test-specific-dependencies-just-doesnt-work/127965 "2025-04-11T18:20:47Z")

</div>

I’m very new to Julia, and I’ve been trying to get some unit tests up with TestItemRunner.jl. Following the recommended way to specify test dependencies (my account is too new to link, but this is following the Pkg.jl do…

---

## [Sort values on the y-axis from smallest to largest](https://discourse.julialang.org/t/sort-values-on-the-y-axis-from-smallest-to-largest/127802)

<div class="topic-metadata">

**Author:** [@Merkut](https://discourse.julialang.org/u/Merkut)\
**Replies:** 5\
**Last updated:** [April 11, 2025, 1:37pm UTC](https://discourse.julialang.org/t/sort-values-on-the-y-axis-from-smallest-to-largest/127802 "2025-04-11T13:37:56Z")

</div>

Hello Everyone, as you see from my grap, my y axis is not sorted. How can I sort the y axix from minumum to maximum. using Plots using DataFrames using CSV df = CSV.read("D:/ölçüm.csv", DataFrame) Zaman2\_1 = df\[:, 1…

---

## [From Named Tuple to Struct](https://discourse.julialang.org/t/from-named-tuple-to-struct/127927)

<div class="topic-metadata">

**Author:** [@Magnus\_Lilledahl](https://discourse.julialang.org/u/Magnus_Lilledahl)\
**Replies:** 2\
**Last updated:** [April 10, 2025, 2:35pm UTC](https://discourse.julialang.org/t/from-named-tuple-to-struct/127927 "2025-04-10T14:35:24Z")

</div>

Say I have a Named Tuple like a = (switch = dataframe1, swatch = dataframe2) and I have some structs struct switch df::DataFrame ...more fields end struct swatch df::DataFrame ...more fields end I want to ite…

---

## [Regression table star level](https://discourse.julialang.org/t/regression-table-star-level/127904)

<div class="topic-metadata">

**Author:** [@Junhyuk](https://discourse.julialang.org/u/Junhyuk)\
**Replies:** 2\
**Last updated:** [April 10, 2025, 7:34am UTC](https://discourse.julialang.org/t/regression-table-star-level/127904 "2025-04-10T07:34:39Z")

</div>

Hello, I’m new to Julia and currently conducting several IV regressions. I’d like to report the results using the following code: regtable(ivmodel1, ivmodel2, ivmodel3, render = LatexTable(), digits = 5) In economics,…

---

## [Importing specific branch og git-repo using Pkg](https://discourse.julialang.org/t/importing-specific-branch-og-git-repo-using-pkg/127884)

<div class="topic-metadata">

**Author:** [@Magnus\_Lilledahl](https://discourse.julialang.org/u/Magnus_Lilledahl)\
**Replies:** 2\
**Last updated:** [April 9, 2025, 1:46pm UTC](https://discourse.julialang.org/t/importing-specific-branch-og-git-repo-using-pkg/127884 "2025-04-09T13:46:39Z")

</div>

I tried to add a specific branch of a package repo using the #-syntax described in the documentation like Pkg add "git@gitlab.restofpath.git#dev" But get the response ... remote: remote: The namespace you were looking…

---

## [Point to line distance in GeometryBasics or another geometry package](https://discourse.julialang.org/t/point-to-line-distance-in-geometrybasics-or-another-geometry-package/42501)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 23\
**Last updated:** [April 8, 2025, 6:36pm UTC](https://discourse.julialang.org/t/point-to-line-distance-in-geometrybasics-or-another-geometry-package/42501 "2025-04-08T18:36:45Z")

</div>

I’m looking for geometry package, which has Euclidean point to point and point to line distances in 3D implemented.

---

## [Loading MODIS HDF4 files with ArchGDAL](https://discourse.julialang.org/t/loading-modis-hdf4-files-with-archgdal/126977)

<div class="topic-metadata">

**Author:** [@Oblomov](https://discourse.julialang.org/u/Oblomov)\
**Replies:** 13\
**Last updated:** [April 9, 2025, 8:31am UTC](https://discourse.julialang.org/t/loading-modis-hdf4-files-with-archgdal/126977 "2025-04-09T08:31:52Z")

</div>

I would like to port to Julia some code that we have that works on MODIS satellite imagery. The source files are in HDF4 format, and are correctly recognized as MODIS datasets by the system gdalinfo. However, if I try lo…

---

## [Julia on DragonflyBSD](https://discourse.julialang.org/t/julia-on-dragonflybsd/127826)

<div class="topic-metadata">

**Author:** [@Mohamad\_Badiez](https://discourse.julialang.org/u/Mohamad_Badiez)\
**Replies:** 2\
**Last updated:** [April 8, 2025, 11:04pm UTC](https://discourse.julialang.org/t/julia-on-dragonflybsd/127826 "2025-04-08T23:04:29Z")

</div>

Hi everybody, I’m trying to install Julia on DragonflyBSD from the source. I installed gcc, fortran, OpenBLAS, and SuiteSparse on DragonflyBSD with no problem. Now, I got this error at the end of the gmake process: g…

---

## [Distributed is in stdlib, but preventing precompilation via being missing?](https://discourse.julialang.org/t/distributed-is-in-stdlib-but-preventing-precompilation-via-being-missing/127858)

<div class="topic-metadata">

**Author:** [@JimCircadian](https://discourse.julialang.org/u/JimCircadian)\
**Replies:** 2\
**Last updated:** [April 8, 2025, 4:19pm UTC](https://discourse.julialang.org/t/distributed-is-in-stdlib-but-preventing-precompilation-via-being-missing/127858 "2025-04-08T16:19:42Z")

</div>

This will be something really stupid I’m sure. I am having trouble loading Distributed within a package that is being developed, but having no problem when using it in the project from the REPL $ julia --project ... Ve…

---

## [CUDA cos is giving LLVM IR instruction combine error](https://discourse.julialang.org/t/cuda-cos-is-giving-llvm-ir-instruction-combine-error/127849)

<div class="topic-metadata">

**Author:** [@miniskar](https://discourse.julialang.org/u/miniskar)\
**Replies:** 1\
**Last updated:** [April 8, 2025, 3:01pm UTC](https://discourse.julialang.org/t/cuda-cos-is-giving-llvm-ir-instruction-combine-error/127849 "2025-04-08T15:01:27Z")

</div>

I am having a cosine function call in CUDA kernel and it is throwing LLVM error. Here is the MWE to reproduce this issue. File: cos\_julia.jl using CUDA # Define a GPU kernel that computes the cosine of each element f…

---

## [Multiple Loops in Julia](https://discourse.julialang.org/t/multiple-loops-in-julia/127814)

<div class="topic-metadata">

**Author:** [@MarcoBPCode](https://discourse.julialang.org/u/MarcoBPCode)\
**Replies:** 7\
**Last updated:** [April 8, 2025, 7:47am UTC](https://discourse.julialang.org/t/multiple-loops-in-julia/127814 "2025-04-08T07:47:31Z")

</div>

HI, I’m writing a code that need multiples loops inside each other and i want to make parallelization it. Loop1{ Loop2{ Loop3{ Loop4{ … } } } } Can recommended some techique ? o maybe something to read o impl…

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

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