Skip to content

V2 bug fixes#187

Merged
jhunpingco merged 2 commits intomasterfrom
v2_bug_fixes
Nov 4, 2022
Merged

V2 bug fixes#187
jhunpingco merged 2 commits intomasterfrom
v2_bug_fixes

Conversation

@BerserkerGaruk
Copy link
Copy Markdown
Member

Addresses issues brought up in #174

This was some legacy code in the directory that was handling some of the lib directory deployment, but due to an oversite it was missed what this code was doing due to the test environment either not having a lib folder to overwrite or being tested in the root of the pyvis application itself. As such this was not caught before it was updated.

This aims to fix the problem in a couple of ways:

  1. The only reason the lib folder needs to be in the current directory is when the html is being generated for a local deployment that is being displayed through the notebook as the notebook is going to look in the relative directory for the lib files.
  2. Only create the lib folder if there is not already one there.
  3. Copy the folders into the /lib folder one by one ONLY if the file folder isn't already currently there.

… defaulting self.height to 600px from 500px.
…ly situation where there needs to be a lib directory in the root of the local deployment is when pyvis is generating the html

for a notebook and the notebook is serving the contents locally. This was some legacy code that was not as thouroughly checked when the last deployment went live and because of how it was coded
the lib directory would get overwritten only when there was already a lib directory present.
@jhunpingco jhunpingco merged commit 8ce37e5 into master Nov 4, 2022
ceandrade pushed a commit to ceandrade/pyvis that referenced this pull request Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants