Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_requirements includes datetime and random #5811

Closed
MarcSkovMadsen opened this issue Nov 5, 2023 · 0 comments · Fixed by #5818
Closed

find_requirements includes datetime and random #5811

MarcSkovMadsen opened this issue Nov 5, 2023 · 0 comments · Fixed by #5818
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Nov 5, 2023

I'm on the current main branch of Panel.

When I use find_requirements like below I get "packages" included like datetime and random from the stdlib.

from panel.io.convert import find_requirements
code = """
import panel as pn
import pandas as pd

import random
from datetime import datetime, timedelta
"""

requirements = find_requirements(code)
print(requirements)
$ python app.py
['datetime', 'pandas', 'panel', 'random']
@MarcSkovMadsen MarcSkovMadsen added TRIAGE Default label for untriaged issues type: bug Something isn't correct or isn't working and removed TRIAGE Default label for untriaged issues labels Nov 5, 2023
@MarcSkovMadsen MarcSkovMadsen added this to the next milestone Nov 5, 2023
@philippjfr philippjfr modified the milestones: next, v1.3.2 Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants