Skip to content

plot_network() got an unexpected keyword argument 'file_name' and other issues #99

Open

Description

@fzzinchemical

Sample Code:

citation_network = litstudy.network.build_citation_network(docs)
litstudy.plot_network(citation_network, file_name ='network.html')

Error Output:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[50], line 2
      1 citation_network = litstudy.network.build_citation_network(docs)
----> 2 litstudy.plot_network(citation_network, file_name ='network.html')

TypeError: plot_network() got an unexpected keyword argument 'file_name'

This probalbly also applies to other plots, where the parameter is used. Thus this would need to be tested.

Also: The entire plot seems bugged, where any parameter you give it does not change the output. This issue can also apply to other network

Activity

  1. stijnh commented on Oct 11, 2024

    @stijnh
    Member

    Seems that this parameter is not yet part of the latest release of litstudy that is available on pip.

    You can use this command to install the latest version of litstudy directly from github.

    pip install git+https://github.com/NLeSC/litstudy
    

    Could you check if this solves the issue?

    A new version of litstudy will be released on pip soon in the future.

  2. fzzinchemical commented on Oct 11, 2024

    @fzzinchemical
    Author

    Alright, fetched the latest commit. Unfortunately the issue persists. Thanks for the help @stijnh .

    ---------------------------------------------------------------------------
    TypeError                                 Traceback (most recent call last)
    Cell In[11], line 2
          1 citation_network = litstudy.network.build_citation_network(docs)
    ----> 2 litstudy.plot_network(citation_network, file_name='coupling.html')
    
    TypeError: plot_network() got an unexpected keyword argument 'file_name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions