Coder Social home page Coder Social logo

IncorrectTypeException about jaal HOT 9 CLOSED

imohitmayank avatar imohitmayank commented on August 18, 2024
IncorrectTypeException

from jaal.

Comments (9)

imohitmayank avatar imohitmayank commented on August 18, 2024 1

yeah, you can fashion your own graph in the template of edge_df (with at least from and to columns) and it should work!

from jaal.

HariprasadManimozhi avatar HariprasadManimozhi commented on August 18, 2024 1

Hmm...what is the environment kernel for this instance of jupyter notebook? Can you try with pip3 i.e. !pip3 install jaal.
Btw, I tried to replicate the steps (mentioned below) and it works on my end!
Something you can also try out --->

  1. Create a new python file jaal_test.py with following content -
from jaal import Jaal
from jaal.datasets import load_got
# load the data
edge_df, node_df = load_got()
# init Jaal and run server
Jaal(edge_df, node_df).plot()
  1. Open an anaconda or cms prompt. Create a new virtual environment.
  2. Activate the virtual environment.
  3. Run the jaal_test.py file.

Following above steps, it resulted in this.

image
image


import libraries

from jaal import Jaal
from jaal.datasets import load_got

load the data

edge_df, node_df = load_got()

init Jaal and run server

port=8050

while True:
try:
Jaal(edge_df, node_df).plot(directed=True,port=port)
except:
port+=1

Works with this tweak.... works with alternate port.

from jaal.

imohitmayank avatar imohitmayank commented on August 18, 2024 1

@HariprasadManimozhi oh, thank you for sharing this! I will include this in the readme so that others don't face a similar issue.

from jaal.

imohitmayank avatar imohitmayank commented on August 18, 2024

Not able to replicate the issue on my end. Can you plz share more details on --

  1. The output of pip freeze?
  2. Are you using a virtual environment as suggested in the doc? (To rectify python package version issue)

from jaal.

HariprasadManimozhi avatar HariprasadManimozhi commented on August 18, 2024

Not able to replicate the issue on my end. Can you plz share more details on --

  1. The output of pip freeze?
  2. Are you using a virtual environment as suggested in the doc? (To rectify python package version issue)

No, I used a existing environment!
I will try using a new virtual environment

from jaal.

HariprasadManimozhi avatar HariprasadManimozhi commented on August 18, 2024

Is there way to use own dataset?

from jaal.

HariprasadManimozhi avatar HariprasadManimozhi commented on August 18, 2024

Not able to replicate the issue on my end. Can you plz share more details on --

  1. The output of pip freeze?
  2. Are you using a virtual environment as suggested in the doc? (To rectify python package version issue)

No, I used a existing environment!
I will try using a new virtual environment

I created a new virtual environment & installed Jaal.
On importing, it throws error "ModuleNotFoundError: No module named 'jaal'". Did anyone face issue like this?

Web capture_12-2-2021_154914_localhost

from jaal.

imohitmayank avatar imohitmayank commented on August 18, 2024

Hmm...what is the environment kernel for this instance of jupyter notebook? Can you try with pip3 i.e. !pip3 install jaal.

Btw, I tried to replicate the steps (mentioned below) and it works on my end!

Something you can also try out --->

  1. Create a new python file jaal_test.py with following content -
from jaal import Jaal
from jaal.datasets import load_got
# load the data
edge_df, node_df = load_got()
# init Jaal and run server
Jaal(edge_df, node_df).plot()
  1. Open an anaconda or cms prompt. Create a new virtual environment.
  2. Activate the virtual environment.
  3. Run the jaal_test.py file.

from jaal.

HariprasadManimozhi avatar HariprasadManimozhi commented on August 18, 2024

Hmm...what is the environment kernel for this instance of jupyter notebook? Can you try with pip3 i.e. !pip3 install jaal.

Btw, I tried to replicate the steps (mentioned below) and it works on my end!

Something you can also try out --->

  1. Create a new python file jaal_test.py with following content -
from jaal import Jaal
from jaal.datasets import load_got
# load the data
edge_df, node_df = load_got()
# init Jaal and run server
Jaal(edge_df, node_df).plot()
  1. Open an anaconda or cms prompt. Create a new virtual environment.
  2. Activate the virtual environment.
  3. Run the jaal_test.py file.

Following above steps, it resulted in this.

image
image

from jaal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.