'How to import panel in python

I'm trying to import panel in a jupyter notebook in Hvplot but keep getting this error:

ImportError: cannot import name 'url' from 'django.conf.urls' (/Users/***/opt/anaconda3/lib/python3.9/site-packages/django/conf/urls/__init__.py) 

Tried using techniques from StackOverflow but nothing works. What do I do?

This is mycode before it breaks:

import pandas as pd
import numpy as np
from django.urls import re_path as url
import panel as pn *** it breaks here
pn.extension('tabulator')

import hvplot.pandas


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source