Each municipality in Alberta regulates the smoking or vaping of cannabis differently.
Here's how it works in Jasper:
Public spaces: smoking or vaping cannabis is prohibited in public spaces and buildings within the town site (map). Provincial and federal rules also apply.
Private businesses: rules are different for each hotel or apartment. Smoking may be allowed in your unit or balcony, or there may be a designated area where people can smoke or vape cannabis. Ask your landlord or the front desk of your hotel to find out.
If you own your home: it is your decision whether or not to allow smoking or vaping cannabis on your property, including your outdoor space (i.e. porch or backyard).
These rules are in place to minimize exposure to secondhand smoke. You could get a fine for smoking or vaping cannabis in public.
For detailed rules on cannabis consumption in Jasper National Park, please visit Parks Canada's information page: Cannabis use at Parks Canada places.