Networkx library in Dynamo

python
#4

I assume you followed what’s in the INSTALL.rst file to be found in the package…

0 Likes

#5

Yes, but probably I’m doing something wrong. This is the first time I’m tying to install a package on Ironpython.

0 Likes

#6

I can’t help much since I don’t have time to try myself at this moment, but I’ll be curious of the answers…

0 Likes

#7

Thanks…I’m waiting for someone more skilled in Python :slight_smile:

0 Likes

#8

Could you not reach the authors directly on Github?
We will be interested anyway to follow what’s exposed here, with some more details if possible :slight_smile:

0 Likes

#9

@Cesare_Caoduro3 do you have Python’s pacakage manager installed already?

0 Likes

#10

yes…and it works from Python side

0 Likes

#11

Hi @Cesare_Caoduro3

I don’t think it supports windows.

However you can use “Jupyter” http://jupyter.org/ open source web application:

1 Like

#12

So I can use from it from dynamo?

0 Likes

#13

Referring to the help documentation, it should be possible to install it on Windows also:
https://networkx.github.io/documentation/stable/install.html

0 Likes

#14

I already installed on Windows, the problem is to use it from Dynamo with IronPython

0 Likes

#15

So, if I get this right, the first question would be: has this feature been updated?

0 Likes

#16

Cesare,

There are couple of things in play here. Hopefully this link helps to explain a little bit: https://stackoverflow.com/a/17130986/3263488

2 Likes

Python Nodes Basics
#17

Hi Cesare,

You can load files in Jupyter and export the results back.

So you could write the variables into a file from Dynamo, run the Jupyter notebook and read the results again in Dynamo. It’s not the best workflow but I can’t find a better one at the moment.

Please find some Jupyter tips and tricks here:

Cheers
Giovanni

1 Like

#18

Thanks Giovanni,
but this is not what I need :frowning:

1 Like

#19

Thanks Konrad, but from this article it seams I’m not able to load this library since is for CPython…

0 Likes

#20

@Cesare_Caoduro3 its not Kinrad its @Konrad_K_Sobon you have spelling error :slight_smile:

0 Likes

#21

I think I saw somewhere an interpreter for Python that would run in .NET. It’s not an entry level concept for sure, but it would be possible to write your scripts in regular Python using any package out there, and then use the .NET version to run them on Windows. Again, this is something that would require a bit of work and a little more advanced programming skills.

0 Likes

#22

Thanks…

0 Likes

#24

hi @Cesare_Caoduro3, hope you are doing well :slight_smile:

This is very interesting, and made me think back when I learnt algorithms… Graph theory is very interesting, so thanks for the brush-up :wink:

I will recommend that you look at Robert Sedgewick and Kevin Wayne
https://algs4.cs.princeton.edu/home/

The code in that book/videos is written in Java, but should be doable to transfer to Python. As you might know Sedgewick is a guru concerning algorithms :slight_smile:

1 Like